sys_select: Ensure all necessary types on NonStop Kernel.
[gnulib.git] / ChangeLog
1 2010-12-24  Bruno Haible  <bruno@clisp.org>
2
3         sys_select: Ensure all necessary types on NonStop Kernel.
4         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5         include <sys/time.h>.
6         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7         NonStop Kernel.
8         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9
10 2010-12-24  Bruno Haible  <bruno@clisp.org>
11
12         sys_select: Remove unneeded include.
13         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14         have <sys/select.h>.
15
16 2010-12-24  Bruno Haible  <bruno@clisp.org>
17
18         gethostname: Provide a fallback for HOST_NAME_MAX.
19         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21         instead.
22         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23
24 2010-12-24  Bruno Haible  <bruno@clisp.org>
25
26         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28         (SA_RESTART): Likewise.
29         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
30
31 2010-12-24  Bruno Haible  <bruno@clisp.org>
32
33         signal: Define NSIG.
34         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
35         * tests/test-signal.c (nsig): New variable.
36         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37
38 2010-12-24  Bruno Haible  <bruno@clisp.org>
39
40         rename, renameat: Avoid test failures on OSF/1 5.1.
41         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
42         alternative error codes.
43         * tests/test-renameat.c (main): Likewise.
44
45 2010-12-24  Bruno Haible  <bruno@clisp.org>
46
47         *printf: Detect large precisions bug on Solaris 10/SPARC.
48         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
49         by Paul Eggert.
50         * tests/test-snprintf-posix.h (test_function): Add this test code here
51         too.
52         * tests/test-sprintf-posix.h (test_function): Likewise.
53         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54         * tests/test-vasprintf-posix.c (test_function): Likewise.
55         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
56         around by gnulib.
57         * doc/posix-functions/printf.texi: Likewise.
58         * doc/posix-functions/snprintf.texi: Likewise.
59         * doc/posix-functions/sprintf.texi: Likewise.
60         * doc/posix-functions/vfprintf.texi: Likewise.
61         * doc/posix-functions/vprintf.texi: Likewise.
62         * doc/posix-functions/vsnprintf.texi: Likewise.
63         * doc/posix-functions/vsprintf.texi: Likewise.
64         * doc/posix-functions/dprintf.texi: Undo last commit.
65         * doc/posix-functions/vdprintf.texi: Likewise.
66
67 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68
69         tests: port test-fdutimensat.c to Solaris 8
70         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
71         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
72         On Solaris 8, it fails with errno == ENOSYS, because there is no
73         futimens (so it can't use the fd), and there is no lutimens (so it
74         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
75
76         vsnprintf: make more consistent with snprintf; doc fixes
77
78         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
79         the byte count return problem was promoted from the snprintf-posix
80         to the snprintf module.
81         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
83         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
84         * tests/test-snprintf.c (main): Check the byte count returned.
85         * tests/test-vsnprintf.c (main): Likewise.
86
87 2010-12-23  Eric Blake  <eblake@redhat.com>
88
89         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
90         * modules/sigpipe (License): Relax license.
91
92 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
93
94         doc: document Solaris printf bug with large float precisions
95         * doc/posix-functions/dprintf.texi (dprintf):
96         * doc/posix-functions/fprintf.texi (fprintf):
97         * doc/posix-functions/printf.texi (printf):
98         * doc/posix-functions/snprintf.texi (snprintf):
99         * doc/posix-functions/sprintf.texi (sprintf):
100         * doc/posix-functions/vdprintf.texi (vdprintf):
101         * doc/posix-functions/vfprintf.texi (vfprintf):
102         * doc/posix-functions/vprintf.texi (vprintf):
103         * doc/posix-functions/vsnprintf.texi (vsnprintf):
104         * doc/posix-functions/vsprintf.texi (vsprintf):
105         Mention that these functions mishandle large floating point
106         precisions on Solaris 10.  The same bug is also present in Solaris
107         8, and I assume earlier.  This causes "cd gnulib-tests; make
108         check" to fail on Solaris 8 (and I assume, later) when building
109         the latest coreutils, in test-vasprintf-posix's call to
110         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
111         the wide flavors (e.g., wprintf) so this patch just updates the
112         documentation for the narrow ones.
113
114         test-posixtm.c: add two tests
115         * tests/test-posixtm.c: Add two tests, to highlight the
116         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
117         around this bug; this is merely to document it.
118
119 2010-12-22  Bruno Haible  <bruno@clisp.org>
120
121         getlogin_r: Work around portability problem on OSF/1.
122         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
123         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
124         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
125         test for a truncated result.
126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
127         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
128         * modules/getlogin_r (Depends-on): Add memchr.
129         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
130
131 2010-12-22  Bruno Haible  <bruno@clisp.org>
132
133         ptsname: Avoid test failure on OSF/1 5.1.
134         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
135         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
136         (same_slave): New function.
137         (main): Use it to compare ptsname's result with the expected file name.
138
139 2010-12-22  Bruno Haible  <bruno@clisp.org>
140
141         Port extended stdio modules to HP NonStop Kernel.
142         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
143         macros.
144         * lib/fbufmode.c: Update comments.
145         * lib/fflush.c: Likewise.
146         * lib/fpurge.c: Likewise.
147         * lib/freadable.c: Likewise.
148         * lib/freadahead.c: Likewise.
149         * lib/freading.c: Likewise.
150         * lib/freadptr.c: Likewise.
151         * lib/freadseek.c: Likewise.
152         * lib/fseeko.c: Likewise.
153         * lib/fseterr.c: Likewise.
154         * lib/fwritable.c: Likewise.
155         * lib/fwriting.c: Likewise.
156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
157
158 2010-12-22  Bruno Haible  <bruno@clisp.org>
159
160         ttyname_r: Work around bug on OSF/1 5.1.
161         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
162         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
163         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
164         present.
165         * lib/ttyname_r.c (ttyname_r): Update comments.
166
167 2010-12-22  Bruno Haible  <bruno@clisp.org>
168
169         round: Implement result sign according to IEEE 754.
170         * lib/round.c (MIN, MINUS_ZERO): New macros.
171         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
172         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
173         * tests/test-round-ieee.c (main): Likewise.
174         * tests/test-roundl-ieee.c (main): Likewise.
175
176         trunc: Implement result sign according to IEEE 754.
177         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
178         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
179         * tests/test-trunc2.c: Include minus-zero.h.
180         (MINUS_ZERO): New macro.
181         (trunc_reference): Keep in sync with lib/trunc.c.
182         * tests/test-truncf2.c: Include minus-zero.h.
183         (MINUS_ZERO): New macro.
184         (truncf_reference): Keep in sync with lib/trunc.c.
185         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
186         * tests/test-trunc-ieee.c (main): Likewise.
187         * tests/test-truncl-ieee.c (main): Likewise.
188
189         ceil: Implement result sign according to IEEE 754.
190         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
191         (FUNC): Return -0.0 for -1 < x < 0.
192         * tests/test-ceil2.c: Include minus-zero.h.
193         (MINUS_ZERO): New macro.
194         (ceil_reference): Keep in sync with lib/ceil.c.
195         * tests/test-ceilf2.c: Include minus-zero.h.
196         (MINUS_ZERO): New macro.
197         (ceilf_reference): Keep in sync with lib/ceil.c.
198         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
199         * tests/test-ceil-ieee.c (main): Likewise.
200         * tests/test-ceill-ieee.c (main): Likewise.
201
202         floor: Implement result sign according to IEEE 754.
203         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
204         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
205         * tests/test-floorf2.c (floorf_reference): Likewise.
206         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
207         * tests/test-floor-ieee.c (main): Likewise.
208         * tests/test-floorl-ieee.c (main): Likewise.
209
210 2010-12-22  Bruno Haible  <bruno@clisp.org>
211
212         getaddrinfo: Update doc.
213         * doc/posix-functions/gai_strerror.texi: Return type is also different
214         on AIX and HP-UX.
215
216 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
217
218         getaddrinfo, inet_ntop: Update doc for Solaris.
219         * doc/posix-functions/gai_strerror.texi: Return type is also an
220         issue on Solaris 9 and earlier.
221         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
222         on Solaris 10 and earlier.
223
224 2010-12-21  Bruno Haible  <bruno@clisp.org>
225
226         New module 'roundl-ieee'.
227         * modules/roundl-ieee: New file.
228         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
229         test whether roundl works according to ISO C 99 with IEC 60559.
230         * m4/roundl-ieee.m4: New file.
231         * modules/roundl-ieee-tests: New file.
232         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
233         * tests/test-roundl.c (main): Remove signbit tests.
234         * modules/roundl-tests (Depends-on): Remove signbit.
235         * doc/posix-functions/roundl.texi: Mention the new module.
236
237 2010-12-21  Bruno Haible  <bruno@clisp.org>
238
239         New module 'truncl-ieee'.
240         * modules/truncl-ieee: New file.
241         * modules/truncl-ieee-tests: New file.
242         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
243         * tests/test-truncl.c (main): Remove signbit tests.
244         * modules/truncl-tests (Depends-on): Remove signbit.
245         * doc/posix-functions/truncl.texi: Mention the new module.
246
247 2010-12-21  Bruno Haible  <bruno@clisp.org>
248
249         New module 'ceill-ieee'.
250         * modules/ceill-ieee: New file.
251         * modules/ceill-ieee-tests: New file.
252         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
253         * tests/test-ceill.c (main): Remove signbit tests.
254         * modules/ceill-tests (Depends-on): Remove signbit.
255         * doc/posix-functions/ceill.texi: Mention the new module.
256
257 2010-12-21  Bruno Haible  <bruno@clisp.org>
258
259         New module 'floorl-ieee'.
260         * modules/floorl-ieee: New file.
261         * modules/floorl-ieee-tests: New file.
262         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
263         * tests/test-floorl.c (main): Remove signbit tests.
264         * modules/floorl-tests (Depends-on): Remove signbit.
265         * doc/posix-functions/floorl.texi: Mention the new module.
266
267 2010-12-21  Bruno Haible  <bruno@clisp.org>
268
269         New module 'round-ieee'.
270         * modules/round-ieee: New file.
271         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
272         whether round works according to ISO C 99 with IEC 60559.
273         * m4/round-ieee.m4: New file.
274         * modules/round-ieee-tests: New file.
275         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
276         * tests/test-round1.c (main): Remove signbit tests.
277         * modules/round-tests (Depends-on): Remove 'signbit'.
278         * doc/posix-functions/round.texi: Mention the new module.
279
280 2010-12-21  Bruno Haible  <bruno@clisp.org>
281
282         New module 'trunc-ieee'.
283         * modules/trunc-ieee: New file.
284         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
285         whether trunc works according to ISO C 99 with IEC 60559.
286         * m4/trunc-ieee.m4: New file.
287         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
289         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
290         * modules/trunc-ieee-tests: New file.
291         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
292         * tests/test-trunc1.c (main): Remove signbit tests.
293         * modules/trunc-tests (Depends-on): Remove 'signbit'.
294         * doc/posix-functions/trunc.texi: Mention the new module.
295
296 2010-12-21  Bruno Haible  <bruno@clisp.org>
297
298         New module 'ceil-ieee'.
299         * modules/ceil-ieee: New file.
300         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
301         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
302         ISO C 99 with IEC 60559.
303         * m4/ceil-ieee.m4: New file.
304         * modules/ceil (Files): Add lib/ceil.c.
305         (Depends-on): Add 'float'.
306         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
307         * lib/math.in.h (ceil): New declaration.
308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
309         REPLACE_CEIL.
310         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
311         * modules/ceil-ieee-tests: New file.
312         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
313         * tests/test-math-c++.cc: Check the signature of 'ceil'.
314         * doc/posix-functions/ceil.texi: Mention the new module.
315
316 2010-12-21  Bruno Haible  <bruno@clisp.org>
317
318         New module 'floor-ieee'.
319         * modules/floor-ieee: New file.
320         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
321         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
322         ISO C 99 with IEC 60559.
323         * m4/floor-ieee.m4: New file.
324         * modules/floor (Files): Add lib/floor.c.
325         (Depends-on): Add 'float'.
326         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
327         * lib/math.in.h (floor): New declaration.
328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
329         REPLACE_FLOOR.
330         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
331         * modules/floor-ieee-tests: New file.
332         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
333         * tests/test-math-c++.cc: Check the signature of 'floor'.
334         * doc/posix-functions/floor.texi: Mention the new module.
335
336 2010-12-21  Bruno Haible  <bruno@clisp.org>
337
338         New module 'roundf-ieee'.
339         * modules/roundf-ieee: New file.
340         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
341         test whether roundf works according to ISO C 99 with IEC 60559.
342         * m4/roundf-ieee.m4: New file.
343         * modules/roundf-ieee-tests: New file.
344         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
345         * tests/test-roundf1.c (main): Remove signbit tests.
346         * modules/roundf-tests (Depends-on): Remove 'signbit'.
347         * doc/posix-functions/roundf.texi: Mention the new module.
348
349 2010-12-21  Bruno Haible  <bruno@clisp.org>
350
351         New module 'truncf-ieee'.
352         * modules/truncf-ieee: New file.
353         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
354         test whether truncf works according to ISO C 99 with IEC 60559.
355         * m4/truncf-ieee.m4: New file.
356         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
358         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
359         * modules/truncf-ieee-tests: New file.
360         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
361         * tests/test-truncf1.c (main): Remove signbit tests.
362         * modules/truncf-tests (Depends-on): Remove 'signbit'.
363         * doc/posix-functions/truncf.texi: Mention the new module.
364
365 2010-12-21  Bruno Haible  <bruno@clisp.org>
366
367         New module 'ceilf-ieee'.
368         * modules/ceilf-ieee: New file.
369         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
370         test whether ceilf works according to ISO C 99 with IEC 60559.
371         * m4/ceilf-ieee.m4: New file.
372         * modules/ceilf-ieee-tests: New file.
373         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
374         * tests/test-ceilf1.c (main): Remove signbit tests.
375         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
376         * doc/posix-functions/ceilf.texi: Mention the new module.
377
378 2010-12-21  Bruno Haible  <bruno@clisp.org>
379
380         New module 'floorf-ieee'.
381         * modules/floorf-ieee: New file.
382         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
383         test whether floorf works according to ISO C 99 with IEC 60559.
384         * m4/floorf-ieee.m4: New file.
385         * modules/floorf-ieee-tests: New file.
386         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
387         * tests/test-floorf1.c (main): Remove signbit tests.
388         * modules/floorf-tests (Depends-on): Remove 'signbit'.
389         * doc/posix-functions/floorf.texi: Mention the new module.
390
391 2010-12-21  Bruno Haible  <bruno@clisp.org>
392
393         Support for minus zero in autoconf macros.
394         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
395         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
396         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
397         * tests/minus-zero.h: Update comments.
398
399 2010-12-21  Bruno Haible  <bruno@clisp.org>
400
401         Tests for module 'ceil'.
402         * modules/ceil-tests: New file.
403         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
404         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
405
406 2010-12-21  Bruno Haible  <bruno@clisp.org>
407
408         Tests for module 'floor'.
409         * modules/floor-tests: New file.
410         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
411         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
412
413 2010-12-21  Bruno Haible  <bruno@clisp.org>
414
415         math: Fix indentation.
416         * lib/math.in.h (floorf): Fix indentation.
417
418 2010-12-21  Bruno Haible  <bruno@clisp.org>
419
420         Fix cross-compilation guesses on Solaris.
421         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
422         not match "solaris2.10".
423         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
424         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
425         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
426
427 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
428
429         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
430         This fixes a problem observed with the latest coreutils snapshot
431         that caused a test to fail on Solaris 8.  src/csplit.c's call
432         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
433         earlier, instead of returning the number of bytes that would have
434         been generated; this causes csplit to incorrectly report memory
435         exhaustion.
436         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
437         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
438         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
439         comments to match.
440         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
441         Fix typo in matching older versions of Solaris: "solaris2.10"
442         is matched by the shell pattern "solaris2.[0-9]*".  This matters
443         only for guessing while cross-compiling.
444         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
445
446 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
447
448         ftoastr: fix comment again
449         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
450         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
451         Also, simplify example a bit by using flags = 0.
452
453 2010-12-20  Bruno Haible  <bruno@clisp.org>
454
455         round*, trunc*: Update documentation regarding glibc.
456         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
457         * doc/posix-functions/round.texi: Likewise.
458         * doc/posix-functions/roundl.texi: Likewise.
459         * doc/posix-functions/truncf.texi: Likewise.
460         * doc/posix-functions/trunc.texi: Likewise.
461         * doc/posix-functions/truncl.texi: Likewise.
462
463 2010-12-20  Bruno Haible  <bruno@clisp.org>
464
465         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
466         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
467         * doc/posix-functions/round.texi: Likewise.
468         * doc/posix-functions/roundl.texi: Likewise.
469
470 2010-12-20  Bruno Haible  <bruno@clisp.org>
471
472         ttyname_r: Add missing declaration on HP-UX 11.
473         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
474         HAVE_TTYNAME_R.
475         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
476         declared. Set HAVE_TTYNAME_R always.
477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
478         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
479         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
480         HAVE_TTYNAME_R.
481         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
482
483 2010-12-20  Bruno Haible  <bruno@clisp.org>
484
485         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
486         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
487         * doc/posix-functions/getlogin_r.texi: Likewise.
488         * tests/test-getlogin.c: Include <errno.h>.
489         (main): Avoid test failure on HP-UX 11.11.
490         * tests/test-getlogin_r.c (main): Likewise.
491
492 2010-12-20  Bruno Haible  <bruno@clisp.org>
493
494         getlogin_r: Add missing declaration on HP-UX 11.
495         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
496         declared also when it exists as a function.
497         * doc/posix-functions/getlogin_r.texi: Document this workaround.
498
499 2010-12-20  Bruno Haible  <bruno@clisp.org>
500
501         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
502         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
503         through wcrtomb.
504
505 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
506
507         ftoastr: fix comment
508         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
510
511 2010-12-19  Bruno Haible  <bruno@clisp.org>
512
513         isnan: Ensure it is a macro.
514         * lib/math.in.h (isnan): Define as a macro if not already a macro.
515         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
516         Solaris.
517
518 2010-12-19  Bruno Haible  <bruno@clisp.org>
519
520         ldexpl test: Fix link error on OSF/1 5.1.
521         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
522
523 2010-12-19  Bruno Haible  <bruno@clisp.org>
524
525         wctype: Make it work in C++ mode on OSF/1 5.1.
526         * lib/wctype.in.h (iswblank): Declare but not define here.
527         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
528         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
529         * modules/wctype (Files): Add lib/iswblank.c.
530
531 2010-12-19  Bruno Haible  <bruno@clisp.org>
532
533         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
534         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
535         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
536
537 2010-12-19  Bruno Haible  <bruno@clisp.org>
538
539         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
541         _POSIX_PII_SOCKET.
542         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
543         * doc/posix-functions/recvfrom.texi: Likewise.
544         * doc/posix-functions/send.texi: Likewise.
545         * doc/posix-functions/sendto.texi: Likewise.
546
547 2010-12-19  Bruno Haible  <bruno@clisp.org>
548
549         tcgetsid: Add missing declaration on OSF/1 5.1.
550         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
551         HAVE_TCGETSID.
552         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
553         Don't set HAVE_TCGETSID.
554         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
555         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
556         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
557         HAVE_TCGETSID.
558         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
559
560 2010-12-19  Bruno Haible  <bruno@clisp.org>
561
562         stdio: Fix problem with popen() declaration on OSF/1 5.1.
563         * lib/stdio.in.h: During the include_next statement, let recursive
564         includes of this file include only the system header file.
565
566 2010-12-19  Bruno Haible  <bruno@clisp.org>
567
568         iconv_open: Fix regression from 2010-12-04.
569         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
570         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
571
572 2010-12-19  Bruno Haible  <bruno@clisp.org>
573
574         stdbool test: Avoid a gcc warning.
575         * tests/test-stdbool.c (main): Fail if e1 is false.
576         Reported by Jim Meyering.
577
578 2010-12-19  Jim Meyering  <meyering@redhat.com>
579
580         setenv: restore to working order
581         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
582         mistakenly removed.
583         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
584         HAVE_SETENV.
585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
586         HAVE_SETENV.
587
588 2010-12-19  Bruno Haible  <bruno@clisp.org>
589
590         Document some different function declarations on OSF/1 5.1.
591         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
592         * doc/posix-functions/inet_ntop.texi: Likewise.
593         * doc/posix-functions/gethostname.texi: Likewise.
594         * lib/unistd.in.h (gethostname): Update comment.
595
596 2010-12-19  Bruno Haible  <bruno@clisp.org>
597
598         doc: Mention vasprintf-posix module.
599         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
600         the 'vasprintf-posix' module.
601         * doc/glibc-functions/vasprintf.texi: Likewise.
602
603 2010-12-19  Bruno Haible  <bruno@clisp.org>
604
605         unsetenv: Add missing declaration on OSF/1 5.1.
606         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
607         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
608         Don't set HAVE_UNSETENV. In the test program, set _BSD.
609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
610         not HAVE_UNSETENV.
611         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
612         HAVE_UNSETENV.
613         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
614
615 2010-12-19  Bruno Haible  <bruno@clisp.org>
616
617         setenv: Add missing declaration on OSF/1 5.1.
618         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
620         declared. Don't set HAVE_SETENV.
621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
622         not HAVE_SETENV.
623         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
624         HAVE_SETENV.
625         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
626
627 2010-12-19  Bruno Haible  <bruno@clisp.org>
628
629         nl_langinfo tests: Avoid gcc warning.
630         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
631
632 2010-12-19  Bruno Haible  <bruno@clisp.org>
633
634         mknod: Avoid error in C++ mode on OSF/1 with GCC.
635         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
636         _GL_CXXALIAS_SYS.
637
638 2010-12-19  Bruno Haible  <bruno@clisp.org>
639
640         stdbool: Relax test.
641         * tests/test-stdbool.c (e): Don't require that casts from a variable's
642         address to 'bool' work in static initializer, for compilers other than
643         GCC.
644
645 2010-12-19  Bruno Haible  <bruno@clisp.org>
646
647         ftello: Add missing declaration on OSF/1 5.1.
648         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
649         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
651         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
652         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
653
654 2010-12-19  Bruno Haible  <bruno@clisp.org>
655
656         fseeko: Add missing declaration on OSF/1 5.1.
657         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
660         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
661         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
662
663 2010-12-19  Bruno Haible  <bruno@clisp.org>
664
665         fchdir: Add missing declaration on OSF/1 5.1.
666         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
669         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
670         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
671
672 2010-12-19  Bruno Haible  <bruno@clisp.org>
673
674         relocatable-prog-wrapper: Separate from relocatable-prog.
675         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
676         uninstall-relocwrapper rule here.
677         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
678         Reported by Ian Beckwith <ianb@erislabs.net>.
679
680 2010-12-19  Bruno Haible  <bruno@clisp.org>
681
682         unistr/u8-mbsnlen: Add missing dependency.
683         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
684         Reported by Ian Beckwith <ianb@erislabs.net>.
685
686 2010-12-19  Bruno Haible  <bruno@clisp.org>
687
688         iconv: Make it possible again to use this module without 'iconv-h'.
689         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
690         if it is not defined.
691         Reported by Ian Beckwith <ianb@erislabs.net>.
692
693 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
694
695         acl: port to Solaris 8 when copying from tmpfs to ufs
696         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
697         error number.  Problem observed on Solaris 8 with latest
698         coreutils, with "mv A B", where A is on a tmpfs file system and B
699         is on a ufs file system.  This caused coreutils' mv/part-symlink
700         test to fail.
701
702         tests: set fail=0 at start
703         * tests/init.sh (setup_): Move fail=0 initialization here ...
704         (mktempd_): ... from here, so that tests can rely on fail being
705         set to 0 initially.  This fixes a problem in coreutils; see:
706         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
707
708 2010-12-18  Bruno Haible  <bruno@clisp.org>
709
710         memmem-simple: Stylistic changes.
711         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
712         Fix preprocessor directive indentation.
713
714 2010-12-15  Pádraig Brady <P@draigBrady.com>
715
716         memmem, memmem-simple: reorganize and expand empty needle check
717         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
718         functional checks to memmem-simple so that one has a fully functional
719         memmem by using just this module.
720         Restrict the performance only check to the memmem module.
721         Also expand the empty needle check to ensure the correct
722         pointer is returned, not just a non NULL pointer.
723         * doc/glibc-functions/memmem.texi: Rearrange the portability
724         documentation to correlate with the rearranged checks.
725         Clarify exactly how the memmem and memmem-simple modules
726         relate to each other.
727
728 2010-12-15  Pádraig Brady <P@draigBrady.com>
729             Bruno Haible  <bruno@clisp.org>
730
731         Improve cross-compilation guesses for uClibc.
732         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
733         that uClibc does not have the glibc bug.
734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
735         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
736
737 2010-12-14  Eric Blake  <eblake@redhat.com>
738
739         configmake: provide fallbacks for oldest supported autotools
740         * m4/configmake.m4: New file.
741         * modules/configmake (Files): Ship it.
742         (configure.ac): Use it to guarantee fallbacks.
743
744 2010-12-13  Pádraig Brady <P@draigBrady.com>
745
746         read-file: Improve handling of large files
747         * lib/read-file.c (fread_file): Minimize realloc()s
748         for regular files, and better manage sizes around SIZE_MAX.
749
750 2010-12-13  Eric Blake  <eblake@redhat.com>
751
752         cloexec, fcntl: relax license
753         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
754         consent from all contributors.
755         * modules/fcntl (License): Likewise.
756
757 2010-12-10  Bruno Haible  <bruno@clisp.org>
758
759         Tests for module 'pipe-posix'.
760         * modules/pipe-posix-tests: New file.
761         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
762
763 2010-12-10  Bruno Haible  <bruno@clisp.org>
764
765         pipe-posix: Make it work in C++ mode.
766         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
767         (pipe): Use common idiom, not a macro definition.
768         * lib/pipe.c: New file.
769         * m4/pipe.m4: New file.
770         * modules/pipe-posix (Description): Enhance.
771         (Files): Add lib/pipe.c, m4/pipe.m4.
772         (configure.ac): Invoke gl_FUNC_PIPE.
773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
774         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
775         * tests/test-unistd-c++.cc: Check the signature of pipe.
776
777 2010-12-10  Bruno Haible  <bruno@clisp.org>
778
779         Rename module 'pipe' to 'spawn-pipe'.
780         * modules/spawn-pipe: New file, renamed from modules/pipe.
781         (Files, configure.ac, Makefile.am): Update.
782         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
783         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
784         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
785         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
786         "spawn-pipe.h" instead of "pipe.h".
787         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
788         to gl_SPAWN_PIPE.
789         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
790         (Files, Makefile.am): Update.
791         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
792         Update.
793         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
794         Include "spawn-pipe.h" instead of "pipe.h".
795         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
796         * lib/javacomp.c: Likewise.
797         * lib/javaversion.c: Likewise.
798         * lib/pipe-filter-gi.c: Likewise.
799         * lib/pipe-filter-ii.c: Likewise.
800         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
801         * modules/javacomp (Depends-on): Likewise.
802         * modules/javaversion (Depends-on): Likewise.
803         * modules/pipe-filter-gi (Depends-on): Likewise.
804         * modules/pipe-filter-ii (Depends-on): Likewise.
805         * MODULES.html.sh (Executing programs): Update.
806         * NEWS: Mention the change.
807
808 2010-12-10  Eric Blake  <eblake@redhat.com>
809
810         pipe-posix: new module
811         * modules/pipe-posix: New file.
812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
813         (gl_UNISTD_H): Check for declaration.
814         * modules/unistd (Makefile.am): Substitute it.
815         * lib/unistd.in.h (pipe): Provide it for mingw.
816         * doc/posix-functions/pipe.texi (pipe): Update documentation.
817         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
818
819 2010-12-07  Bruno Haible  <bruno@clisp.org>
820
821         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
822         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
823         u8_strcmp_gnu.
824         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
825
826 2010-12-06  Bruno Haible  <bruno@clisp.org>
827
828         Update internal documentation.
829         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
830
831 2010-12-04  Bruno Haible  <bruno@clisp.org>
832
833         Put more information about failed tests into the test return codes.
834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
835         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
836         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
838         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
840         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
841         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
842         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
845         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
846         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
847         * m4/stdint.m4 (gl_STDINT_H): Likewise.
848         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
849         returns a bit mask.
850         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
851         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
852         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
853         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
855         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
858         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
859         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
861         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
862         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
863         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
864         * m4/link.m4 (gl_FUNC_LINK): Likewise.
865         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
866         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
867         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
868         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
869         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
871         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
873         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
874         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
875         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
876         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
877         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
878         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
879         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
880         gl_PRINTF_PRECISION): Likewise.
881         * m4/regex.m4 (gl_REGEX): Likewise.
882         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
884         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
885         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
888         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
889         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
890         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
892         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
893         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
894         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
895         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
896         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
897         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
898         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
899         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
902         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
903         enumerated value.
904         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
905
906 2010-12-04  Bruno Haible  <bruno@clisp.org>
907
908         Update for Solaris 11 2010-11.
909         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
910         Express, released in November 2010.
911
912 2010-12-04  Bruno Haible  <bruno@clisp.org>
913
914         nproc: Relax license.
915         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
916         and Paul Eggert.
917         Requested by Ludovic Courtès <ludo@gnu.org>.
918
919 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
920
921         utimecmp: fine-grained src to nearby coarse-grained dest
922
923         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
924         and the source is on a file system with higher-resolution time
925         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
926         not work, and the time stamps are close together, the algorithm to
927         determine the exact resolution from the read-back mtime was buggy:
928         it had a "!=" where it should have had an "==".  This bug has been
929         in the code ever since it was introduced to gnulib.
930         Problem reported by Dan Jacobson in
931         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
932
933 2010-11-30  Bruno Haible  <bruno@clisp.org>
934
935         strerror_r-posix: Fix autoconf test.
936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
937
938 2010-11-28  Bruno Haible  <bruno@clisp.org>
939             Paul Eggert  <eggert@cs.ucla.edu>
940
941         Tests for module 'getdomainname'.
942         * modules/getdomainname-tests: New file.
943         * tests/test-getdomainname.c: New file, based on
944         tests/test-gethostname.c.
945
946 2010-11-28  Bruno Haible  <bruno@clisp.org>
947             Paul Eggert  <eggert@cs.ucla.edu>
948
949         getdomainname: Use the system function when possible.
950         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
951         (getdomainname): Replace if needed. Provide the declaration if it is
952         missing. Don't use _GL_CXXALIAS_SYS_CAST.
953         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
954         (getdomainname): When the system has getdomainname, call the system
955         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
956         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
957         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
958         found in libnsl. Look for the declaration also in <netdb.h>. Replace
959         the function if its second argument is of type 'int' or if it is found
960         in libnsl.
961         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
962         <sys/systeminfo.h> and sysinfo().
963         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
965         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
966         HAVE_GETDOMAINNAME.
967         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
968         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
969         * doc/glibc-functions/getdomainname.texi: Document the problems with
970         the getdomainname declaration.
971
972 2010-11-28  Bruno Haible  <bruno@clisp.org>
973
974         sys_socket: Ensure ss_family field on AIX.
975         * lib/sys_socket.in.h (ss_family): New macro definition.
976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
977         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
978         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
979         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
980         * modules/sys_socket (Makefile.am): Substitute
981         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
982         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
983
984 2010-11-27  Bruno Haible  <bruno@clisp.org>
985
986         readline: Improve configure output.
987         * m4/readline.m4 (gl_FUNC_READLINE): Make the
988         "checking for readline..." result understandable.
989
990 2010-11-27  Bruno Haible  <bruno@clisp.org>
991
992         *printf-posix: Detect a bug on Solaris 10/x86.
993         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
994         for floating-point output.
995         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
996         directive.
997         * tests/test-snprintf-posix.h (test_function): Likewise.
998         * tests/test-sprintf-posix.h (test_function): Likewise.
999         * tests/test-vasprintf-posix.c (test_function): Likewise.
1000         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1001         * doc/posix-functions/printf.texi: Likewise.
1002         * doc/posix-functions/snprintf.texi: Likewise.
1003         * doc/posix-functions/sprintf.texi: Likewise.
1004         * doc/posix-functions/vfprintf.texi: Likewise.
1005         * doc/posix-functions/vprintf.texi: Likewise.
1006         * doc/posix-functions/vsnprintf.texi: Likewise.
1007         * doc/posix-functions/vsprintf.texi: Likewise.
1008         * doc/glibc-functions/obstack_printf.texi: Likewise.
1009         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1010
1011 2010-11-27  Bruno Haible  <bruno@clisp.org>
1012
1013         Fix link error when module libunistring-optional is in use.
1014         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1015         * modules/striconveha-tests (Makefile.am): Likewise.
1016
1017 2010-11-27  Bruno Haible  <bruno@clisp.org>
1018
1019         regex: Mention link dependencies.
1020         * modules/regex (Link): New section.
1021         * modules/rpmatch (Link): Likewise.
1022         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1023
1024 2010-11-27  Bruno Haible  <bruno@clisp.org>
1025
1026         ftoastr: Fix compilation error on Solaris.
1027         * lib/ftoastr.c: Include <config.h>.
1028
1029 2010-11-27  Bruno Haible  <bruno@clisp.org>
1030
1031         getloadavg: Update documentation.
1032         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1033
1034 2010-11-27  Bruno Haible  <bruno@clisp.org>
1035
1036         sys_socket: Fix test whether the functions are declared.
1037         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1038         not <sys/select.h>.
1039
1040 2010-11-27  Bruno Haible  <bruno@clisp.org>
1041
1042         getpass: Make sure to get system declaration on some platforms.
1043         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1044         gl_USE_SYSTEM_EXTENSIONS.
1045         * modules/getpass (Depends-on): Add extensions.
1046
1047 2010-11-26  Bruno Haible  <bruno@clisp.org>
1048
1049         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1050         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1051         'iconv' module is present.
1052         (ICONV_CONST): New macro.
1053         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1054         ICONV_CONST.
1055         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1056         set ICONV_CONST.
1057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1058         here.
1059         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1060         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1061         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1062         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1063         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1064         present.
1065
1066 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1067
1068         ftoastr: comment fix
1069         * lib/ftoastr.c: "little" -> "little or no" in comment
1070
1071 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1072
1073         stdint: port to GCC 4.3 + OSX + Octave
1074         On this platform, stdint.h is buggy and defines int64_t to long
1075         long int.  The replacement defined it to long int, causing
1076         problems with C++ style name mangling.  Instead, trust the system
1077         definition if INT64_MAX is defined, and likewise for the unsigned
1078         variant.   Problem reported by Jarno Rajahalme in
1079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1080         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1081         and don't mess with int64_t and INT64_MAX in this case.
1082         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1083
1084 2010-11-24  Bruno Haible  <bruno@clisp.org>
1085
1086         doc: Corrections regarding MacOS X 10.4 and 10.5.
1087         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1088         MacOS X.
1089         Reported by Simon Josefsson.
1090
1091 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1092
1093         Uninstall ".bin" files installed by relocwrapper.
1094         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1095         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1096         unless it is already there.
1097
1098 2010-11-21  Bruno Haible  <bruno@clisp.org>
1099
1100         Update for NetBSD 5.0.
1101         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1102         NetBSD; the test fails on NetBSD 5.0.
1103         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1104         about NetBSD.
1105
1106 2010-11-21  Bruno Haible  <bruno@clisp.org>
1107
1108         Update for HP-UX 11.23 and HP-UX 11.31.
1109         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1110         HP-UX.
1111
1112 2010-11-21  Bruno Haible  <bruno@clisp.org>
1113
1114         Update for MacOS X 10.5.
1115         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1116         MacOS X; the test fails on MacOS X 10.5.8.
1117         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1118         about MacOS X.
1119
1120 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1121
1122         bootstrap: add bootstrap_sync option.
1123         See discussion at
1124         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1126         * build-aux/bootstrap: Accept --bootstrap-sync to update
1127         bootstrap if it is not identical to the local gnulib's
1128         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1129         enable this by default.  Accept --no-bootstrap-sync to disable
1130         it.
1131
1132 2010-11-20  Bruno Haible  <bruno@clisp.org>
1133
1134         Ensure that <features.h> is included before __GLIBC__ is tested.
1135         * lib/printf-parse.h: Include <features.h>.
1136         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1137         Reported by Mike Frysinger <vapier@gentoo.org>.
1138
1139         Ensure that <features.h> is included before __GLIBC__ is tested.
1140         * lib/wchar.in.h: Include <features.h>.
1141         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1142         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1143         Reported by Mike Frysinger <vapier@gentoo.org>.
1144
1145         Ensure that <features.h> is included before __GLIBC__ is tested.
1146         * lib/arpa_inet.in.h: Include <features.h>.
1147         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1148         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1149         Reported by Mike Frysinger <vapier@gentoo.org>.
1150
1151         Ensure that <features.h> is included before __GLIBC__ is tested.
1152         * build-aux/link-warning.h: Include <features.h>.
1153         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1154         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1155         Reported by Mike Frysinger <vapier@gentoo.org>.
1156
1157         Ensure that <features.h> is included before __GLIBC__ is tested.
1158         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1159         Reported by Mike Frysinger <vapier@gentoo.org>.
1160
1161 2010-11-20  Bruno Haible  <bruno@clisp.org>
1162
1163         memmem: Fix autoconf test.
1164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1165
1166 2010-11-20  Bruno Haible  <bruno@clisp.org>
1167
1168         Port to uClibc.
1169         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1170         * lib/fcntl.in.h: Likewise.
1171         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1172         * lib/mbrtowc.c (mbrtowc): Likewise.
1173         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1174         * lib/strerror_r.c: Likewise.
1175         * lib/unistr/u8-strnlen.c: Likewise.
1176         * lib/vasnprintf.c (decimal_point_char): Likewise.
1177         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1178         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1180         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1181         * tests/test-sigaction.c (handler, main): Likewise.
1182         * lib/freading.h: Treat uClibc like a non-glibc platform.
1183         * lib/freading.c: Likewise.
1184         * lib/gettext.h: Likewise.
1185         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1186         Likewise.
1187         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1188         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1189         * lib/propername.c (proper_name_utf8): Likewise.
1190         * lib/spawn.in.h: Likewise.
1191         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1192         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1193         mem_cd_iconveh_internal): Likewise.
1194         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1195         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1196         strstr, strcasestr): Likewise.
1197         * lib/unicodeio.c (unicode_to_mb): Likewise.
1198         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1199         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1200         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1201         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1202         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1203         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1204         * lib/unistr/u8-stpncpy.c: Likewise.
1205         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1206         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1207         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1208         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1209         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1210         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1212         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1214         Likewise.
1215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1216         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1220         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1221         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1222         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1223         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1224         * tests/test-striconveha.c (main): Likewise.
1225         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1226         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1227         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1228         * doc/posix-functions/getline.texi: Likewise.
1229         Reported by Mike Frysinger <vapier@gentoo.org>.
1230
1231 2010-11-20  Bruno Haible  <bruno@clisp.org>
1232
1233         nproc: Fix condition.
1234         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1235         HAVE_PTHREAD_AFFINITY_NP.
1236
1237 2010-11-20  Bruno Haible  <bruno@clisp.org>
1238
1239         Fix a comment.
1240         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1241
1242 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1243
1244         ftoastr: don't assume snprintf
1245         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1246         Implement a subset of snprintf here, by using sprintf safely.
1247         * modules/ftoastr (Depends-on): Remove snprintf.
1248
1249 2010-11-19  Jim Meyering  <meyering@redhat.com>
1250
1251         test-rename.h: fix compilation failure
1252         * tests/test-rename.h (test_rename): Add omitted "}".
1253
1254 2010-11-17  Jim Meyering  <meyering@redhat.com>
1255
1256         maint.mk: add a URL discussing the no-@acronym policy
1257         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1258
1259 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         ftoastr: depend on snprintf, improve comments
1262         * lib/ftoastr.c: Also mention Loitsch's draft.
1263         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1264         needed in the current implementation, but it might simplify
1265         speeding up the code later.
1266         * modules/ftoastr: Depend on snprintf; this improves portability.
1267         Suggested by Bruno Haible in the same email.
1268
1269         ftoastr: port to hosts lacking strtof and strtold
1270         Problem reported by Bruno Haible in
1271         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1272         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1273         environment and strtold (and presumably strtof) are not available.
1274         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1275         (configure.ac): Require gl_C99_STRTOLD.
1276
1277 2010-11-18  Bruno Haible  <bruno@clisp.org>
1278
1279         c-strtold: Avoid link error on AIX 7.
1280         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1281         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1282         (gl_C_STRTOLD): Test whether strtold_l exists.
1283         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1284
1285 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         intprops: new macro INT_BITS_STRLEN_BOUND
1288         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1289         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1290         not exposed.  Also, it uses a slightly tighter bound than before;
1291         though this makes no practical difference, we might as well be as
1292         tight as we easily can.
1293
1294         ftoastr: new module, for lossless conversion of floats to short strings
1295         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1296         * modules/ftoastr: New files.
1297
1298 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         bootstrap: port to Solaris sed
1301         * build-aux/bootstrap (get_version): Port to Solaris sed.
1302         See Ralf Wildenhues's note in
1303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1304
1305 2010-11-14  Jim Meyering  <meyering@redhat.com>
1306
1307         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1308         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1309         and move definition closer to sole use.
1310
1311 2010-11-13  Jim Meyering  <meyering@redhat.com>
1312
1313         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1314         Now we require at least autoconf-2.59, which means the work-around
1315         is no longer needed.
1316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1318         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1320         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1321
1322 2010-11-13  Bruno Haible  <bruno@clisp.org>
1323
1324         rename, renameat: Avoid test failures at NFS mounted locations.
1325         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1326         functions.
1327         (test_rename): Use assert_nonexistent.
1328         * tests/test-rename.c: Include <dirent.h>.
1329         * tests/test-renameat.c: Likewise.
1330         Reported by Gary V. Vaughan <gary@gnu.org>.
1331
1332         rename, renameat: Document Linux bug with NFS
1333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1334         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1335         * doc/posix-functions/renameat.texi: Likewise.
1336         Suggested by Eric Blake.
1337
1338 2010-11-13  Bruno Haible  <bruno@clisp.org>
1339
1340         rename test: Add comments.
1341         * tests/test-rename.h (test_rename): Add structure and comments.
1342
1343 2010-11-13  Eric Blake  <eblake@redhat.com>
1344
1345         maintainer-makefile: cover a few more files
1346         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1347         scripts generated within C files, for libvirt.
1348
1349 2010-11-13  Bruno Haible  <bruno@clisp.org>
1350
1351         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1352         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1353         character, return the number of bytes that belong together, not always
1354         1.
1355         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1356         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1357         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1358         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1359         number of bytes of an invalid character.
1360         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1361         (main): Invoke it.
1362         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1363         results.
1364         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1365         malformed byte sequences.
1366         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1367         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1368         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1369         Reported by Ben Pfaff and Paolo Bonzini.
1370
1371 2010-11-13  Bruno Haible  <bruno@clisp.org>
1372
1373         openat: Work around glibc bug with fchownat() and empty file names.
1374         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1375         (gl_FUNC_FCHOWNAT): Invoke it.
1376         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1377         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1378         Reported by Gary V. Vaughan <gary@gnu.org>.
1379
1380 2010-11-13  Bruno Haible  <bruno@clisp.org>
1381
1382         openat: Ensure autoconf macro ordering.
1383         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1384         gl_USE_SYSTEM_EXTENSIONS.
1385         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1386
1387 2010-11-13  Bruno Haible  <bruno@clisp.org>
1388
1389         Update comments.
1390         * lib/unistr/u8-check.c: Update file name in comments.
1391         * lib/unistr/u8-mblen.c: Likewise.
1392         * lib/unistr/u8-prev.c: Likewise.
1393         * lib/unistr/u8-strmblen.c: Likewise.
1394         * lib/unistr/u8-strmbtouc.c: Likewise.
1395
1396 2010-11-13  Jim Meyering  <meyering@redhat.com>
1397
1398         tests: avoid test failure on Solaris 10 due to lack of PATH export
1399         * tests/test-update-copyright.sh: Don't forget to export PATH.
1400
1401         init.sh: ensure that IFS is defined, just in case...
1402         * tests/init.sh (setup_): Ensure that IFS is defined,
1403         so that saving and restoring it works as expected.  This
1404         appears to be useful at least for an old version of dash
1405         from a long time ago (RH 6).  See here for details:
1406         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1407
1408         maint.mk: tighten "test a == b" check
1409         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1410         test to files that contain something like #!/bin/sh.
1411         Without this, coreutils would get two false positives in
1412         the comments of C source files.
1413
1414 2010-11-12  Eric Blake  <eblake@redhat.com>
1415
1416         bootstrap: fix typo in previous attempt
1417         * build-aux/bootstrap (buildreq): Correct the grouping.
1418         Reported by Paul Eggert.
1419
1420         maintainer-makefile: prohibit test x == x
1421         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1422         Based on a report by Matthias Bolte.
1423
1424         bootstrap: allow FreeBSD gzip
1425         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1426         which has no '.' and goes to stderr.
1427         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1428         Reported by Matthias Bolte.
1429
1430         maintainer-makefile: check for i18n setup
1431         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1432         will likely work.
1433
1434 2010-11-12  Bruno Haible  <bruno@clisp.org>
1435
1436         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1437         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1438         * lib/nanosleep.c (nanosleep): Likewise.
1439
1440 2010-11-11  Bruno Haible  <bruno@clisp.org>
1441
1442         fcntl-h: Fix for use of C++ on glibc systems.
1443         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1444         also on glibc systems in C++ mode.
1445         Reported by Gary V. Vaughan <gary@gnu.org>.
1446
1447 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1448
1449         mknod: avoid false failure with dash
1450         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1451
1452 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1453
1454         unlink: Fix "is it should" typo in diagnostic.
1455         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1457
1458 2010-11-11  Bruno Haible  <bruno@clisp.org>
1459
1460         Tests for module 'strerror_r-posix'.
1461         * modules/strerror_r-posix-tests: New file.
1462         * tests/test-strerror_r.c: New file.
1463         * tests/test-string-c++.cc: Check the signature of strerror_r.
1464
1465         New module 'strerror_r-posix'.
1466         * lib/string.in.h (strerror_r): New declaration.
1467         * lib/strerror_r.c: New file.
1468         * m4/strerror_r.m4: New file.
1469         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1470         of strerror_r.
1471         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1472         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1473         * modules/strerror_r-posix: New file.
1474         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1475         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1476         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1477         portability problems.
1478
1479 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1480
1481         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1482         line is also considered for output. Quoted function name in shell
1483         command, so temporary files for functions like MyClass::operator()
1484         are removed correctly without errors.
1485
1486 2010-11-09  Bruno Haible  <bruno@clisp.org>
1487
1488         * doc/posix-functions/strerror.texi: List more failing platforms.
1489
1490         * doc/posix-functions/strerror.texi: Add a comment.
1491
1492 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1493
1494         fdopendir: fix bug on MacOS X when low on file descriptors
1495
1496         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1497         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1498         All callers changed.
1499         (fdopendir): Invoke save_cwd at the top level, not after using
1500         multiple dup() calls to use up file descriptors.  Then retry
1501         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1502         less than the maximum number of open file descriptors, because
1503         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1504         on Mac OS X 10.6.4 for tar 1.24
1505         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1506         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1507         and for tar 1.25
1508         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1509
1510 2010-11-07  Bruno Haible  <bruno@clisp.org>
1511
1512         vasnprintf: Support I flag on glibc systems.
1513         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1514         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1515         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1516         snprintf function.
1517         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1518         glibc systems.
1519         * tests/test-vasnprintf-posix3.c: New file.
1520         * modules/vasnprintf-posix-tests (Files): Add it.
1521         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1522
1523 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1524
1525         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1526         * MODULES.html.sh: For compiler warnings, use name
1527         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1528
1529 2010-11-05  Eric Blake  <eblake@redhat.com>
1530
1531         ceil, floor: avoid spurious failure with icc
1532         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1533         [denormals-as-zero] when optimizing without -mieee-fp option.
1534         * tests/test-floorf2.c (floorf_reference): Likewise.
1535         * tests/test-ceilf1.c (dummy): New function.
1536         (main): Use it to outsmart icc's optimization.
1537         * tests/test-floorf1.c (dummy, main): Likewise.
1538
1539         tests: require working signbit
1540         * modules/ceilf-tests (Depends-on): Add signbit.
1541         * modules/ceill-tests (Depends-on): Likewise.
1542         * modules/floorf-tests (Depends-on): Likewise.
1543         * modules/floorl-tests (Depends-on): Likewise.
1544         * modules/round-tests (Depends-on): Likewise.
1545         * modules/roundf-tests (Depends-on): Likewise.
1546         * modules/roundl-tests (Depends-on): Likewise.
1547         * modules/trunc-tests (Depends-on): Likewise.
1548         * modules/truncf-tests (Depends-on): Likewise.
1549         * modules/truncl-tests (Depends-on): Likewise.
1550
1551         strtod: work around icc bug
1552         * lib/strtod.c (minus_zero): Define to working value.
1553         (strtod): Use it to avoid icc bug.
1554
1555         copysign: enhance tests
1556         * modules/copysign-tests (Files): Add minus-zero.h.
1557         * tests/test-copysign.c (main): Also test zeros.
1558
1559 2010-11-04  Eric Blake  <eblake@redhat.com>
1560
1561         ceil, floor, round, trunc: enhance tests of -0
1562         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1563         * tests/test-ceill.c (main): Likewise.
1564         * tests/test-floorf1.c (main): Likewise.
1565         * tests/test-floorl.c (main): Likewise.
1566         * tests/test-round1.c (main): Likewise.
1567         * tests/test-roundf1.c (main): Likewise.
1568         * tests/test-roundl.c (main): Likewise.
1569         * tests/test-trunc1.c (main): Likewise.
1570         * tests/test-truncf1.c (main): Likewise.
1571         * tests/test-truncl.c (main): Likewise.
1572
1573 2010-11-04  Eric Blake  <eblake@redhat.com>
1574
1575         frexp, tests: work around ICC bug with -zero
1576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1577         works with more compilers.
1578         * tests/minus-zero.h: New file.
1579         * modules/ceilf-tests (Files): Include it.
1580         * modules/ceill-tests (Files): Likewise.
1581         * modules/floorf-tests (Files): Likewise.
1582         * modules/floorl-tests (Files): Likewise.
1583         * modules/frexp-nolibm-tests (Files): Likewise.
1584         * modules/frexp-tests (Files): Likewise.
1585         * modules/frexpl-nolibm-tests (Files): Likewise.
1586         * modules/frexpl-tests (Files): Likewise.
1587         * modules/isnan-tests (Files): Likewise.
1588         * modules/isnand-nolibm-tests (Files): Likewise.
1589         * modules/isnand-tests (Files): Likewise.
1590         * modules/isnanf-nolibm-tests (Files): Likewise.
1591         * modules/isnanf-tests (Files): Likewise.
1592         * modules/isnanl-nolibm-tests (Files): Likewise.
1593         * modules/isnanl-tests (Files): Likewise.
1594         * modules/round-tests (Files): Likewise.
1595         * modules/roundf-tests (Files): Likewise.
1596         * modules/roundl-tests (Files): Likewise.
1597         * modules/ldexpl-tests (Files): Likewise.
1598         * modules/signbit-tests (Files): Likewise.
1599         * modules/snprintf-posix-tests (Files): Likewise.
1600         * modules/sprintf-posix-tests (Files): Likewise.
1601         * modules/strtod-tests (Files): Likewise.
1602         * modules/trunc-tests (Files): Likewise.
1603         * modules/truncf-tests (Files): Likewise.
1604         * modules/truncl-tests (Files): Likewise.
1605         * modules/vsnprintf-posix-tests (Files): Likewise.
1606         * modules/vsprintf-posix-tests (Files): Likewise.
1607         * modules/vasnprintf-posix-tests (Files): Likewise.
1608         * modules/vasprintf-posix-tests (Files): Likewise.
1609         * tests/test-ceilf1.c (main): Use it.
1610         * tests/test-ceill.c (main): Likewise.
1611         * tests/test-floorf1.c (main): Likewise.
1612         * tests/test-floorl.c (main): Likewise.
1613         * tests/test-frexp.c (main): Likewise.
1614         * tests/test-frexpl.c (main): Likewise.
1615         * tests/test-isnan.c (main): Likewise.
1616         * tests/test-isnand.h (main): Likewise.
1617         * tests/test-isnanf.h (main): Likewise.
1618         * tests/test-isnanl.h (main): Likewise.
1619         * tests/test-ldexpl.c (main): Likewise.
1620         * tests/test-round.c (main): Likewise.
1621         * tests/test-roundf.c (main): Likewise.
1622         * tests/test-roundl.c (main): Likewise.
1623         * tests/test-signbit.c (test_signbitf, test_signbitd)
1624         (test_signbitl): Likewise.
1625         * tests/test-snprintf-posix.h (test_function): Likewise.
1626         * tests/test-sprintf-posix.h (test_function): Likewise.
1627         * tests/test-strtod.c (main): Likewise.
1628         * tests/test-trunc1.c (main): Likewise.
1629         * tests/test-truncf1.c (main): Likewise.
1630         * tests/test-truncl.c (main): Likewise.
1631
1632         isnanl: work around icc bug
1633         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1634
1635 2010-11-03  Eric Blake  <eblake@redhat.com>
1636
1637         tests: fix compiler warnings
1638         * tests/test-getopt.h (test_getopt): Fix condition.
1639         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1640         * tests/test-pipe2.c (main): Likewise.
1641         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1642
1643         utimens: fix broken m4 test
1644         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1645
1646 2010-10-28  Bruno Haible  <bruno@clisp.org>
1647
1648         posix_spawn*, getdtablesize: Relax license.
1649         * modules/posix_spawn (License): Change to LGPLv2+.
1650         * modules/posix_spawnp (License): Likewise.
1651         * modules/posix_spawn-internal (License): Likewise.
1652         * modules/posix_spawnattr_init (License): Likewise.
1653         * modules/posix_spawnattr_getflags (License): Likewise.
1654         * modules/posix_spawnattr_setflags (License): Likewise.
1655         * modules/posix_spawnattr_getpgroup (License): Likewise.
1656         * modules/posix_spawnattr_setpgroup (License): Likewise.
1657         * modules/posix_spawnattr_getschedparam (License): Likewise.
1658         * modules/posix_spawnattr_setschedparam (License): Likewise.
1659         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1660         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1661         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1662         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1663         * modules/posix_spawnattr_getsigmask (License): Likewise.
1664         * modules/posix_spawnattr_setsigmask (License): Likewise.
1665         * modules/posix_spawnattr_destroy (License): Likewise.
1666         * modules/posix_spawn_file_actions_init (License): Likewise.
1667         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1668         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1669         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1670         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1671         * modules/getdtablesize (License): Likewise.
1672         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1673
1674 2010-10-26  Bruno Haible  <bruno@clisp.org>
1675
1676         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1677         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1678         Cygwin and mingw.
1679         Suggested by Eric Blake.
1680
1681 2010-10-26  Bruno Haible  <bruno@clisp.org>
1682
1683         stdio: Work around compilation error due to renameat() on Solaris 10.
1684         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1685         * lib/renameat.c: Don't include <unistd.h> here.
1686         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1687         Reported by Paul Eggert and Eric Blake.
1688
1689 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1690
1691         renameat: port to Solaris 10, which declares renameat in unistd.h
1692
1693         * lib/renameat.c: Include unistd.h before stdio.h, because
1694         Solaris 10 declares renameat in unistd.h.  Problem encountered
1695         when building GNU tar 1.24 on Solaris 10.
1696
1697 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1698
1699         fdopendir: fix C89 compilation
1700         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1701         compilers.
1702
1703 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1704
1705         inttostr: simplify by removing unnecessary redundancy
1706         * lib/anytostr.c: Don't include verify.h.
1707         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1708         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1709         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1710         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1711         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1712         Likewise.
1713         * modules/inttostr (Depends-on): Remove 'verify'.
1714
1715 2010-10-23  Bruno Haible  <bruno@clisp.org>
1716
1717         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1718         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1719         Reported by Eric Blake.
1720
1721 2010-10-23  Bruno Haible  <bruno@clisp.org>
1722
1723         Tests: Fix LOCALE_JA on MirBSD 10.
1724         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1725         to an UTF-8 locale.
1726         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1728         Reported by Eric Blake.
1729
1730 2010-10-21  Bruno Haible  <bruno@clisp.org>
1731
1732         nl_langinfo test: Avoid test failure on NetBSD 5.
1733         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1734         Reported by Eric Blake.
1735
1736 2010-10-21  Eric Blake  <eblake@redhat.com>
1737
1738         c-stack: work around libsigsegv 2.8 bug
1739         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1740         overflow on at least PowerPC64.
1741
1742 2010-10-17  Bruno Haible  <bruno@clisp.org>
1743
1744         userspec: Drop redundant file.
1745         * modules/userspec (Files): Remove lib/inttostr.h.
1746
1747 2010-10-17  Bruno Haible  <bruno@clisp.org>
1748
1749         nl_langinfo tests: Silence some warnings.
1750         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1751         Reported by Jim Meyering.
1752
1753 2010-10-17  Bruno Haible  <bruno@clisp.org>
1754
1755         Make use of GCC's attribute __alloc_size__.
1756         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1757         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1758         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1759         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1760         __alloc_size__.
1761         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1762         Suggested by Jim Meyering.
1763
1764 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1765
1766         bootstrap: anchor .gitignore entries.
1767         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1768         with...
1769         (insert_vc_ignore): ... this new function, which prepends `/' to
1770         all .gitignore entries before passing them to
1771         insert_sorted_if_absent.
1772
1773 2010-10-16  Bruno Haible  <bruno@clisp.org>
1774
1775         nextafter: Fix configure check.
1776         * modules/nextafter (configure.ac): Correct expected prototype.
1777
1778 2010-10-16  Bruno Haible  <bruno@clisp.org>
1779
1780         termios: Update documentation.
1781         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1782
1783 2010-10-16  Bruno Haible  <bruno@clisp.org>
1784
1785         tests: Make them compile with TinyCC.
1786         * tests/test-strstr.c (main): Remove parentheses around array
1787         initializer.
1788
1789 2010-10-15  Eric Blake  <eblake@redhat.com>
1790
1791         ignore-value: make header idempotent
1792         * lib/ignore-value.h: Add double-inclusion guards.
1793         Reported by Stefan Berger.
1794
1795 2010-10-15  Jim Meyering  <meyering@redhat.com>
1796
1797         GNUmakefile: handle "stable" target, not "major"
1798         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1799         lists in maint.mk and announce-gen.  Without this, "make stable"
1800         would fail to ensure that $(VERSION) is up to date.
1801
1802 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1803
1804         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1805         & co.
1806
1807 2010-10-14  Bruno Haible  <bruno@clisp.org>
1808
1809         vasnprintf: Don't set errno to 0.
1810         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1811         block that sets it to 0.
1812         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1813
1814 2010-10-14  Bruno Haible  <bruno@clisp.org>
1815
1816         socketlib: Fix.
1817         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1818         gl_PREREQ_SYS_H_WINSOCK2.
1819         Reported by Ian Beckwith <ianb@erislabs.net>.
1820
1821 2010-10-13  Jim Meyering  <meyering@redhat.com>
1822
1823         test-select-stdin.c: avoid warn_unused_result warnings
1824         * tests/test-select-stdin.c: Include "macros.h".
1825         ASSERT that read and fflush succeed.
1826
1827 2010-10-13  Jim Meyering  <meyering@redhat.com>
1828
1829         git-version-gen: do require git-VC'd files in cwd
1830         * build-aux/git-version-gen: Reject a git version string
1831         if there are no commits associated with the current directory.
1832         This avoids an unlikely false-positive (unrelated dir whose parent
1833         repository also contains a tag matching v*), as pointed out
1834         by Giuseppe Scrivano in
1835         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1836
1837 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         argv-iter: omit nonconforming declaration
1840         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1841         enum arg_iter_err declaration, which doesn't conform to C99.
1842         Solaris 10 cc warns about this.
1843
1844 2010-10-13  Eric Blake  <eblake@redhat.com>
1845
1846         termios: fix compilation on mingw
1847         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1848         (gl_TERMIOS_H): Adjust it on mingw.
1849         * modules/termios (Makefile.am): Substitute new key.
1850         * lib/termios.in.h (includes): Make include_next conditional.
1851         * doc/posix-headers/termios.texi (termios.h): Update
1852         documentation.
1853         Reported by Daniel P. Berrange.
1854
1855 2010-10-13  Jim Meyering  <meyering@redhat.com>
1856
1857         git-version-gen: don't require that .git/ be in the current dir
1858         * build-aux/git-version-gen: Adjust this script so that it works
1859         when run from any working directory beneath the top-level .git/-
1860         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1861         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1862
1863         test-select: avoid warn_unused_result warnings
1864         * tests/test-select.c: Include "macros.h".
1865         ASSERT that each call to read, write, and pipe succeeds.
1866         While not technically required, also check each "close".
1867         * modules/select-tests (Files): Add tests/macros.h.
1868
1869         test-symlinkat: remove declaration of unused local
1870         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1871
1872         test-inttostr: avoid shadowing warnings
1873         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1874         and use malloc rather than the stack for the same reason as
1875         mentioned in the comment justifying the other allocation.
1876
1877 2010-10-11  Bruno Haible  <bruno@clisp.org>
1878
1879         stdlib: Allow multiple gnulib generated replacements to coexist.
1880         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1881         Reported by Sam Steingold <sds@gnu.org>.
1882
1883 2010-10-11  Jim Meyering  <meyering@redhat.com>
1884
1885         fix a documentation typo
1886         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1887
1888 2010-10-11  Eric Blake  <eblake@redhat.com>
1889
1890         futimens: work around Solaris 11 bug
1891         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1892         * tests/test-futimens.h (test_futimens): Enhance, rather than
1893         weaken test.
1894         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1895
1896 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         Indentation.
1899         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1900         higher-level operators more to the left.
1901
1902 2010-10-11  Jim Meyering  <meyering@redhat.com>
1903
1904         test-futimens: avoid unwarranted test failure on Solaris 5.11
1905         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1906         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1907         because it tries to dereference the NULL name argument.
1908
1909 2010-10-11  Bruno Haible  <bruno@clisp.org>
1910
1911         Indentation.
1912         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1913         indentation.
1914
1915 2010-10-11  Jim Meyering  <meyering@redhat.com>
1916
1917         spawn.in.h: make indentation consistent with parentheses
1918         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1919         Make indentation consistent with parentheses.
1920
1921 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1922
1923         Fix mismatched parens in previous commit
1924         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1925         parens.
1926
1927 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1928
1929         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1930
1931         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1932         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1933         * lib/malloca.c: Include "verify.h".
1934         (verify1): Remove, replacing with a verify call.
1935         * lib/relocwrapper.c (verify1): Likewise.
1936         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1937         Likewise.
1938         * modules/malloca (Depends-on): Add 'verify'.
1939         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1940         * modules/vasnprintf (Depends-on): Add 'verify'.
1941         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1942         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1943         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1944         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1945         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1946         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1947         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1948
1949         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1950
1951         Formerly the style was sometimes 2*X - 1, because the C standard
1952         was wrongly thought to disallow ?: in integral constant expressions.
1953         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1954         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1955         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1956         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1957         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1958         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1959         verify that time_t cannot be floating.
1960
1961 2010-10-08  Eric Blake  <eblake@redhat.com>
1962
1963         time: enforce recent POSIX ruling that time_t is integral
1964         * lib/time.in.h (__time_t_must_be_integral): Detect any
1965         problematic systems, allowing the rest of gnulib to assume POSIX.
1966
1967 2010-10-08  Jim Meyering  <meyering@redhat.com>
1968
1969         fdopendir: fix a bug on systems lacking openat and /proc support
1970         OpenBSD 4.7 is one such system.  The most noticeable effect was
1971         failure of any application making nontrivial use of fts: rm, du,
1972         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1973           ./rm: traversal failed: `a': Bad file descriptor
1974         Debugging that, you see that even though FD 6 was closed just
1975         prior to the opendir call in fd_clone_opendir, its resulting
1976         dir->dd_fd was 8, rather than the expected value of 6:
1977
1978         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1979         93                close (fd);
1980         (gdb) n
1981         94                dir = fd_clone_opendir (dupfd);
1982         (gdb) n
1983         95                saved_errno = errno;
1984         (gdb) p dir->dd_fd
1985         $11 = 8
1986
1987         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1988         The problem is that on OpenBSD, fd_clone_opendir has to resort
1989         to using the old-style save/restore CWD mechanism, due to its
1990         lack of openat/proc support, and *that* would steal the FD (6)
1991         that opendir was supposed to use.
1992
1993         The fix is to squirrel away the desired FD so that save_cwd uses a
1994         different one, and then free the dest FD right before calling opendir.
1995         That guarantees opendir will use the required file descriptor.
1996
1997         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1998
1999 2010-10-08  Bruno Haible  <bruno@clisp.org>
2000
2001         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2002         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2003
2004 2010-10-08  Bruno Haible  <bruno@clisp.org>
2005
2006         nanosleep: Make replacement POSIX compliant.
2007         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2008         is out of range.
2009         Reported by Jim Meyering.
2010
2011 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2012
2013         bootstrap: add hook for altering gnulib.mk, for Bison
2014         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2015         the Bison bootstrapping process can rewrite file names and variables
2016         in this file before later parts of 'bootstrap' use the file.
2017         Bison wants to include lib/gnulib.mk from the top-level makefile,
2018         so it needs the file names in this file to be relative to the top
2019         level, not relative to lib; plus it needs variable names to be
2020         rewritten.
2021         (slurp): Use the new function.
2022
2023         bootstrap: reformat for readability
2024         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2025
2026 2010-10-08  Eric Blake  <eblake@redhat.com>
2027
2028         docs: update cygwin progress
2029         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2030         1.7.7.
2031         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2032         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2033         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2034         * doc/posix-functions/carg.texi (carg): Likewise.
2035         * doc/posix-functions/cargf.texi (cargf): Likewise.
2036         * doc/posix-functions/casin.texi (casin): Likewise.
2037         * doc/posix-functions/casinf.texi (casinf): Likewise.
2038         * doc/posix-functions/casinh.texi (casinh): Likewise.
2039         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2040         * doc/posix-functions/catan.texi (catan): Likewise.
2041         * doc/posix-functions/catanf.texi (catanf): Likewise.
2042         * doc/posix-functions/catanh.texi (catanh): Likewise.
2043         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2044         * doc/posix-functions/ccos.texi (ccos): Likewise.
2045         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2046         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2047         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2048         * doc/posix-functions/cexp.texi (cexp): Likewise.
2049         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2050         * doc/posix-functions/cimag.texi (cimag): Likewise.
2051         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2052         * doc/posix-functions/clog.texi (clog): Likewise.
2053         * doc/posix-functions/clogf.texi (clogf): Likewise.
2054         * doc/posix-functions/conj.texi (conj): Likewise.
2055         * doc/posix-functions/conjf.texi (conjf): Likewise.
2056         * doc/posix-functions/cpow.texi (cpow): Likewise.
2057         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2058         * doc/posix-functions/cproj.texi (cproj): Likewise.
2059         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2060         * doc/posix-functions/creal.texi (creal): Likewise.
2061         * doc/posix-functions/crealf.texi (crealf): Likewise.
2062         * doc/posix-functions/csin.texi (csin): Likewise.
2063         * doc/posix-functions/csinf.texi (csinf): Likewise.
2064         * doc/posix-functions/csinh.texi (csinh): Likewise.
2065         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2066         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2067         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2068         * doc/posix-functions/ctan.texi (ctan): Likewise.
2069         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2070         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2071         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2072         * doc/posix-headers/complex.texi (complex.h): Likewise.
2073
2074 2010-10-07  Jim Meyering  <meyering@redhat.com>
2075
2076         parse-datetime: avoid compilation failure on OpenBSD 4.7
2077         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2078         This works around a compilation failure on OpenBSD 4.7:
2079         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2080
2081 2010-10-07  Eric Blake  <eblake@redhat.com>
2082
2083         docs: update cygwin progress
2084         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2085         1.7.6.
2086         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2087         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2088         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2089         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2090         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2091         Likewise.
2092         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2093         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2094         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2095         Likewise.
2096         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2097         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2098         Likewise.
2099         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2100         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2101         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2102         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2103         Likewise.
2104         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2105         Likewise.
2106         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2107
2108         docs: update parse-datetime history
2109         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2110         documentation of this function's history and alternatives.
2111
2112         cygwin: use more robust version check
2113         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2114         exclude an eventual cygwin 1.9.1.
2115         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2117         (gl_FUNC_STRCASESTR): Likewise.
2118         Reported by Bruno Haible.
2119
2120 2010-10-06  Bruno Haible  <bruno@clisp.org>
2121
2122         string, sys_select: Avoid #including large headers unless necessary.
2123         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2124         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2125         OSF/1, BeOS, Haiku.
2126         Reported by Jim Meyering.
2127
2128 2010-10-05  Eric Blake  <eblake@redhat.com>
2129
2130         memmem, strstr, strcasestr: fix bug with long periodic needle
2131         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2132         periodic needle having false positive.
2133         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2134         and cygwin 1.7.7.
2135         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2137         (gl_FUNC_STRCASESTR): Likewise.
2138         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2139         * tests/test-memmem.c (main): Expose the bug.
2140         * tests/test-strcasestr.c (main): Likewise.
2141         * tests/test-strstr.c (main): Likewise.
2142         * tests/test-c-strcasestr.c (main): Likewise.
2143         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2144         * doc/posix-functions/strstr.texi (strstr): Likewise.
2145         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2146         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2147
2148 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         parse-datetime: do some more renaming
2151         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2152         parse_datetime, not get_date.  Mention the renaming.
2153         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2154         in comments.
2155         * m4/bison.m4: Likewise.
2156
2157 2010-10-05  Eric Blake  <eblake@redhat.com>
2158
2159         parse-datetime: better name than get_date
2160         * NEWS: Reword the deprecation notice.
2161         * modules/get_date: Rename to modules/parse-datetime.
2162         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2163         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2164         * lib/get_date.y: Rename to lib/parse-datetime.y.
2165         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2166         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2167         * doc/getdate.texi: Provide fallback wrapper.
2168         * lib/getdate.h: Move guts, and wrap...
2169         * lib/parse-datetime.h: ...new file.
2170         * lib/parse-datetime.y (get_date): Rename...
2171         (parse_datetime): ...to this.
2172         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2173         (gl_PARSE_DATETIME): ...to this.
2174         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2175         documentation.
2176         * modules/getdate (Files): Provide fallback docs and header.
2177         (Notice, Depends-on): Update references.
2178         * tests/test-parse-datetime.c: Likewise.
2179         * DEPENDENCIES: Likewise.
2180         * MODULES.html.sh (Date and time <time.h>): Likewise.
2181         * doc/parse-datetime.texi (Date input formats)
2182         (Authors of parse_datetime): Likewise.
2183         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2184         (Include): Likewise.
2185         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2186         * gnulib-tool: Likewise.
2187         * m4/bison.m4 (gl_BISON): Likewise.
2188         Suggested by Bruno Haible.
2189
2190 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2191
2192         more ports to Solaris tr, which needs [] around ranges
2193         * gnulib-tool: Solaris tr needs [] around ranges.
2194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2195         * tests/test-pipe-filter-gi1.c (main): Likewise.
2196         * tests/test-pipe-filter-ii1.c (main): Likewise.
2197
2198 2010-10-05  Eric Blake  <eblake@redhat.com>
2199
2200         bootstrap: fix Solaris regression
2201         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2202         around ranges.
2203         Reported by Pádraig Brady.
2204
2205         bootstrap: work with pkg-config
2206         * build-aux/bootstrap (check_versions): Also transliterate - in
2207         prerequisite name.
2208         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2209         prerequisites that were already found, to avoid confusion.
2210         Reported by Justin Clift.
2211
2212         faccessat: remove unused wrappers
2213         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2214         presence of these wrappers dragged in -lgen on Solaris.
2215         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2216
2217 2010-10-05  Jim Meyering  <meyering@redhat.com>
2218
2219         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2220         * Makefile (sc_pragma_columns): New syntax-check rule.
2221
2222 2010-10-04  Bruno Haible  <bruno@clisp.org>
2223
2224         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2225         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2226         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2227         Reported by Bruce Korb and Eric Blake.
2228
2229 2010-10-04  Bruno Haible  <bruno@clisp.org>
2230
2231         threadlib: Make option --with-libpth-prefix work.
2232         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2233         use $LIBPTH, not just -lpth.
2234
2235 2010-10-04  Bruno Haible  <bruno@clisp.org>
2236
2237         Avoid line length limitation from HP NonStop system header files.
2238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2239         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2240         * lib/ctype.in.h: Likewise.
2241         * lib/dirent.in.h: Likewise.
2242         * lib/errno.in.h: Likewise.
2243         * lib/fcntl.in.h: Likewise.
2244         * lib/float.in.h: Likewise.
2245         * lib/getopt.in.h: Likewise.
2246         * lib/iconv.in.h: Likewise.
2247         * lib/inttypes.in.h: Likewise.
2248         * lib/langinfo.in.h: Likewise.
2249         * lib/locale.in.h: Likewise.
2250         * lib/math.in.h: Likewise.
2251         * lib/netdb.in.h: Likewise.
2252         * lib/netinet_in.in.h: Likewise.
2253         * lib/poll.in.h: Likewise.
2254         * lib/pthread.in.h: Likewise.
2255         * lib/pty.in.h: Likewise.
2256         * lib/sched.in.h: Likewise.
2257         * lib/se-selinux.in.h: Likewise.
2258         * lib/search.in.h: Likewise.
2259         * lib/signal.in.h: Likewise.
2260         * lib/spawn.in.h: Likewise.
2261         * lib/stdarg.in.h: Likewise.
2262         * lib/stddef.in.h: Likewise.
2263         * lib/stdint.in.h: Likewise.
2264         * lib/stdio.in.h: Likewise.
2265         * lib/stdlib.in.h: Likewise.
2266         * lib/string.in.h: Likewise.
2267         * lib/strings.in.h: Likewise.
2268         * lib/sys_file.in.h: Likewise.
2269         * lib/sys_ioctl.in.h: Likewise.
2270         * lib/sys_select.in.h: Likewise.
2271         * lib/sys_socket.in.h: Likewise.
2272         * lib/sys_stat.in.h: Likewise.
2273         * lib/sys_time.in.h: Likewise.
2274         * lib/sys_times.in.h: Likewise.
2275         * lib/sys_utsname.in.h: Likewise.
2276         * lib/sys_wait.in.h: Likewise.
2277         * lib/sysexits.in.h: Likewise.
2278         * lib/termios.in.h: Likewise.
2279         * lib/time.in.h: Likewise.
2280         * lib/unistd.in.h: Likewise.
2281         * lib/wchar.in.h: Likewise.
2282         * lib/wctype.in.h: Likewise.
2283         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2284         * modules/ctype (Makefile.am): Likewise.
2285         * modules/dirent (Makefile.am): Likewise.
2286         * modules/errno (Makefile.am): Likewise.
2287         * modules/fcntl-h (Makefile.am): Likewise.
2288         * modules/float (Makefile.am): Likewise.
2289         * modules/getopt-posix (Makefile.am): Likewise.
2290         * modules/iconv-h (Makefile.am): Likewise.
2291         * modules/inttypes (Makefile.am): Likewise.
2292         * modules/langinfo (Makefile.am): Likewise.
2293         * modules/locale (Makefile.am): Likewise.
2294         * modules/math (Makefile.am): Likewise.
2295         * modules/netdb (Makefile.am): Likewise.
2296         * modules/netinet_in (Makefile.am): Likewise.
2297         * modules/poll-h (Makefile.am): Likewise.
2298         * modules/pthread (Makefile.am): Likewise.
2299         * modules/pty (Makefile.am): Likewise.
2300         * modules/sched (Makefile.am): Likewise.
2301         * modules/search (Makefile.am): Likewise.
2302         * modules/selinux-h (Makefile.am): Likewise.
2303         * modules/signal (Makefile.am): Likewise.
2304         * modules/spawn (Makefile.am): Likewise.
2305         * modules/stdarg (Makefile.am): Likewise.
2306         * modules/stddef (Makefile.am): Likewise.
2307         * modules/stdint (Makefile.am): Likewise.
2308         * modules/stdio (Makefile.am): Likewise.
2309         * modules/stdlib (Makefile.am): Likewise.
2310         * modules/string (Makefile.am): Likewise.
2311         * modules/strings (Makefile.am): Likewise.
2312         * modules/sys_file (Makefile.am): Likewise.
2313         * modules/sys_ioctl (Makefile.am): Likewise.
2314         * modules/sys_select (Makefile.am): Likewise.
2315         * modules/sys_socket (Makefile.am): Likewise.
2316         * modules/sys_stat (Makefile.am): Likewise.
2317         * modules/sys_time (Makefile.am): Likewise.
2318         * modules/sys_times (Makefile.am): Likewise.
2319         * modules/sys_utsname (Makefile.am): Likewise.
2320         * modules/sys_wait (Makefile.am): Likewise.
2321         * modules/sysexits (Makefile.am): Likewise.
2322         * modules/termios (Makefile.am): Likewise.
2323         * modules/time (Makefile.am): Likewise.
2324         * modules/unistd (Makefile.am): Likewise.
2325         * modules/wchar (Makefile.am): Likewise.
2326         * modules/wctype (Makefile.am): Likewise.
2327
2328 2010-10-04  Bruno Haible  <bruno@clisp.org>
2329
2330         read-file tests: Avoid a test failure on NonStop Kernel.
2331         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2332         a regular file.
2333         Reported by Joachim Schmitz <schmitz@hp.com>.
2334
2335 2010-10-03  Bruno Haible  <bruno@clisp.org>
2336
2337         gnulib-tool: Fixes for --create-testdir with --libtool.
2338         * gnulib-tool (func_get_automake_snippet): Don't augment
2339         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2340         an executable.
2341         (func_create_testdir): Handle module 'alloca' like func_import.
2342         Reported by Bruce Korb <bruce.korb@gmail.com>.
2343
2344 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         Avoid some lines longer than 80 characters.
2347         * lib/stdint.in.h: Break long comment lines.
2348         * lib/math.in.h: Likewise.
2349         (_GL_NUM_UINT_WORDS): New macro, for readability.
2350         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2351         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2352         * lib/stdlib.in.h: Likewise.
2353         * lib/spawn.in.h: Likewise.
2354         * lib/sys_socket.in.h: Update an URL.
2355         * lib/sys_stat.in.h: Break long line.
2356
2357 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2358
2359         Improve pmccabe2html.
2360         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2361         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2362         when the sources change. Remove the line in the HTML about "Used
2363         ranges" (which implied that there might be other unused ranges),
2364         rename "Resume" to "Summary" (easier to understand for more users).
2365         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2366         styles, and some unnecessary blank lines.
2367
2368 2010-10-03  Bruno Haible  <bruno@clisp.org>
2369             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2370
2371         acl: Add support for ACLs on NonStop Kernel.
2372         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2373         Check whether the function aclsort() exists.
2374         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2375         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2376         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2377         (acl_nontrivial [HAVE_ACLSORT]: New function.
2378         (file_has_acl): Implement for NonStop Kernel.
2379         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2380         (qset_acl): Implement for NonStop Kernel.
2381         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2382         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2383         (main): Implement for NonStop Kernel.
2384         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2385         Kernel. Handle this flavor.
2386         * tests/test-set-mode-acl.sh: Likewise.
2387         * tests/test-copy-acl.sh: Likewise.
2388         * tests/test-copy-file.sh: Likewise.
2389
2390 2010-10-03  Bruno Haible  <bruno@clisp.org>
2391
2392         Info about ACLs on NonStop Kernel.
2393         * doc/acl-resources.txt: Add info about NonStop Kernel.
2394         References by Joachim Schmitz <schmitz@hp.com>.
2395
2396 2010-10-02  Bruno Haible  <bruno@clisp.org>
2397
2398         Define missing EDQUOT on NonStop Kernel.
2399         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2400         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2402         missing.
2403         * doc/posix-headers/errno.texi: Mention the NSK bug.
2404         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2405         Reported by Joachim Schmitz <schmitz@hp.com>.
2406
2407 2010-10-02  Bruno Haible  <bruno@clisp.org>
2408
2409         Update doc for POSIX:2008.
2410         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2411         Update URL of POSIX specification.
2412
2413 2010-10-02  Bruno Haible  <bruno@clisp.org>
2414
2415         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2416         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2417         from gnulib, not from Automake.
2418
2419 2010-10-02  Bruno Haible  <bruno@clisp.org>
2420
2421         New module 'system-posix'.
2422         * modules/system-posix: New file.
2423         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2424         module is present.
2425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2426         GNULIB_SYSTEM_POSIX.
2427         * modules/stdlib (Depends-on): Remove sys_wait.
2428         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2429         * doc/posix-functions/system.texi: Mention the new module.
2430         * doc/posix-headers/stdlib.texi: Likewise.
2431         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2432         define test_sys_wait_macros to a no-op.
2433         Reported by Sam Steingold <sds@gnu.org>.
2434
2435 2010-09-30  Bruno Haible  <bruno@clisp.org>
2436
2437         More renaming from 'getdate' to 'get_date'.
2438         * doc/get_date.texi: Renamed from doc/getdate.texi.
2439         * modules/get_date (Files): Update.
2440         * MODULES.html.sh (Date and time <time.h>): Update.
2441         * DEPENDENCIES: Update.
2442         * gnulib-tool: Update comment.
2443         * m4/bison.m4 (gl_BISON): Likewise.
2444         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2445
2446 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2447
2448         bootstrap: support ACLOCAL_FLAGS during aclocal
2449         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2450         can add additional -I dir for third-party .m4 files.
2451
2452 2010-09-30  Eric Blake  <eblake@redhat.com>
2453
2454         bootstrap: use glibtoolize on MacOS
2455         * build-aux/bootstrap (check_versions): Convert libtool into
2456         libtoolize.
2457         (tool search): Move libtool check earlier, and look for
2458         glibtoolize for MacOS.
2459         (gnulib_tool_options): Auto-add --libtool when appropriate.
2460         Reported by Justin Clift.
2461
2462         poll: fix typo that broke test on MacOS
2463         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2464         Reported by Justin Clift.
2465
2466         getdate: rename to get_date
2467         Note: getdate.h is not renamed, to minimize client impact.
2468         * modules/getdate: Mark obsolete.  Move old contents...
2469         * modules/get_date: ...to new module name.
2470         * modules/getdate-tests: Move...
2471         * modules/get_date-tests: ...here.
2472         * m4/getdate.m4: Move...
2473         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2474         * lib/getdate.y: Move...
2475         * lib/get_date.y: ...here.
2476         * tests/test-getdate.c: Move...
2477         * tests/test-get_date.c: ...here.
2478         * doc/posix-functions/getdate.texi (getdate): Update name.
2479         * NEWS: Mention the change.
2480
2481 2010-09-29  Bruno Haible  <bruno@clisp.org>
2482
2483         Separate the module 'waitpid' from the module 'sys_wait'.
2484         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2485         present.
2486         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2487         gl_MODULE_INDICATOR_FOR_TESTS.
2488         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2489         * modules/sys_wait (Depends-on): Remove waitpid.
2490         (Makefile.am): Substitute GNULIB_WAITPID.
2491         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2492         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2493         signature only if the 'waitpid' module is present.
2494         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2495         * NEWS: Mention the change.
2496         * modules/grantpt (Depends-on): Add waitpid.
2497         * modules/wait-process (Depends-on): Likewise.
2498
2499 2010-09-29  Bruno Haible  <bruno@clisp.org>
2500
2501         More tests for module 'sys_wait'.
2502         * modules/sys_wait-c++-tests: New file.
2503         * tests/test-sys_wait-c++.cc: New file.
2504         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2505         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2506
2507 2010-09-29  Bruno Haible  <bruno@clisp.org>
2508
2509         New module 'waitpid'.
2510         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2511         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2512         Don't include <process.h>.
2513         (waitpid): Declare only, using modern idiom.
2514         * m4/waitpid.m4: New file.
2515         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2516         * modules/waitpid: New file.
2517         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2518         (Makefile.am): Update.
2519         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2520
2521 2010-09-28  Bruno Haible  <bruno@clisp.org>
2522
2523         poll: Assume ANSI C.
2524         * lib/poll.c (poll): Use an ANSI C declaration.
2525
2526 2010-09-28  Bruno Haible  <bruno@clisp.org>
2527
2528         poll-h: Create poll.h on all platforms.
2529         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2530         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2531         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2532         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2533         (gl_REPLACE_POLL_H): Don't set POLL_H.
2534         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2535         * modules/poll-h (Depends-on): Add include_next.
2536         (Makefile.am): Create poll.h unconditionally. Substitute also
2537         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2538
2539 2010-09-28  Bruno Haible  <bruno@clisp.org>
2540
2541         Tests for module 'poll-h'.
2542         * modules/poll-h-c++-tests: New file.
2543         * tests/test-poll-h-c++.cc: New file.
2544
2545         Tests for module 'poll-h'.
2546         * modules/poll-h-tests: New file.
2547         * tests/test-poll-h.c: New file.
2548
2549 2010-09-28  Bruno Haible  <bruno@clisp.org>
2550
2551         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2552         * modules/poll-h (Depends-on): Add 'extensions'.
2553
2554 2010-09-28  Bruno Haible  <bruno@clisp.org>
2555
2556         New module 'poll-h'.
2557         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2558         (poll): Use modern idiom.
2559         * modules/poll-h: New file.
2560         * modules/poll (Files): Remove lib/poll.in.h.
2561         (Depends-on): Add poll-h.
2562         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2563         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2564         * m4/poll_h.m4: New file.
2565         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2566         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2567         and invoke gl_REPLACE_POLL_H.
2568         * lib/poll.c: Use common idiom.
2569         * tests/test-poll.c: Likewise.
2570         * doc/posix-headers/poll.texi: Mention the poll-h module.
2571         Suggested by Eric Blake.
2572
2573 2010-09-26  Bruno Haible  <bruno@clisp.org>
2574
2575         sys_wait: Implement WSTOPSIG.
2576         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2577         Reported by Simon Josefsson.
2578
2579 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2580
2581         stdlib, sys_wait: Avoid compilation error on mingw.
2582         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2583
2584 2010-09-26  Bruno Haible  <bruno@clisp.org>
2585
2586         stdlib tests: Avoid code duplication.
2587         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2588         * modules/sys_wait-tests (Files): Likewise.
2589         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2590         * tests/test-stdlib.c: Include test-sys_wait.h.
2591         (main): Invoke test_sys_wait_macros.
2592         * tests/test-sys_wait.c: Include test-sys_wait.h.
2593         (main): Invoke test_sys_wait_macros.
2594
2595 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2596
2597         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2598         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2599         sure Windows sockets are working before calling getaddrinfo.
2600         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2601         * doc/gnulib.texi (Windows sockets): Fix typo.
2602
2603 2010-09-25  Bruno Haible  <bruno@clisp.org>
2604
2605         Tests for module 'regex-quote'.
2606         * modules/regex-quote-tests: New file.
2607         * tests/test-regex-quote.c: New file.
2608
2609         New module 'regex-quote'.
2610         * lib/regex-quote.h: New file.
2611         * lib/regex-quote.c: New file.
2612         * modules/regex-quote: New file.
2613         Suggested by Reuben Thomas <rrt@sc3d.org>.
2614
2615 2010-09-24  Bruno Haible  <bruno@clisp.org>
2616
2617         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2618         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2619
2620 2010-09-23  Bruno Haible  <bruno@clisp.org>
2621
2622         setenv: Relax license.
2623         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2624         Blake.
2625         Requested by Eric Blake.
2626
2627 2010-09-22  Bruno Haible  <bruno@clisp.org>
2628
2629         termios: Relax license.
2630         * modules/termios (License): Change to LGPLv2+.
2631         Requested by Eric Blake.
2632
2633 2010-09-22  Bruno Haible  <bruno@clisp.org>
2634
2635         threadlib: Allow the package to change the default to 'no'.
2636         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2637         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2638         Reported by Paul Eggert.
2639
2640 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2641             Bruno Haible  <bruno@clisp.org>
2642
2643         Fix endless loop in mbmemcasecoll.
2644         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2645         byte.
2646         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2647
2648 2010-09-22  Bruno Haible  <bruno@clisp.org>
2649
2650         Tests for module 'memcoll'.
2651         * modules/memcoll-tests: New file.
2652         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2653
2654         memcoll, xmemcoll: Clarify size vs. length.
2655         * modules/memcoll.c (memcoll0): Clarify specification.
2656         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2657         passed to collate_error.
2658
2659 2010-09-22  Bruno Haible  <bruno@clisp.org>
2660
2661         Tests for module 'memcasecmp'.
2662         * modules/memcasecmp-tests: New file.
2663         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2664
2665 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2666
2667         * lib/pthread.in.h: Add split double-inclusion guard, and include
2668         system <pthread.h> if there is one.  Use @@-style as in other
2669         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2670         pthread.h doesn't.
2671         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2672         (pthread_mutexattr_settype, pthread_mutex_trylock):
2673         New static inline functions, if there's no system <pthread.h>.
2674         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2675         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2676         Approximate with mutexes if the system lacks spinlocks, as in
2677         MacOS.
2678         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2679         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2680         @@-style.  Check for spinlocks separately.
2681         (gl_PTHREAD_DEFAULTS): New macro.
2682         * modules/pthread: Redo to use a more typical style for in.h files.
2683
2684 2010-09-21  Eric Blake  <eblake@redhat.com>
2685
2686         net_if: enhance tests
2687         * tests/test-net_if.c (main): Move signature checks earlier.
2688         Print failures to stderr.
2689         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2690         Document the bug that we do not yet fix.
2691
2692 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2693
2694         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2695         about gnulib, not GSS.
2696
2697 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2698
2699         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2700         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2701         for Emacs.
2702         * build-aux/pmccabe2html: Make Makefile.am example code more
2703         cut-and-paste friendly.
2704
2705 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2706
2707         * tests/test-net_if.c: New file.
2708         * modules/net_if-tests: New file.
2709
2710 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2711
2712         pthread: add pthread_spin_destroy
2713         * lib/pthread.in.h (pthread_spin_destroy): New function.
2714
2715 2010-09-19  Bruno Haible  <bruno@clisp.org>
2716
2717         gnulib-tool: Fix --help output.
2718         * gnulib-tool (func_usage): Fix help message.
2719         Reported by Reuben Thomas <rrt@sc3d.org>.
2720
2721 2010-09-18  Jim Meyering  <meyering@redhat.com>
2722
2723         maint.mk: avoid unexpanded \n in two diagnostics
2724         * top/maint.mk (sc_prohibit_always_true_header_tests):
2725         Don't use a literal \n in a halt=... assignment.  It would not be
2726         expanded, and the two \n bytes would appear in the diagnostic output
2727         rather than the desired newline.  Use halt=$$(printf ... instead.
2728         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2729
2730 2010-09-18  Bruno Haible  <bruno@clisp.org>
2731
2732         netinet_in: Doc tweak.
2733         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2734         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2735
2736 2010-09-18  Jim Meyering  <meyering@redhat.com>
2737
2738         init.sh: correct an outdated comment
2739         * tests/init.sh (create_exe_shims_):  s/function/alias/
2740
2741         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2742         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2743         a file named "*.exe" is removed between the glob expansion and the
2744         processing of that oddly named file.
2745
2746 2010-09-17  Eric Blake  <eblake@redhat.com>
2747
2748         mirbsd: add some more support
2749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2750         in BSD family.
2751         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2752         devices as OpenBSD.
2753         * m4/host-os.m4 (mirbsd): Add MirBSD.
2754
2755         tests: fix unportable assumption on sys/wait.h
2756         * tests/test-sys_wait.c (main): Relax test.
2757         * tests/test-stdlib.c (main): Likewise.
2758
2759         init.sh: accomodate directory with no .exes
2760         * tests/init.sh: Accomodate directory containing only scripts.
2761
2762         tests: avoid compiler warning
2763         * tests/test-stdlib.c (main): Use the variable.
2764
2765         fdutimens, fdutimensat: update signature, again
2766         * lib/utimens.h (gl_futimens): Delete, and move signature...
2767         (fdutimens): ...here.
2768         (fdutimensat): Rearrange signature.
2769         (lutimensat): Rename variable for clarity.
2770         * lib/fdutimensat.c (fdutimensat): Update signature.
2771         * lib/utimens.c (fdutimens): Likewise.
2772         (gl_futimens): Delete.
2773         (utimens, lutimens): Update callers.
2774         * lib/futimens.c (futimens): Likewise.
2775         * tests/test-fdutimensat.c: Likewise.
2776         * tests/test-utimens.c: Likewise.
2777         * tests/test-futimens.h: Update comment.
2778         * NEWS: Mention this.
2779         Suggested by Paul Eggert.
2780
2781 2010-09-17  Bruno Haible  <bruno@clisp.org>
2782
2783         Take over the maintenance of some older macros from Autoconf.
2784         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2785         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2786         GNU Autoconf.
2787         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2788         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2789
2790 2010-09-17  Eric Blake  <eblake@redhat.com>
2791
2792         fdutimensat: drop atflag validation
2793         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2794         with valid fd, to close a race scenario where futimens is
2795         unsupported and FILE was replaced by a symlink.
2796         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2797         accordingly.
2798         Suggested by Paul Eggert.
2799
2800 2010-09-16  Bruno Haible  <bruno@clisp.org>
2801
2802         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2803         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2804
2805 2010-09-16  Bruno Haible  <bruno@clisp.org>
2806
2807         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2808         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2809         login_tty exists.
2810         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2811
2812 2010-09-16  Bruno Haible  <bruno@clisp.org>
2813
2814         login_tty: Make the replacement code work on BSD systems.
2815         * lib/login_tty.c: Include <sys/ioctl.h>.
2816         (login_tty): Use ioctl TIOCSCTTY when available.
2817         * modules/login_tty (Depends-on): Add sys_ioctl.
2818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2819
2820 2010-09-16  Bruno Haible  <bruno@clisp.org>
2821
2822         login_tty: Stricter unit test.
2823         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2824         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2825         and tcgetsid() after login_tty.
2826         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2827
2828 2010-09-16  Bruno Haible  <bruno@clisp.org>
2829
2830         New module 'tcgetsid'.
2831         * lib/tcgetsid.c: New file.
2832         * m4/tcgetsid.m4: New file.
2833         * modules/tcgetsid: New file.
2834         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2835         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2836         GNULIB_TCGETSID, HAVE_TCGETSID.
2837         * lib/termios.in.h: Include <sys/types.h>.
2838         (tcgetsid): New declaration.
2839         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2840         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2841         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2842         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2843
2844 2010-09-16  Bruno Haible  <bruno@clisp.org>
2845
2846         Tests for module 'termios'.
2847         * modules/termios-c++-tests: New file.
2848         * modules/termios-tests: New file.
2849         * tests/test-termios-c++.cc: New file.
2850         * tests/test-termios.c: New file.
2851
2852         New module 'termios'.
2853         * modules/termios: New file.
2854         * lib/termios.in.h: New file.
2855         * m4/termios_h.m4: New file.
2856         * doc/posix-headers/termios.texi: Mention the new module.
2857
2858 2010-09-16  Eric Blake  <eblake@redhat.com>
2859
2860         fdutimensat: add an atflag parameter
2861         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2862         * lib/utimens.h (fdutimensat): Update prototype.
2863         * tests/test-fdutimensat.c: Adjust test to match.
2864         * NEWS: Document the change.
2865         Suggested by Paul Eggert.
2866
2867 2010-09-16  Bruno Haible  <bruno@clisp.org>
2868
2869         Fix typos in comments.
2870         * lib/striconveh.h: Fix typo in comment.
2871         * lib/login_tty.c (login_tty): Likewise.
2872
2873 2010-09-15  Bruno Haible  <bruno@clisp.org>
2874
2875         stdlib: clarify MirBSD WEXITSTATUS bug
2876         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2877         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2878
2879 2010-09-15  Eric Blake  <eblake@redhat.com>
2880
2881         stdlib: work around MirBSD WEXITSTATUS bug
2882         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2883         * modules/stdlib (Depends-on): Add sys_wait.
2884         * tests/test-sys_wait.c (main): Enhance test.
2885         * tests/test-stdlib.c (main): Likewise.
2886         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2887
2888         docs: mention MacOS issue with WEXITSTATUS(constant)
2889         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2890         issue.
2891         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2892
2893         strnlen: add tests
2894         * modules/strnlen-tests: New file.
2895         * tests/test-strnlen.c: Likewise.
2896
2897 2010-09-14  Bruno Haible  <bruno@clisp.org>
2898
2899         unistr/base: Avoid link errors when module 'libunistring' is also used.
2900         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2901         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2902         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2903         Declare also when HAVE_LIBUNISTRING is set.
2904         Reported by Pádraig Brady <P@draigbrady.com>.
2905
2906 2010-09-14  Eric Blake  <eblake@redhat.com>
2907
2908         test-rawmemchr: make more robust
2909         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2910         (Depends-on, configure.ac): Add needed prerequisites to use it.
2911         * modules/memchr-tests (Files, Depends-on, configure.ac):
2912         Likewise, to avoid implicit reliance on memchr module prereqs.
2913         * tests/test-memchr.c (main): Ensure proper masking.
2914         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2915         reads.
2916
2917         memchr: detect glibc Alpha bug
2918         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2919         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2920         Alpha.
2921         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2922         * tests/test-memchr.c (main): Enhance test.
2923         Reported by Nelson H. F. Beebe.
2924
2925 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2926
2927         fts, getcwd, glob: audit for dirfd returning -1
2928         * lib/fts.c (opendir): Remove #define; no longer used.
2929         (opendirat): New arg PDIR_FD.  All callers changed.
2930         (fts_build, _opendir2): Use new opendirat to avoid the need for
2931         dirfd, or for checking whether dirfd returns a negative value.
2932         Don't use opendir; always use openat followed by fdopendir.
2933         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2934         it.
2935         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2936         returns -1 here.
2937         * modules/fts (Depends-on): Remove dirfd.
2938         * modules/getcwd (Depends-on): Likewise.
2939
2940 2010-09-13  Eric Blake  <eblake@redhat.com>
2941
2942         float: fix broken MirBSD header
2943         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2944         * doc/posix-headers/float.texi (float.h): Document it.
2945
2946 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2947
2948         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2949         * lib/fts.c (opendirat): New arg extra_flags.
2950         (__opendir2): Use it to avoid following symlinks when opening
2951         a directory, if symlinks are not supposed to be followed.  See
2952         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2953
2954         fdopendir: preserve argument fd before returning
2955         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2956         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2957         (fdopendir): Use them, arranging for FD to be open to the same
2958         directory that it was when it started.  (It might be temporarily
2959         closed while fdopendir is running, so this not thread- or
2960         signal-safe.)  Be careful to do the right thing even when file
2961         descriptors are scarce and dup fails with errno == EMFILE.  See
2962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2963
2964 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2965
2966         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2967         * NEWS: Document change.
2968         * m4/regex.m4: Disable test for regoff_t size.
2969
2970 2010-09-13  Jim Meyering  <meyering@redhat.com>
2971
2972         fts: don't operate on an invalid file descriptor after failed dup
2973         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2974         negative file descriptor.
2975
2976 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2977
2978         savedir: add streamsavedir, deprecate fdsavedir
2979         * NEWS: Mention deprecation of fdsavedir.
2980         * lib/savedir.c (streamsavedir): New extern function, whose name
2981         ends in "savedir" to be consistent with the others.  This differs
2982         from savedirstream in that it doesn't close its argument.  The
2983         next version of GNU tar will use this instead of fdsavedir, to
2984         avoid some race conditions and conserve file descriptors.
2985         (savedirstream): Reimplement as a wrapper around streamsavedir.
2986         (fdsavedir): Add a comment deprecating this function.  As far as
2987         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2988         * lib/savedir.h (streamsavedir): New decl.
2989         (fdsavedir): Add a comment deprecating this.
2990
2991 2010-09-10  Bruno Haible  <bruno@clisp.org>
2992
2993         langinfo: Fix last commit.
2994         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2995         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2997
2998 2010-09-10  Bruno Haible  <bruno@clisp.org>
2999
3000         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3001         * lib/progreloc.c (O_EXEC): Define fallback.
3002
3003 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3004
3005         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3006         * NEWS: Document recent changes to fcntl-h.
3007         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3008         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3009         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3010         Similarly for O_SEARCH; this last was already true, but not documented.
3011         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3012         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3013         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3014         Likewise.
3015         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3016         is zero, not whether it is defined.
3017         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3018         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3019         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3020
3021 2010-09-10  Bruno Haible  <bruno@clisp.org>
3022
3023         langinfo, nl_langinfo: Fix for IRIX 5.3.
3024         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3025         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3026         HAVE_LANGINFO_YESEXPR.
3027         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3028         HAVE_LANGINFO_YESEXPR.
3029         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3030         HAVE_LANGINFO_T_FMT_AMPM is 0.
3031         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3032         HAVE_LANGINFO_YESEXPR is 0.
3033         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3034         NOEXPR.
3035         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3036         * doc/posix-functions/nl_langinfo.texi: Likewise.
3037         Reported by Eric Blake.
3038
3039 2010-09-10  Bruno Haible  <bruno@clisp.org>
3040
3041         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3042         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3043         on FreeBSD 8.0 and OpenBSD 4.6.
3044         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3045         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3046         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3047         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3048         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3049         ac_includes_default.
3050         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3051
3052 2010-09-09  Eric Blake  <eblake@redhat.com>
3053
3054         strsignal: work around NetBSD bug
3055         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3056         * lib/string.in.h (includes): Likewise.
3057         * doc/posix-functions/strsignal.texi (strsignal): Document the
3058         bug.
3059         Reported by Nelson H. F. Beebe.
3060
3061         gnulib-tool: work with NetBSD /bin/sh
3062         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3063         (func_get_description, func_get_comment, func_get_status)
3064         (func_get_notice, func_get_applicability, func_get_filelist)
3065         (func_get_dependencies, func_get_autoconf_early_snippet)
3066         (func_get_autoconf_snippet, func_get_automake_snippet)
3067         (func_get_include_directive, func_get_link_directive)
3068         (func_get_license, func_get_maintainer, func_import): Avoid
3069         shell syntax errors from parsing syntax extensions.
3070
3071 2010-09-09  Bruno Haible  <bruno@clisp.org>
3072
3073         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3074         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3075         a reliable way to determine whether the 'alias' command works.
3076
3077 2010-09-08  Jim Meyering  <meyering@redhat.com>
3078
3079         init.sh: penalize a set-x-impaired shell; don't disqualify it
3080         * tests/init.sh: Too many shells corrupt application stderr when
3081         you set -x, so we can't afford to disqualify them, since at least
3082         on Irix-6.5, that would disqualify all bourne shells.
3083         Instead, use a two-pass approach.
3084         On the first pass, try to find a shell that meets the stricter
3085         condition that set -x does not corrupt stderr.
3086         If no shell meets the stricter condition, retest each candidate
3087         shell, but without that extra condition.  Finally, when
3088         VERBOSE=yes is requested and set -x might cause trouble, simply
3089         issue a warning and refrain from enabling debug output.
3090
3091 2010-09-08  Eric Blake  <eblake@redhat.com>
3092
3093         unsetenv: fix OpenBSD bug
3094         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3095         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3096         documentation.
3097         Reported by Jim Meyering.
3098
3099         strtod: work around IRIX 6.5 bug
3100         * lib/strtod.c (strtod): Reparse number on shorter string if
3101         exponent parse was invalid.
3102         * tests/test-strtod.c (main): Add check for "0x1p 2".
3103         Reported by Tom G. Christensen.
3104
3105         getopt: optimize previous patch
3106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3107         empty variable.  Speed up awk script.
3108         Reported by Paolo Bonzini.
3109
3110 2010-09-08  Jim Meyering  <meyering@redhat.com>
3111
3112         test.sh: disqualify shells for which set -x corrupts stderr
3113         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3114         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3115         appear in stderr output.  For example, this command:
3116             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3117         prints "P=1" on those two systems:
3118
3119 2010-09-08  Bruno Haible  <bruno@clisp.org>
3120
3121         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3122         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3123         commands, because some shells ignore redirections when there is an
3124         error in the command lookup.
3125         Reported by Eric Blake.
3126
3127 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3128
3129         * lib/regex.h: Fix a mention of `regex_compile' (should be
3130         `re_compile_pattern').
3131         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3132         (re_set_registers): Correct name of parameter in comment.
3133
3134         * doc/regex.texi: Add documentation for missing syntax flags.
3135         Remove commented-out documentation of defunct syntax option
3136         RE_NO_EMPTY_ALTS.
3137         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3138         Add documentation of re_set_registers.
3139         Document trick to re-use a pattern buffer by setting fastmap manually.
3140         Update documentation of struct re_pattern_buffer per public members.
3141         Uncomment documentation of equivalence class operators and
3142         collating symbol operators, since they are now implemented,
3143         Explain leftmost-longest matching in relation to alternatives.
3144         Tidy documentation of substring matching.
3145         Remove POSIX documentation, which is done better in
3146         glibc, and refer the reader there. Keep BSD API documentation, as
3147         that is not readily available elsewhere.
3148
3149 2010-09-07  Eric Blake  <eblake@redhat.com>
3150
3151         getopt: handle POSIXLY_CORRECT set but not exported
3152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3153         export state of POSIXLY_CORRECT, due to bash set -o posix.
3154         Reported by Dustin J. Mitchell.
3155
3156 2010-09-05  Bruno Haible  <bruno@clisp.org>
3157
3158         gnulib-tool: Highlight the changed options.
3159         * gnulib-tool (func_usage): Display the --import, --add-import,
3160         --remove-import explanations in bold font.
3161
3162 2010-09-06  Karl Berry  <karl@gnu.org>
3163
3164         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3165
3166 2010-09-05  Bruno Haible  <bruno@clisp.org>
3167
3168         uniwidth/width: Update comment.
3169         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3170         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3171
3172 2010-09-05  Bruno Haible  <bruno@clisp.org>
3173
3174         isinf, isnan: Relax license.
3175         * modules/isinf (License): Change from GPL to LGPL, with consent from
3176         Ben Pfaff.
3177         * modules/isnan (License): Likewise.
3178         Requested by Ludovic Courtès.
3179
3180 2010-09-04  Bruno Haible  <bruno@clisp.org>
3181
3182         gnulib-tool: Help migration from --import to --add-import or --update.
3183         * gnulib-tool: Emit a verbose error message when --import is used
3184         without any module name.
3185
3186 2010-09-04  Bruno Haible  <bruno@clisp.org>
3187
3188         Update doc about gnulib-tool.
3189         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3190         'gnulib-tool --update' in more detail.
3191         Reported by Eric Blake.
3192
3193 2010-09-04  Bruno Haible  <bruno@clisp.org>
3194
3195         gnulib-tool: Change --import. New options --add/remove-import.
3196         * gnulib-tool: New options --add-import, --remove-import.
3197         (func_usage): Document them.
3198         (have_associative): Define always.
3199         (func_import): In import mode, don't merge the specified settings with
3200         the cached settings. Implement remove-import mode.
3201         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3202         Explain when to use them versus --import.
3203         (Simple update): Use --add-import instead of --import.
3204         * NEWS: Mention the change.
3205
3206 2010-09-04  Bruno Haible  <bruno@clisp.org>
3207
3208         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3209         separate gnulib.mk.
3210
3211 2010-09-04  Bruno Haible  <bruno@clisp.org>
3212
3213         gnulib-tool: Don't talk about CVS any more.
3214         * gnulib-tool (func_usage, func_import): Write "version control"
3215         instead of CVS.
3216
3217 2010-09-04  Jim Meyering  <meyering@redhat.com>
3218
3219         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3220         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3221         false positives (whose names may be ill-chosen) when searching
3222         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3223         would cause a false-positive.
3224
3225         avoid coreutils "make distcheck" failure
3226         Coreutils tests with an absolute build directory name that contains
3227         a space.  Not quoting this directory name caused a failure.
3228         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3229         * tests/test-vc-list-files-cvs.sh: Likewise.
3230
3231 2010-09-04  Bruno Haible  <bruno@clisp.org>
3232
3233         gnulib-tool: Avoid error when run in a package without Makefile.am.
3234         * gnulib-tool: When collecting the m4dirs in a package that does not
3235         have a Makefile.am, eliminate those directories that contain no
3236         gnulib-cache.m4. Fix expression that counts these directories.
3237
3238 2010-09-04  Bruno Haible  <bruno@clisp.org>
3239
3240         update-copyright test: Improve output when perl is missing or too old.
3241         * tests/test-update-copyright.sh: Move test of Perl version down after
3242         the test whether Perl exists. Provide an explanation relating Perl's
3243         error message to Automake's SKIP: message.
3244
3245 2010-09-04  Bruno Haible  <bruno@clisp.org>
3246
3247         Don't augment PATH in TESTS_ENVIRONMENT.
3248         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3249         set abs_aux_dir instead of augmenting PATH.
3250         * modules/vc-list-files-tests (Makefile.am): Likewise.
3251         * tests/test-update-copyright.sh: Augment PATH here.
3252         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3253         path_prepend_.
3254         * tests/test-vc-list-files-git.sh: Likewise.
3255
3256 2010-09-04  Jim Meyering  <meyering@redhat.com>
3257
3258         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3259         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3260
3261 2010-09-04  Bruno Haible  <bruno@clisp.org>
3262
3263         strdup: Fix compilation error in C++ mode.
3264         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3265         the macro.
3266
3267 2010-09-04  Bruno Haible  <bruno@clisp.org>
3268
3269         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3270         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3271         macro into a function.
3272         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3273
3274 2010-09-04  Bruno Haible  <bruno@clisp.org>
3275
3276         Set PATH_SEPARATOR the same way autoconf does.
3277         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3278         the value of PATH_SEPARATOR the same way autoconf-generated configure
3279         scripts do.
3280         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3281         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3282
3283 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3284
3285         Set PATH_SEPARATOR the same way autoconf does.
3286         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3287         the same way autoconf-generated configure scripts do.
3288         * posix-modules: Likewise.
3289
3290 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3291
3292         hash: fix safe_hasher const typo
3293         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3294         const; otherwise, there is a type error later.
3295
3296 2010-09-02  Jim Meyering  <meyering@redhat.com>
3297
3298         test-update-copyright.sh: require perl 5.8.0
3299         * tests/test-update-copyright.sh: Require 5.8.0,
3300         which Tom G. Christensen has confirmed is adequate,
3301         while 5.6.1 is not.
3302
3303 2010-09-02  Eric Blake  <eblake@redhat.com>
3304
3305         tests: init.sh improvements for re-exec'ing with zsh
3306         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3307         -vx through shell re-exec.
3308         Reported by Tom G. Christensen.
3309
3310         wctype: fix typo in previous commit
3311         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3312         Reported by Ludovic Courtès.
3313
3314 2010-09-02  Jim Meyering  <meyering@redhat.com>
3315
3316         test-update-copyright.sh: skip test if Perl is too old
3317         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3318         Reported by Tom G. Christensen.
3319
3320 2010-09-02  Bruno Haible  <bruno@clisp.org>
3321
3322         wctype: Avoid compilation error on IRIX 6.5.30.
3323         * lib/wctype.in.h (iswblank): Declare with a replacement if
3324         REPLACE_ISWBLANK is set.
3325         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3326         declared. Set REPLACE_ISWBLANK.
3327         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3328         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3329         * doc/posix-headers/wctype.texi: Likewise.
3330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3331
3332 2010-09-01  Bruno Haible  <bruno@clisp.org>
3333
3334         New module 'socketlib'.
3335         * modules/socketlib: New file.
3336         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3337         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3338         * modules/sockets (Depends-on): Add socketlib.
3339         Suggested by Sam Steingold <sds@gnu.org>.
3340
3341 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3342
3343         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3344
3345         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3346         when one needs search access to a directory but not read access.
3347         On systems where it is available, it works in some cases where
3348         O_RDONLY does not, namely on directories that are searchable but
3349         not readable, and which need only to be searchable.  If O_SEARCH
3350         is not available, fall back to the traditional method of using
3351         O_RDONLY.
3352
3353         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3354         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3355         when opening a directory that needs only to be searchable.
3356         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3357         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3358         * lib/openat-proc.c (openat_proc_name): Likewise.
3359         * lib/openat.c (openat_needs_fchdir): Likewise.
3360         * lib/save-cwd.c (save_cwd): Likewise.
3361         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3362
3363 2010-08-28  Bruno Haible  <bruno@clisp.org>
3364
3365         New module 'host-cpu-c-abi'.
3366         * modules/host-cpu-c-abi: New file.
3367         * m4/host-cpu-c-abi.m4: New file, based on part of
3368         clisp/src/m4/general.m4.
3369         Requested by Sam Steingold <sds@gnu.org>.
3370
3371 2010-08-31  Eric Blake  <eblake@redhat.com>
3372         and Jim Meyering  <meyering@redhat.com>
3373
3374         hash: factor, and guard against misbehaving hasher function
3375         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3376         of table->hasher's return value.  Also protect against a hash value
3377         so large that adding it to table->bucket results in a NULL pointer.
3378         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3379         Use it in place of open-coded check-and-abort.
3380
3381 2010-08-30  Bruno Haible  <bruno@clisp.org>
3382
3383         hash: silence spurious clang warning
3384         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3385         Reported by Eric Blake.
3386
3387 2010-08-30  Eric Blake  <eblake@redhat.com>
3388
3389         strstr, memmem, strcasestr: avoid leaked shell message
3390         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3391         FreeBSD.
3392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3394
3395         tests: silence clang warning
3396         * tests/test-malloca.c (do_allocation): Avoid dead store.
3397
3398 2010-08-29  Bruno Haible  <bruno@clisp.org>
3399
3400         gettext: Fix recent mistake.
3401         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3402
3403 2010-08-29  Bruno Haible  <bruno@clisp.org>
3404
3405         selinux-h: Offer a --without-selinux option.
3406         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3407         --without-selinux was specified, skip all tests and define
3408         HAVE_SELINUX_SELINUX_H to 0.
3409         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3410         set LIB_SELINUX to empty.
3411         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3412         gl_LIBSELINUX. If --without-selinux was specified, replace
3413         selinux/context.h.
3414         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3415
3416 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3417             Bruno Haible  <bruno@clisp.org>
3418
3419         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3420         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3421         of HAVE_REALLOC.
3422         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3423         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3424         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3425         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3426
3427 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3428             Bruno Haible  <bruno@clisp.org>
3429
3430         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3431         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3432         HAVE_CALLOC.
3433         * lib/xmalloc.c: Update accordingly.
3434         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3435         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3436         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3437
3438 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3439             Bruno Haible  <bruno@clisp.org>
3440
3441         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3442         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3443         HAVE_MALLOC.
3444         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3445         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3446         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3447
3448 2010-08-29  Bruno Haible  <bruno@clisp.org>
3449
3450         Update modules list.
3451         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3452         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3453         (String handling <string.h>): Add astrxfrm.
3454         (File system functions): Add readlinkat.
3455
3456 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3457
3458         Tests for module 'realloc-gnu'.
3459         * modules/realloc-gnu-tests: New file.
3460         * tests/test-realloc-gnu.c: New file.
3461
3462         Tests for module 'calloc-gnu'.
3463         * modules/calloc-gnu-tests: New file.
3464         * tests/test-calloc-gnu.c: New file.
3465
3466         Tests for module 'malloc-gnu'.
3467         * modules/malloc-gnu-tests: New file.
3468         * tests/test-malloc-gnu.c: New file.
3469
3470 2010-08-28  Bruno Haible  <bruno@clisp.org>
3471
3472         Rename module 'realloc' -> 'realloc-gnu'.
3473         * modules/realloc-gnu: New file, copied from modules/realloc.
3474         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3475         obsolete.
3476         * modules/mgetgroups (Depends-on): Update.
3477         * doc/posix-functions/realloc.texi: Update.
3478         * NEWS: Mention the change.
3479
3480         Rename module 'calloc' -> 'calloc-gnu'.
3481         * modules/calloc-gnu: New file, copied from modules/calloc.
3482         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3483         obsolete.
3484         * doc/posix-functions/calloc.texi: Update.
3485         * NEWS: Mention the change.
3486
3487         Rename module 'malloc' -> 'malloc-gnu'.
3488         * modules/malloc-gnu: New file, copied from modules/malloc.
3489         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3490         obsolete.
3491         * modules/argp (Depends-on): Update.
3492         * modules/regex (Depends-on): Update.
3493         * doc/posix-functions/malloc.texi: Update.
3494         * NEWS: Mention the change.
3495
3496 2010-08-28  Eric Blake  <eblake@redhat.com>
3497
3498         pread, pwrite: add missing dependency
3499         * modules/pread (Depends-on): Add extensions.
3500         * modules/pwrite (Depends-on): Likewise.
3501
3502 2010-08-28  Bruno Haible  <bruno@clisp.org>
3503
3504         unistr/u*-strchr: Fix tests dependencies.
3505         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3506         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3507         Reported by Ian Beckwith <ianb@erislabs.net>.
3508
3509 2010-08-28  Bruno Haible  <bruno@clisp.org>
3510
3511         read-file: Don't occupy too much unused memory.
3512         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3513
3514 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3515             Eric Blake  <eblake@redhat.com>
3516             Bruno Haible  <bruno@clisp.org>
3517
3518         read-file: Avoid memory reallocations with regular files.
3519         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3520         (fread_file): With regular files, use the remaining length as the
3521         initial buffer size.  Check against overflow.
3522         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3523         sys_stat.
3524
3525 2010-08-28  Bruno Haible  <bruno@clisp.org>
3526
3527         ftello: Relax license.
3528         * modules/ftello (License): Relax to LGPLv2+.
3529         Reported by Eric Blake.
3530
3531 2010-08-28  Bruno Haible  <bruno@clisp.org>
3532
3533         Avoid relocwrapper link errors due to gnulib replacement functions.
3534         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3535         function.
3536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3537
3538 2010-08-28  Bruno Haible  <bruno@clisp.org>
3539
3540         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3541         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3542         defined.
3543         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3544         Suggested by Eric Blake.
3545
3546 2010-08-28  Bruno Haible  <bruno@clisp.org>
3547
3548         sys_socket, netdb: Ensure socklen_t gets defined.
3549         * modules/sys_socket (Depends-on): Add socklen.
3550         * modules/netdb (Depends-on): Likewise.
3551         * modules/getaddrinfo (Depends-on): Remove socklen.
3552         * modules/getsockopt (Depends-on): Likewise.
3553         * modules/setsockopt (Depends-on): Likewise.
3554         * tests/test-sys_socket.c: Check that socklen_t is defined.
3555         * tests/test-netdb.c: Likewise.
3556         * m4/socklen.m4: Update comments.
3557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3558
3559 2010-08-27  Eric Blake  <eblake@redhat.com>
3560
3561         login_tty: add missing dependency
3562         * modules/login_tty (Depends-on): Add pty.
3563
3564 2010-08-26  Eric Blake  <eblake@redhat.com>
3565
3566         lib-symbol-versions: fix m4 quoting
3567         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3568         format for AC_LINK_IFELSE.
3569
3570         glob: fix compile test
3571         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3572
3573         btowc: fix missing file
3574         * modules/btowc (Files): Also ship locale-fr.m4.
3575
3576         lseek: fix link test
3577         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3578         AC_LINK_IFELSE.
3579
3580         include_next: silence autoconf 2.68 warning
3581         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3582         AC_COMPILE_IFELSE as special.
3583         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3584         autoconf < 2.68.
3585
3586         acl: fix compilation test
3587         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3588         AC_COMPILE_IFELSE.
3589
3590 2010-08-26  Bruno Haible  <bruno@clisp.org>
3591
3592         Modernize AC_TRY_RUN invocations.
3593         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3594         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3595         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3596         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3597         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3598         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3601         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3602         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3604         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3605         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3606         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3608         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3609         gl_MBRLEN_NUL_RETVAL): Likewise.
3610         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3611         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3612         Likewise.
3613         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3614         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3615         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3616         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3617         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3618         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3619         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3620         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3621         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3622         Likewise.
3623         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3624         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3625         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3626         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3628         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3629         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3630         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3631         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3633
3634 2010-08-26  Bruno Haible  <bruno@clisp.org>
3635
3636         Modernize AC_TRY_LINK invocations.
3637         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3638         AC_TRY_LINK.
3639         * m4/argp.m4 (gl_ARGP): Likewise.
3640         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3641         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3642         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3643         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3644         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3645         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3646         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3647         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3648         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3649         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3650         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3651         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3652         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3653         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3654         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3655         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3656         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3657         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3658         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3659         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3660         Likewise.
3661         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3662         Likewise.
3663         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3664         Likewise.
3665         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3666         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3667         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3668         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3669         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3670         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3671         * m4/servent.m4 (gl_SERVENT): Likewise.
3672         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3673         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3674         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3675         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3676         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3677         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3678         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3680         * modules/tsearch-tests (configure.ac): Likewise.
3681
3682 2010-08-26  Bruno Haible  <bruno@clisp.org>
3683
3684         Modernize AC_TRY_COMPILE invocations.
3685         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3686         AC_TRY_COMPILE.
3687         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3688         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3689         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3690         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3691         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3692         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3693         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3694         * m4/lock.m4 (gl_LOCK): Likewise.
3695         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3696         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3697         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3698         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3699         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3700         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3701         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3703         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3704         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3705         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3706         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3707         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3708         extraneous semicolon.
3709
3710 2010-08-26  Jim Meyering  <meyering@redhat.com>
3711
3712         stat-time: relax license LGPL
3713         * modules/stat-time (License): Change from GPL to LGPL,
3714         with consent from all contributors, for use in libguile.
3715         Requested by Ludovic Courtès.
3716
3717 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3718
3719         poll: return immediately on POLLHUP.
3720         * lib/poll.c (poll): Always set timeout before wait_timeout is
3721         computed.
3722
3723 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3724
3725         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3726         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3727         rmdir ("dir/.//"), unlinkat.
3728
3729 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3730
3731         stdbool: avoid spurious failure with modern xlc
3732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3733
3734 2010-08-24  Bruno Haible  <bruno@clisp.org>
3735
3736         getloadavg: simplify code
3737         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3738         gl_have_func. Update comments.
3739
3740 2010-08-24  Eric Blake  <eblake@redhat.com>
3741
3742         getloadavg: don't define SVR4 on cygwin
3743         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3744         only define SVR4 when -lkvm is required.
3745         Reported by Yaakov Selkowitz.
3746
3747 2010-08-24  Bruno Haible  <bruno@clisp.org>
3748
3749         priv-set: fix comment
3750         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3751
3752 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3753
3754         priv-set: fix comments
3755         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3756         to match code, as suggested by David Bartley in:
3757         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3758
3759 2010-08-23  Eric Blake  <eblake@redhat.com>
3760
3761         stdbool: avoid rejecting clang
3762         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3763         * tests/test-stdbool.c: Enable more tests if using the system
3764         <stdbool.h> instead of the gnulib replacement.
3765         (main): Move xlc bug test to a runtime test for all compilers.
3766         Reported by Anders Kaseorg.
3767
3768         argz: fix shell quoting issue
3769         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3770         Reported by Charles Wilson.
3771
3772 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3773             Erik Faye-Lund <kusmabite@gmail.com>
3774
3775         poll, select: handle ERROR_BROKEN_PIPE.
3776         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3777         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3778         * lib/select.c (win32_compute_revents): Do not mark a pipe
3779         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3780
3781 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3782
3783         fts: allow compilation with C++
3784         * lib/fts_.h: Specify extern "C" linkage with C++.
3785
3786 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3787
3788         Fix gnulib-tool sed script de-commentation for AIX sed.
3789         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3790         sed.
3791
3792 2010-08-17  Eric Blake  <eblake@redhat.com>
3793
3794         test-stddef: test for (some) offsetof bugs
3795         * tests/test-stddef.c: Enhance test to ensure correct type of
3796         offsetof.
3797         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3798         that we are not fixing at this time.
3799
3800 2010-08-15  Bruno Haible  <bruno@clisp.org>
3801
3802         stpncpy: Allow stpncpy to be defined as a macro.
3803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3804         if it's already correctly declared.
3805         * lib/string.in.h (stpncpy): Undefine before redefining.
3806         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3807
3808 2010-08-14  Bruno Haible  <bruno@clisp.org>
3809
3810         Rename module 'memxfrm' to 'amemxfrm'.
3811         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3812         (amemxfrm): Renamed from memxfrm.
3813         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3814         (amemxfrm): Renamed from memxfrm.
3815         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3816         * NEWS: Mention the change.
3817         * MODULES.html.sh (String handling <string.h>): Update.
3818         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3819         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3820         * lib/unicase/u16-casexfrm.c: Likewise.
3821         * lib/unicase/u32-casexfrm.c: Likewise.
3822         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3823         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3824         * lib/uninorm/u16-normxfrm.c: Likewise.
3825         * lib/uninorm/u32-normxfrm.c: Likewise.
3826         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3827         memxfrm.
3828         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3829         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3830         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3831         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3832         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3833         Suggested by Paul Eggert.
3834
3835 2010-08-14  Bruno Haible  <bruno@clisp.org>
3836
3837         Tests for module 'astrxfrm'.
3838         * modules/astrxfrm-tests: New file.
3839         * tests/test-astrxfrm.c: New file.
3840
3841         New module 'astrxfrm'.
3842         * lib/astrxfrm.h: New file.
3843         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3844         * modules/astrxfrm: New file.
3845
3846 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3847
3848         regex: Tweak doc.
3849         * doc/regex.texi (Overview): Don't mention regex.c.
3850         (GNU Regular Expression Compiling): Likewise.
3851         (Match-end-of-line Operator): Mention 'not_eol'.
3852
3853 2010-08-14  Brian Gough  <bjg@gnu.org>
3854             Bruno Haible  <bruno@clisp.org>
3855
3856         git-merge-changelog: add doc relating to use with bzr and hg.
3857         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3858
3859 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3860
3861         pthread: fix pthread.h creation for srcdir != builddir
3862         * modules/pthread (Makefile.am): Fix the rule to work also in a
3863         non-srcdir build.
3864
3865 2010-08-13  Karl Berry  <karl@gnu.org>
3866
3867         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3868         * doc/posix-*/*: force line break before @url of POSIX
3869         specifications.
3870         Suggested by Werner Lemberg.
3871
3872 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3873
3874         strtod: fix const diagnostic
3875         * lib/strtod.c (strtod): Don't assign const char * to char *,
3876         as this elicits a warning from GCC when warnings are enabled.
3877
3878 2010-08-10  Pádraig Brady <P@draigbrady.com>
3879         and Eric Blake  <eblake@redhat.com>
3880
3881         copy-acl: ignore ENOTSUP on HP-UX
3882         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3883         so that it is available for HP-UX.
3884         * lib/copy-acl.c (qcopy_acl): Use it.
3885         Reported by Patrick M. Callahan.
3886
3887 2010-08-10  Eric Blake  <eblake@redhat.com>
3888
3889         open, chown: relax license
3890         * modules/open (License): Change to LGPLv2+, with consent by all
3891         authors, for use in augeas.
3892         * modules/chown (License): Likewise.
3893         * modules/lchown (Likewise): Likewise.
3894         Requested by Adam Stokes.
3895
3896 2010-08-09  Karl Berry  <karl@gnu.org>
3897
3898         * build-aux/ar-lib: new file, import from Automake.
3899         * config/srclist.txt: autocheck for updates.
3900
3901 2010-08-09  Eric Blake  <eblake@redhat.com>
3902
3903         readlinkat: adjust client modules
3904         * modules/areadlinkat (Depends-on): Use readlinkat, not
3905         symlinkat.
3906         * modules/areadlinkat-with-size (Depends-on): Likewise.
3907
3908         mknod: be more vocal about danger of running tests as root
3909         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3910         root, since that is just asking for problems.
3911         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3912
3913         readlinkat: split into its own module
3914         * modules/symlinkat: Split readlinkat...
3915         * modules/readlinkat: ...into separate module.
3916         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3917         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3918         * lib/symlinkat.c (readlinkat): Move...
3919         * lib/readlinkat.c: ...into new file.
3920         * modules/symlinkat-tests: Split readlinkat test...
3921         * modules/readlinkat-tests: ...into separate module.
3922         * tests/test-symlinkat.c: Split...
3923         * tests/test-readlinkat.c: ...into new file.
3924         * NEWS: Document the split.
3925         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3926         * lib/unistd.in.h (readlinkat): Likewise.
3927         Suggested by Bruno Haible.
3928
3929 2010-08-08  Bruno Haible  <bruno@clisp.org>
3930
3931         memxfrm: Speed up.
3932         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3933         that usually only one call to strxfrm is necessary for each string
3934         part.
3935         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3936
3937 2010-08-07  Karl Berry  <karl@gnu.org>
3938
3939         * doc/posix-headers/limits.texi,
3940         * doc/posix-functions/malloc.texi,
3941         * doc/posix-functions/strsignal.texi: missing @item.
3942         * doc/ld-version-script.texi: spurious leading i.
3943         * doc/regex.texi (Interval Operators): no commas inside @var.
3944
3945 2010-08-01  Bruno Haible  <bruno@clisp.org>
3946
3947         Integrate the regex documentation.
3948         * doc/gnulib.texi: Define 'cn' index.
3949         (Regular expressions): New a chapter that includes regex.texi and
3950         regexprops-generic.texi.
3951         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3952         syntax.
3953
3954         Whitespace cleanup.
3955         * doc/regex.texi: Remove trailing spaces.
3956
3957         Add regex documentation.
3958         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3959         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3960         Written by Kathy A. Hargreaves and Karl Berry.
3961
3962 2010-08-01  Bruno Haible  <bruno@clisp.org>
3963
3964         link: Update documentation.
3965         * doc/posix-functions/link.texi: Update regarding Solaris.
3966
3967 2010-07-31  Bruno Haible  <bruno@clisp.org>
3968
3969         Update modules list.
3970         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3971         (String handling <string.h>): Add memcmp2, memxfrm.
3972         (Container data structures): Add xlist, xsublist, xoset.
3973         (Core language properties): Add alignof, unused-parameter.
3974         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3975         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3976         (Unibyte characters <ctype.h>): New section.
3977         (String handling <string.h>): New section.
3978         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3979         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3980         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3981         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3982         tan, tanh, tanl, y0, y1, yn.
3983         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3984         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3985         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3986         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3987         unlockpt, vdprintf, vdprintf-posix.
3988         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3989         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3990         xconcat-filename.
3991         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3992         getdtablesize, pipe2, pipe2-safer.
3993         (Security): New section.
3994         (Networking functions): Add accept4.
3995         (Signal handling): Add sigpipe.
3996         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3997         mbmemcasecoll.
3998         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3999         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4000         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4001         pipe-filter-ii.
4002         (Misc): Add argp-version-etc, login_tty, parse-duration.
4003
4004 2010-07-31  Bruno Haible  <bruno@clisp.org>
4005
4006         Improve doc in MODULES.html.
4007         * modules/linkat (Description): Add the word "function".
4008         * modules/mkfifo (Description): Likewise.
4009         * modules/mknod (Description): Likewise.
4010         * modules/remove (Description): Likewise.
4011         * modules/renameat (Description): Likewise.
4012         * modules/stat (Description): Likewise.
4013         * modules/symlink (Description): Likewise.
4014         * modules/unlink (Description): Likewise.
4015
4016 2010-07-31  Bruno Haible  <bruno@clisp.org>
4017
4018         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4019         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4020         option --enable/disable-c++ instead of --enable/disable-cxx.
4021         * NEWS: Mention the change.
4022
4023 2010-07-31  Bruno Haible  <bruno@clisp.org>
4024
4025         readlink, areadlink: Relax test a bit.
4026         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4027         alternative to ENOTDIR.
4028         * tests/test-areadlink.h (test_areadlink): Likewise.
4029         Reported by Rainer Tammer.
4030
4031 2010-07-31  Bruno Haible  <bruno@clisp.org>
4032
4033         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4034         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4035         character, perform the search using U_STRCHR.
4036         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4037         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4038         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4039         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4040         Suggested by Paolo Bonzini.
4041
4042 2010-07-31  Bruno Haible  <bruno@clisp.org>
4043
4044         unistr/u*-strstr: Fix dependencies.
4045         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4046         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4047         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4048
4049 2010-07-31  Bruno Haible  <bruno@clisp.org>
4050
4051         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4052         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4053         the beginning of the loop.
4054         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4055         cases in 'switch' statement.
4056
4057         unistr/u8-strchr: Fix several bugs.
4058         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4059         the string. When not found, return NULL, not a pointer near the end.
4060
4061         More tests for unistr/u8-strchr.
4062         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4063         that the function does not read past the first occurrence of the byte
4064         being searched.
4065         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4066         * tests/unistr/test-u16-strchr.c (main): New function.
4067         * tests/unistr/test-u32-strchr.c (main): New function.
4068
4069 2010-07-31  Bruno Haible  <bruno@clisp.org>
4070
4071         posix-modules: Ignore backup files of documentation files.
4072         * posix-modules: grep only through files named *.texi.
4073
4074 2010-07-31  Bruno Haible  <bruno@clisp.org>
4075
4076         symlinkat: Fix documentation.
4077         * doc/posix-functions/readlinkat.texi: Fix module name.
4078
4079 2010-07-31  Bruno Haible  <bruno@clisp.org>
4080
4081         fchownat: Replace also when chown has the trailing slash bug.
4082         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4083         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4084         introduced on 2010-04-10.
4085         Reported by Rainer Tammer.
4086
4087 2010-07-31  Bruno Haible  <bruno@clisp.org>
4088
4089         linkat: Work around AIX 7.1 bug.
4090         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4091         whether linkat handles trailing slash correctly. If not, replace linkat
4092         and define LINKAT_TRAILING_SLASH_BUG.
4093         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4094         check whether (fd1,file1) points to a directory if file1 or file2 ends
4095         in a slash. Code taken from lib/link.c.
4096         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4097         Reported by Rainer Tammer.
4098
4099 2010-07-31  Bruno Haible  <bruno@clisp.org>
4100
4101         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4102         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4103         This disables an xlc optimization that was causing wrong test results.
4104         Reported by Rainer Tammer.
4105
4106 2010-07-31  Bruno Haible  <bruno@clisp.org>
4107
4108         iconv: Work around AIX 6.1..7.1 bug.
4109         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4110         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4111         cross-compiling, guess no on all versions of AIX.
4112         Reported by Rainer Tammer.
4113
4114 2010-07-31  Bruno Haible  <bruno@clisp.org>
4115
4116         readlink: Relax test a bit.
4117         * tests/test-readlink.h (test_readlink): Allow different errno value
4118         when readlink is called with a file name that ends in / and refers to
4119         a file.
4120         Suggested by Eric Blake.
4121         Reported by Rainer Tammer.
4122
4123 2010-07-31  Bruno Haible  <bruno@clisp.org>
4124
4125         copysign: Does not require -lm on glibc systems.
4126         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4127         gl_COMMON_DOUBLE_MATHFUNC.
4128         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4129
4130 2010-07-31  Bruno Haible  <bruno@clisp.org>
4131
4132         duplocale: Work around AIX 7.1 bug.
4133         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4134         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4135         * lib/duplocale.c (rpl_duplocale): Update comment.
4136         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4137         Reported by Rainer Tammer.
4138
4139 2010-07-30  Bruno Haible  <bruno@clisp.org>
4140
4141         dirfd: Avoid link error on AIX 7.1.
4142         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4143         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4144         exist, set REPLACE_DIRFD.
4145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4146         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4147         * doc/posix-functions/dirfd.texi: Update.
4148         Reported by Rainer Tammer.
4149
4150 2010-07-30  Eric Blake  <eblake@redhat.com>
4151
4152         strtod: next round of AIX fixes
4153         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4154         exponent.
4155         * tests/test-strtod.c (main): Enhance tests.
4156         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4157         Reported by Rainer Tammer.
4158
4159         futimens: fix configure check
4160         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4161         Reported by Bruno Haible.
4162
4163 2010-07-30  Bruno Haible  <bruno@clisp.org>
4164
4165         getline: Update regarding AIX.
4166         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4167         Reported by Rainer Tammer.
4168
4169 2010-07-30  Bruno Haible  <bruno@clisp.org>
4170
4171         wcwidth: Drop replacement on AIX 7.
4172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4173         AIX 7.
4174         Reported by Rainer Tammer.
4175
4176 2010-07-30  Bruno Haible  <bruno@clisp.org>
4177
4178         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4179         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4180         a 'char *'.
4181         Reported by Rainer Tammer.
4182
4183 2010-07-30  Bruno Haible  <bruno@clisp.org>
4184
4185         unlink: Update regarding AIX.
4186         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4187         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4188         Reported by Rainer Tammer.
4189
4190 2010-07-30  Bruno Haible  <bruno@clisp.org>
4191
4192         symlink: Update regarding AIX.
4193         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4194         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4195         Reported by Rainer Tammer.
4196
4197 2010-07-30  Bruno Haible  <bruno@clisp.org>
4198
4199         strndup: Update regarding AIX.
4200         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4201         AIX 7.
4202         Reported by Rainer Tammer.
4203
4204 2010-07-30  Bruno Haible  <bruno@clisp.org>
4205
4206         stat: Update regarding AIX.
4207         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4208         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4209         Reported by Rainer Tammer.
4210
4211 2010-07-30  Bruno Haible  <bruno@clisp.org>
4212
4213         truncl: Fix autoconf test.
4214         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4215         whether truncl works.
4216         Reported by Rainer Tammer.
4217
4218 2010-07-30  Bruno Haible  <bruno@clisp.org>
4219
4220         round: Update regarding AIX.
4221         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4222         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4223         Reported by Rainer Tammer.
4224
4225 2010-07-30  Bruno Haible  <bruno@clisp.org>
4226
4227         rename: Update regarding AIX.
4228         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4229         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4230         Reported by Rainer Tammer.
4231
4232 2010-07-30  Bruno Haible  <bruno@clisp.org>
4233
4234         printf.m4: Update regarding AIX.
4235         * m4/printf.m4: Update comments regarding AIX.
4236         Reported by Rainer Tammer.
4237
4238 2010-07-30  Bruno Haible  <bruno@clisp.org>
4239
4240         iconv: Update regarding AIX.
4241         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4242         AIX 7.
4243         Reported by Rainer Tammer.
4244
4245 2010-07-30  Bruno Haible  <bruno@clisp.org>
4246
4247         getopt: Update regarding AIX.
4248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4249         no on AIX.
4250         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4251         Reported by Rainer Tammer.
4252
4253 2010-07-30  Bruno Haible  <bruno@clisp.org>
4254
4255         ldexpl; Update regarding AIX.
4256         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4257         on AIX 7.
4258         Reported by Rainer Tammer.
4259
4260 2010-07-30  Bruno Haible  <bruno@clisp.org>
4261
4262         frexpl: Update regarding AIX.
4263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4264         on AIX 7.
4265         Reported by Rainer Tammer.
4266
4267 2010-07-30  Bruno Haible  <bruno@clisp.org>
4268
4269         open, fopen: Update regarding AIX.
4270         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4271         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4272         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4273         * doc/posix-functions/fopen.texi: Likewise.
4274         Reported by Rainer Tammer.
4275
4276 2010-07-30  Bruno Haible  <bruno@clisp.org>
4277
4278         chown: Update doc regarding AIX.
4279         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4280         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4281         Reported by Rainer Tammer.
4282
4283 2010-07-30  Eric Blake  <eblake@redhat.com>
4284
4285         strtod: fix bug in replacement function on AIX
4286         * lib/strtod.c (strtod): Special case broken "0x" parse in
4287         underlying strtod.
4288         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4289         * doc/posix-functions/strtod.texi (strtod): Likewise.
4290         Reported by Rainer Tammer.
4291
4292 2010-07-30  Bruno Haible  <bruno@clisp.org>
4293
4294         mbrlen: Fix cross-compilation guess for AIX.
4295         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4296         guess. Leftover from 2008-12-22.
4297
4298 2010-07-30  Bruno Haible  <bruno@clisp.org>
4299
4300         mbrtowc: Fix cross-compilation guess for AIX.
4301         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4302         guess. Leftover from 2008-12-21.
4303
4304 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4305
4306         init.sh: work around trap limitation of some shells
4307         * tests/init.sh (setup_): Move exit trap outside of shell function.
4308
4309 2010-07-29  Eric Blake  <eblake@redhat.com>
4310
4311         strtod: aid debugging
4312         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4313         understanding why strtod is rejected.
4314
4315 2010-07-28  Bruno Haible  <bruno@clisp.org>
4316
4317         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4318         * lib/unistr/u8-chr.c: Include <string.h>.
4319         * tests/unistr/test-u8-chr.c: Likewise.
4320         * tests/unistr/test-u16-chr.c: Likewise.
4321         * tests/unistr/test-u32-chr.c: Likewise.
4322         * tests/unistr/test-u8-strchr.c: Likewise.
4323         * tests/unistr/test-u16-strchr.c: Likewise.
4324         * tests/unistr/test-u32-strchr.c: Likewise.
4325         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4326         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4327         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4328         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4329
4330 2010-07-28  Bruno Haible  <bruno@clisp.org>
4331
4332         Use spaces for indentation, not tabs.
4333         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4334
4335 2010-07-27  Bruno Haible  <bruno@clisp.org>
4336
4337         mbspcasecmp: Fix function specification.
4338         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4339         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4340         Reported by Eric Blake <eblake@redhat.com>.
4341
4342 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4343
4344         timespec: use cast and not conditional, as truncation isn't possible
4345         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4346         instead of a conditional.  Comment about the situation in more detail.
4347         This undoes most of the 2009-10-29 patch.
4348
4349 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4350
4351         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4352         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4353         * lib/unistr/u8-strchr.c: Likewise.
4354         * modules/unistr/u8-chr: Depend on memchr.
4355
4356         unistr/u*-strchr: add tests
4357         * modules/unistr/u8-strchr-tests: New file.
4358         * modules/unistr/u16-strchr-tests: New file.
4359         * modules/unistr/u32-strchr-tests: New file.
4360         * tests/unistr/test-strchr.h: New file.
4361         * tests/unistr/test-u8-strchr.c: New file.
4362         * tests/unistr/test-u16-strchr.c: New file.
4363         * tests/unistr/test-u32-strchr.c: New file.
4364
4365         unistr/u*-chr: test multibyte sequences more
4366         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4367         test vector.
4368         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4369         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4370         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4371
4372         unistr/u*-chr: test multibyte sequences
4373         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4374
4375         unistr/u*-chr: prepare for multibyte tests
4376         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4377         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4378         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4379         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4380         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4381         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4382
4383 2010-07-18  Bruno Haible  <bruno@clisp.org>
4384
4385         unistr/u8-strchr: Optimize non-ASCII argument case.
4386         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4387         because the first byte often matches anyway.
4388         Reported by Pádraig Brady <P@draigbrady.com>.
4389
4390 2010-07-15  Karl Berry  <karl@gnu.org>
4391
4392         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4393
4394 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4395
4396         getcwd: on Solaris, work better if ancestors are inaccessible
4397         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4398         buffer and size, try again with a large buffer.  This works better
4399         on Solaris, since its getcwd succeeds even if the path to the root
4400         is inaccessible, and this is helpful in common cases such as .zfs
4401         hidden directories.  Problem reported by J Chapman Flack in
4402         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4403         Use system getcwd if it's declared, not merely if it's partly
4404         working; use the partly-working test only to avoid needless effort
4405         if the system getcwd fails.
4406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4407         comment that was already obsolete and is now even more obsolete.
4408         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4409         now might call strdup.
4410
4411 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4412
4413         pthread: Add enough so that coreutils/src/sort.c compiles.
4414         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4415         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4416         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4417         Include <sys/types.h>, in case it defines pthread_t.
4418         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4419         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4420         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4421         (pthread_rwlockattr_t, pthread_spinlock_t):
4422         New typedefs, if HAVE_PTHREAD_T is not defined.
4423         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4424         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4425         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4426         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4427         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4428         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4429         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4430         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4431         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4432         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4433         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4434         New macros.
4435         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4436         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4437         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4438         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4439         (pthread_spin_unlock): New dummy functions.
4440         (pthread_create): Return EAGAIN; don't set errno.
4441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4442         require AC_C_INLINE.
4443         * modules/pthread (Depends-on): Add sched, time.
4444         (pthread.h): Use AM_V_GEN.
4445
4446 2010-07-13  Bruno Haible  <bruno@clisp.org>
4447
4448         striconveh: Don't malloc memory if the result buffer is sufficient.
4449         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4450         buffer if its size is sufficient.
4451         Reported by Ludovic Courtès <ludo@gnu.org>.
4452
4453 2010-07-13  Bruno Haible  <bruno@clisp.org>
4454
4455         strtod: Add safety check.
4456         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4457
4458 2010-07-12  Bruno Haible  <bruno@clisp.org>
4459
4460         Unify tests that set gl_cv_func_ldexpl_no_libm.
4461         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4462         gl_FUNC_LDEXPL.
4463         (gl_FUNC_LDEXPL): Invoke it.
4464         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4465
4466 2010-07-12  Bruno Haible  <bruno@clisp.org>
4467
4468         Unify tests that set gl_cv_func_ldexp_no_libm.
4469         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4470         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4471         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4472         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4473         * modules/strtod (Files): Add m4/ldexp.m4.
4474
4475 2010-07-12  Bruno Haible  <bruno@clisp.org>
4476
4477         Unify tests that set gl_cv_func_frexpl_no_libm.
4478         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4479         gl_FUNC_FREXPL_NO_LIBM.
4480         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4481         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4482
4483 2010-07-12  Bruno Haible  <bruno@clisp.org>
4484
4485         Unify tests that set gl_cv_func_frexp_no_libm.
4486         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4487         gl_FUNC_FREXP_NO_LIBM.
4488         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4489         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4490
4491 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4492
4493         memcoll: clarify sizes versus lengths, document better, and tweak perf
4494         * lib/memcoll.c (strcoll_loop, memcoll0):
4495         Improve quality of descriptive comments.  Name variables
4496         consistently as to whether they are lengths (which do not include
4497         terminating null) versus sizes (which do).
4498         * lib/xmemcoll.c (xmemcoll0): Likewise.
4499         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4500         returned when s1size == 0; this is easier to compile and saves
4501         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4502
4503 2010-07-12  Bruno Haible  <bruno@clisp.org>
4504
4505         Tests for module '_Exit'.
4506         * modules/_Exit-tests: New file.
4507         * tests/test-_Exit.sh: New file.
4508         * tests/test-_Exit.c: New file.
4509
4510         New module '_Exit'.
4511         * lib/stdlib.in.h (__attribute__): New macro.
4512         (_Exit): New declaration.
4513         * lib/_Exit.c: New file.
4514         * m4/_Exit.m4: New file.
4515         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4516         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4517         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4518         * modules/_Exit: New file.
4519         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4520         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4521
4522 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4523
4524         strtod: make it more-accurate typically, and don't require libm
4525         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4526         Include limits.h.  Don't include string.h.
4527         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4528         (locale_isspace): New function, so that no casts are needed to
4529         check whether *s is a space.
4530         (ldexp): Provide an unused dummy if not available.
4531         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4532         (strtod): Use them.  This implementation prefers to use the
4533         underlying strtod if available, falling back on our own code
4534         only to fix known bugs.  This is more likely to produce an
4535         accurate result.  Also, it avoids the use of libm functions.
4536         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4537         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4538         was absent, but it caused a test failure with coreutils.
4539         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4540         with libm.
4541         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4542         * modules/strtod-tests (Makefile.am): Likewise.
4543
4544 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4545             Bruno Haible  <bruno@clisp.org>
4546
4547         unistr/u8-strchr: Optimize ASCII argument case.
4548         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4549
4550 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4551
4552         (x)memcoll: minor tweaks
4553         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4554         is after the type that it qualifies.
4555         (memcoll0): Likewise.
4556         * lib/memcoll.h (memcoll0): Likewise.
4557         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4558         * lib/xmemcoll.h (xmemcoll0): Likewise.
4559         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4560         differs from memcoll in that the NUL byte is part of the argument.
4561         Omit the abort-checks, as performance is a real issue here.  Plus,
4562         the checks were wrong anyway (an off-by-one error).  Omit local
4563         variable 'diff', as it's a bit clearer that way.
4564         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4565         no longer needed.
4566
4567 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4568
4569         (x)memcoll: speedup when input is known to be NUL delimited
4570         * lib/memcoll.c: Include stdlib.
4571         (memcoll0) New function.
4572         (strcoll_loop) New function, refactored for use in both memcoll
4573         and memcoll0.
4574         * lib/memcoll.h: Add prototype for memcoll0.
4575         * lib/xmemcoll.c: (xmemcoll0) New function.
4576         (collate_error) New function, refactored for use in both xmemcoll
4577         and xmemcoll0.
4578         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4579         * m4/memcoll.m4: add inline invocation.
4580
4581 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4582
4583         * build-aux/bootstrap: Remove any local translations
4584         from the translation project synchronization directory,
4585         so that local only translations are not distributed.
4586
4587 2010-07-04  Bruno Haible  <bruno@clisp.org>
4588
4589         fsusage: Clarify which code applies to which platforms.
4590         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4591         platform.
4592         * lib/fsusage.c (get_fs_usage): Likewise.
4593
4594 2010-07-04  Bruno Haible  <bruno@clisp.org>
4595
4596         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4597         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4598         Reported by Martin Lambers <marlam@marlam.de>.
4599
4600 2010-07-04  Jim Meyering  <meyering@redhat.com>
4601
4602         hash: once again explicitly disallow insertion of NULL
4603         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4604         inserting a NULL pointer cannot work with these functions.
4605         Add a comment with details.
4606         This reverts part of the 2010-07-01 commit, 5bef1a35
4607         "hash: extend module to deal with non-pointer keys".
4608
4609 2010-07-01  Bruno Haible  <bruno@clisp.org>
4610
4611         stdbool: Update doc.
4612         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4613         Info from Christian Weisgerber <naddy@mips.inka.de>.
4614
4615 2010-07-01  Jim Meyering  <meyering@redhat.com>
4616
4617         hash: extend module to deal with non-pointer keys
4618         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4619         but that allows insertion of non-pointer entries.
4620         Do not disallow an ENTRY value of NULL.
4621         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4622         * lib/hash.h (hash_insert0): Declare.
4623
4624 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4625
4626         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4627         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4628         not present (i.e. with autoconf 2.59 and when using gettextize, not
4629         gnulib), require AC_GNU_SOURCE instead.
4630
4631 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4632
4633         idpriv-drop: Fix tests.
4634         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4635         not to the test-idpriv-droptemp program.
4636
4637 2010-06-29  Bruno Haible  <bruno@clisp.org>
4638
4639         string: Fix syntax error with g++ 2.96.
4640         * lib/string.in.h (__pure__): Remove definition.
4641         (_GL_ATTRIBUTE_PURE): New macro.
4642         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4643         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4644         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4645
4646 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4647
4648         unitypes: Fix bug introduced on 2010-05-18.
4649         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4650
4651 2010-06-22  Eric Blake  <eblake@redhat.com>
4652
4653         memmem: slight optimization
4654         * lib/str-two-way.h (critical_factorization): Update comments.
4655         Reduce work during factorization phase.
4656         Reported by Carlos Bueno <carlos@bueno.org>.
4657
4658 2010-06-21  Bruno Haible  <bruno@clisp.org>
4659
4660         Fix HAVE_CALLOC_POSIX misnomer.
4661         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4662         !HAVE_CALLOC_POSIX.
4663         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4664         HAVE_CALLOC_POSIX.
4665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4666         instead of HAVE_CALLOC_POSIX.
4667         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4668         HAVE_CALLOC_POSIX.
4669
4670         Use modern idiom for calloc() replacement.
4671         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4672         AC_FUNC_CALLOC.
4673         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4674         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4675         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4676         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4677         (gl_REPLACE_CALLOC): New macro.
4678
4679 2010-06-21  Bruno Haible  <bruno@clisp.org>
4680
4681         Fix HAVE_REALLOC_POSIX misnomer.
4682         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4683         !HAVE_REALLOC_POSIX.
4684         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4685         HAVE_REALLOC_POSIX.
4686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4687         instead of HAVE_REALLOC_POSIX.
4688         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4689         HAVE_REALLOC_POSIX.
4690
4691         Use modern idiom for realloc() replacement.
4692         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4693         AC_FUNC_REALLOC.
4694         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4695         Autoconf's AC_FUNC_REALLOC.
4696         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4697         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4698         (gl_REPLACE_REALLOC): New macro.
4699         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4700
4701 2010-06-21  Bruno Haible  <bruno@clisp.org>
4702
4703         Fix HAVE_MALLOC_POSIX misnomer.
4704         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4705         !HAVE_MALLOC_POSIX.
4706         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4707         HAVE_MALLOC_POSIX.
4708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4709         instead of HAVE_MALLOC_POSIX.
4710         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4711         HAVE_MALLOC_POSIX.
4712
4713         Use modern idiom for malloc() replacement.
4714         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4715         AC_FUNC_MALLOC.
4716         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4717         Autoconf's AC_FUNC_MALLOC.
4718         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4719         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4720         (gl_REPLACE_MALLOC): New macro.
4721         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4722
4723 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4724
4725         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4726         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4727         This macro takes 3 arguments, not 4.
4728
4729 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4730
4731         ipv6: fix detection under mingw
4732         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4733         in6_addr.
4734
4735 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4736
4737         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4738         that strtod() works when cross-compiling to a glibc version known
4739         to work.
4740
4741 2010-06-15  Bruno Haible  <bruno@clisp.org>
4742
4743         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4744
4745 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4746
4747         select: Correct timeout.
4748         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4749
4750 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4751
4752         git-version-gen: init shell var to avoid env var influence
4753         * build-aux/git-version-gen (v): Init shell var to empty.
4754
4755 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4756
4757         priv-set: Don't assume that priv.h exists merely because getppriv does.
4758         See Jan Andersen's bug report about AIX 5L in
4759         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4760         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4761         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4762         * lib/priv-set.h: Likewise.
4763         * tests/test-priv-set.c: Likewise.
4764
4765 2010-06-13  Bruno Haible  <bruno@clisp.org>
4766
4767         relocatable: Make it easier to test whether to install wrappers.
4768         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4769         RELOCATABLE_VIA_WRAPPER.
4770
4771 2010-06-13  Bruno Haible  <bruno@clisp.org>
4772
4773         gnulib-tool: Display specified modules and dependencies differently.
4774         * gnulib-tool (func_show_module_list): New function.
4775         (func_import, func_create_testdir): Invoke it.
4776         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4777
4778 2010-06-13  Bruno Haible  <bruno@clisp.org>
4779
4780         gnulib-tool: Align code of func_import and func_create_testdir.
4781         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4782         specified_modules.
4783
4784 2010-06-12  Jim Meyering  <meyering@redhat.com>
4785
4786         test-inttostr: avoid spurious failure on Solaris 9
4787         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4788         to accept "%ju".  Reported by Bruno Haible.
4789
4790 2010-06-11  Jim Meyering  <meyering@redhat.com>
4791
4792         test-sys_socket: mark variables as used more readably
4793         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4794         as "used" explicitly via (void) statement casts.  This is more
4795         readable than using them in an artificial return expression.
4796         Suggestion from Bruno Haible.
4797
4798 2010-06-11  Bruno Haible  <bruno@clisp.org>
4799
4800         Avoid some more warnings from "gcc -Wwrite-strings".
4801         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4802         to 'const char *'.
4803         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4804         * tests/test-c-strcasestr.c (main): Likewise.
4805         * tests/test-mbscasestr1.c (main): Likewise.
4806         * tests/test-mbscasestr2.c (main): Likewise.
4807         * tests/test-memmem.c (main): Likewise.
4808         * tests/test-strstr.c (main): Likewise.
4809         * tests/test-strcasestr.c (main): Likewise.
4810
4811 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4812
4813         init.sh: change framework_failure_ to fail with status 99, not 1
4814         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4815         automake's parallel-tests rule that this is an unexpected failure,
4816         even if the test is listed in XFAIL_TESTS.
4817
4818 2010-06-11  Jim Meyering  <meyering@redhat.com>
4819
4820         test-inttostr: avoid warnings about 4-6KB literal strings
4821         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4822         Include "macros.h", for its definition of ASSERT.
4823         (CK): s/assert/ASSERT/
4824         * modules/inttostr-tests (Files): Add macros.h.
4825
4826         init.sh: don't use $ME_ or skip_ before they are defined
4827         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4828         their first uses.  Also hoist their companions: warn_, fail_,
4829         framework_failure_, $stderr_fileno.  Prompted by a patch from
4830         Stefano Lattarini.
4831
4832         test-sys_socket: avoid set-but-not-used warnings from gcc
4833         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4834         avoid warning about set-but-not-used variables.
4835
4836         test-xvasprintf: avoid 'const' discard warnings
4837         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4838         "const" when assigning from literal strings.
4839         (test_xasprintf): Add "void" in function argument list to placate
4840         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4841
4842         tests: avoid compilation warnings in argmatch and exclude tests...
4843         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4844         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4845         Since it always exits, declare with the "noreturn" attribute.
4846         * tests/test-argmatch.c: Likewise.
4847
4848         tests: avoid 'const' discard warnings in mbsstr tests
4849         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4850         * tests/test-mbsstr2.c (main): Likewise.
4851
4852         test-verify: avoid warning from gcc's -Wmissing-declarations
4853         * tests/test-verify.c (function): Declare to be static.
4854
4855         test-inttostr.c: include <string.h> for use of strcmp
4856         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4857
4858         test-linkat: avoid failed assertion on "other" architectures
4859         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4860         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4861         sparc: https://bugs.launchpad.net/bugs/591968
4862
4863 2010-06-11  Jim Meyering  <meyering@redhat.com>
4864
4865         printf.m4: avoid autoconf's "Expanded Before Required" warning
4866         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4867         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4868         autoconf warning.
4869
4870 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4871
4872         Replacement header templates are now named with ".in", not "_".
4873         * doc/gnulib-intro.texi: Correct.
4874
4875 2010-06-10  Jim Meyering  <meyering@redhat.com>
4876
4877         inttostr-tests: depend on snprintf, not snprintf-posix
4878         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4879         snprintf-posix, to avoid this aclocal failure:
4880           missing file gnulib-tests/vasnprintf.c
4881           configure.ac:45: error: expected source file, required through \
4882           AC_LIBSOURCES, not found
4883
4884 2010-06-10  Jim Meyering  <meyering@redhat.com>
4885
4886         inttostr: add a new function, inttostr, and tests
4887         The namesake function was not available.  The existence of the
4888         template file, inttostr.c makes its addition nontrivial.
4889         * lib/anytostr.c: Rename from inttostr.c.
4890         (anytostr): Rename from inttostr.
4891         * lib/inttostr.c: New file.
4892         * modules/inttostr (Files): Add anytostr.c.
4893         (Makefile.am): Set lib_SOURCES instead of ...
4894         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4895         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4896         * lib/offtostr.c: Likewise.
4897         * lib/uinttostr.c: Likewise.
4898         * lib/umaxtostr.c: Likewise.
4899         * modules/inttostr-tests: New file.
4900         * tests/test-inttostr.c: New file.  Test these functions.
4901
4902 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4903             Bruno Haible  <bruno@clisp.org>
4904
4905         Add "Extending Gnulib" chapter to manual.
4906         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4907         chapter.
4908         (Extending Gnulib): New chapter.
4909         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4910         chapter.
4911
4912 2010-06-09  Bruno Haible  <bruno@clisp.org>
4913
4914         Avoid relocwrapper link errors due to gnulib replacement functions.
4915         * lib/areadlink.c: Use the system's malloc, realloc functions.
4916         (areadlink): Set errno to ENOMEM explicitly.
4917         * modules/areadlink (Depends-on): Remove malloc-posix.
4918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4919
4920 2010-06-09  Bruno Haible  <bruno@clisp.org>
4921
4922         Avoid relocwrapper link errors due to gnulib replacement functions.
4923         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4924         * lib/malloca.c: Likewise.
4925         * lib/relocatable.c: Likewise.
4926         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4927         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4928         * lib/setenv.c: Use the system's malloc, realloc functions.
4929         * lib/strerror.c: Use the system's sprintf function.
4930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4931
4932 2010-06-04  Bruno Haible  <bruno@clisp.org>
4933
4934         Prefer documented low-level autoconf macro names.
4935         * m4/lib-link.m4: Use m4_translit instead of translit.
4936         * m4/environ.m4: Likewise.
4937         * m4/mathfunc.m4: Likewise.
4938         * m4/onceonly.m4: Likewise.
4939         * m4/stdint.m4: Likewise.
4940         Suggested by Eric Blake.
4941
4942 2010-06-04  Martin Lambers  <marlam@marlam.de>
4943             Bruno Haible  <bruno@clisp.org>
4944
4945         havelib: Allow library names with '+' characters.
4946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4947         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4948
4949 2010-06-09  Bruno Haible  <bruno@clisp.org>
4950
4951         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4952         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4953         realloc failed.
4954
4955 2010-06-08  Peter Simons  <simons@cryp.to>
4956
4957         maint.mk: make the news-check rule more configurable
4958         * top/maint.mk (news-check-lines-spec) New variable.
4959         (news-check): Use "sed -n 1,10p" in place of "head".
4960
4961 2010-06-07  Jim Meyering  <meyering@redhat.com>
4962
4963         do-release-commit-and-tag: fix typo in --help
4964         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4965
4966         regex: avoid new dead-code warning with gcc-4.6.0
4967         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4968         if-block containing a while-loop.  It's been unused for at least
4969         5 years.
4970
4971 2010-06-05  Bruno Haible  <bruno@clisp.org>
4972
4973         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4974         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4975
4976 2010-06-04  Bruno Haible  <bruno@clisp.org>
4977
4978         Update to GNU gettext 0.18.1.
4979         * modules/gettext (configure.ac): Require gettext infrastructure from
4980         version 0.18.1.
4981
4982 2010-06-03  Bruno Haible  <bruno@clisp.org>
4983
4984         Don't use AC_LIBOBJ with file names in subdirectories.
4985         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4986         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4987         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4988         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4989         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4990         gl_LIBUNISTRING_LIBSOURCE.
4991         (Makefile.am): Augment lib_SOURCES here, conditionally.
4992         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4993
4994 2010-06-03  Bruno Haible  <bruno@clisp.org>
4995
4996         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4997         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4998         expansion does not end with a newline.
4999         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5000         unnecessary newline.
5001
5002 2010-06-03  Bruno Haible  <bruno@clisp.org>
5003
5004         Reduce dependencies.
5005         * tests/test-quotearg.h: New file, extracted from
5006         tests/test-quotearg.c.
5007         * tests/test-quotearg-simple.c: New file, extracted from
5008         tests/test-quotearg.c.
5009         * tests/test-quotearg.c: Don't include <ctype.h>.
5010         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5011         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5012         use_quote_double_quotes, use_quotearg_colon): Moved to
5013         tests/test-quotearg.h.
5014         (results_g, flag_results, custom_quotes, custom_results): Moved
5015         to tests/test-quotearg-simple.c.
5016         (main): Moved the part that does not depend on gettext to
5017         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5018         performed.
5019         * modules/quotearg-simple: New file.
5020         * modules/quotearg-simple-tests: New file.
5021         * modules/quotearg (Depends-on): Add quotearg-simple.
5022         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5023         (Files): Add tests/test-quotearg.h.
5024         Reported by Paolo Bonzini.
5025
5026 2010-06-03  Bruno Haible  <bruno@clisp.org>
5027
5028         Reduce dependencies.
5029         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5030
5031 2010-06-03  Bruno Haible  <bruno@clisp.org>
5032
5033         time: Undefine more broken macros.
5034         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5035         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5036         Reported by Eric Blake.
5037
5038 2010-06-03  Bruno Haible  <bruno@clisp.org>
5039
5040         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5041         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5042         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5043         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5044         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5045         Reported by Ludovic Courtès <ludo@gnu.org>.
5046
5047 2010-06-02  Eric Blake  <eblake@redhat.com>
5048
5049         time: work with mingw + pthreads-win32 library
5050         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5051         if timespec is defined only in pthread.h.
5052         * modules/time (Makefile.am): Substitute it.
5053         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5054         <pthread.h>, when needed.
5055         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5056         from the library.
5057
5058 2010-05-31  Bruno Haible  <bruno@clisp.org>
5059
5060         Avoid expanding two macros in the wrong order.
5061         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5062         gl_LIBUNISTRING if it is defined.
5063         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5064         autoconf >= 2.64.
5065         Reported by Ludovic Courtès <ludo@gnu.org>.
5066
5067 2010-05-27  Jim Meyering  <meyering@redhat.com>
5068
5069         maint.mk: also prohibit "#undef" of always-defined symbols
5070         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5071         Allow more than one space before the symbol name.
5072         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5073         the regexp uses alternation.
5074
5075 2010-05-26  Eric Blake  <eblake@redhat.com>
5076
5077         maint.mk: avoid echo -e
5078         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5079         Convert all uses of echo -* to printf.
5080         Reported by Matthias Bolte.
5081
5082 2010-05-25  Bruno Haible  <bruno@clisp.org>
5083
5084         Update to GNU gettext 0.18, part 2.
5085         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5086         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5087
5088 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5089
5090         Add missing include in test-pwrite.c.
5091         * tests/test-pwrite.c: Include string.h, for strcmp.
5092
5093 2010-05-24  Bruno Haible  <bruno@clisp.org>
5094
5095         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5096
5097 2010-05-24  Bruno Haible  <bruno@clisp.org>
5098
5099         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5100         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5101         iconveh_error argument.
5102         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5103         U_STRCONV_TO_LOCALE.
5104         * lib/unistr/u16-strcoll.c: Likewise.
5105         * lib/unistr/u32-strcoll.c: Likewise.
5106         * modules/unistr/u8-strcoll (Depends-on): Add
5107         uniconv/u8-strconv-to-enc, localcharset. Remove
5108         uniconv/u8-strconv-to-locale.
5109         (configure.ac): Bump version number.
5110         * modules/unistr/u16-strcoll (Depends-on): Add
5111         uniconv/u16-strconv-to-enc, localcharset. Remove
5112         uniconv/u16-strconv-to-locale.
5113         (configure.ac): Bump version number.
5114         * modules/unistr/u32-strcoll (Depends-on): Add
5115         uniconv/u32-strconv-to-enc, localcharset. Remove
5116         uniconv/u32-strconv-to-locale.
5117         (configure.ac): Bump version number.
5118
5119 2010-05-24  Bruno Haible  <bruno@clisp.org>
5120
5121         Avoid a test failure on NetBSD 5.0.
5122         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5123         an iconv() bug.
5124
5125 2010-05-24  Bruno Haible  <bruno@clisp.org>
5126
5127         Adjust #include directive style.
5128         * modules/regex (Includes): Recommend to write <regex.h>.
5129
5130 2010-05-24  Bruno Haible  <bruno@clisp.org>
5131
5132         regex: Don't require alloca.
5133         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5134         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5135         only inside if (0).
5136
5137 2010-05-23  Jim Meyering  <meyering@redhat.com>
5138
5139         test-renameat.c: include <sys/stat.h>
5140         * tests/test-renameat.c: Include <sys/stat.h>; required for
5141         definition of S_IS* macros.
5142
5143 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5144
5145         Update maintainer documentation for 'relocatable-prog' module.
5146         * doc/relocatable-maint.texi: Update.
5147         Comments by Bruno Haible.
5148
5149 2010-05-23  Bruno Haible  <bruno@clisp.org>
5150
5151         git-merge-changelog: Enable --split-merged-entry by default.
5152         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5153         (usage): Don't mention this option any more.
5154         Reported by Ralf Wildenhues.
5155
5156 2010-05-23  Jim Meyering  <meyering@redhat.com>
5157
5158         test-pwrite: do not leave behind a test file named "out"
5159         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5160         The trivial-looking use of init.sh is really necessary.
5161         It ensures that the temporary file, "out", is created in
5162         a temporary directory, and removed upon termination.
5163         * tests/test-pwrite.sh: Re-add file.
5164         * modules/pwrite-tests: Reference it.
5165
5166 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5167
5168         Fix output redirection buglet in init.sh.
5169         * tests/init.sh: Fix redirection of stderr.
5170
5171 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5172
5173         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5174
5175 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5176
5177         * modules/valgrind-tests: New file.
5178         * m4/valgrind-tests.m4: New file.
5179         * doc/valgrind-tests.texi: New file.
5180         * doc/gnulib.texi (Running self-tests under valgrind): New
5181         section.
5182
5183 2010-05-19  Bruno Haible  <bruno@clisp.org>
5184
5185         Clean up dead code in recent commit.
5186         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5187         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5188         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5189         Suggested by Paolo Bonzini.
5190
5191 2010-05-19  Bruno Haible  <bruno@clisp.org>
5192
5193         Avoid valgrind error reports from libunistring.
5194         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5195         * modules/libunistring (Files): Add it.
5196         * modules/libunistring-optional (Files): Likewise.
5197
5198 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5199             Bruno Haible  <bruno@clisp.org>
5200
5201         New module 'libunistring-optional'.
5202         * modules/libunistring-optional: New file.
5203         * m4/libunistring-base.m4: New file.
5204         * m4/libunistring-optional.m4: New file.
5205         * lib/unicase.in.h: Renamed from lib/unicase.h.
5206         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5207         * lib/unictype.in.h: Renamed from lib/unictype.h.
5208         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5209         * lib/uniname.in.h: Renamed from lib/uniname.h.
5210         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5211         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5212         * lib/unistr.in.h: Renamed from lib/unistr.h.
5213         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5214         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5215         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5216         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5217         gl_LIBUNISTRING. If the library was found, determine the installed
5218         version and set LIBUNISTRING_VERSION.
5219         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5220         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5221         handle a configuration option --with-included-libunistring.
5222         * modules/libunistring (Files): Add m4/absolute-header.m4.
5223         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5224         Add m4/libunistring-base.m4.
5225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5226         (Makefile.am): Build unicase.h from unicase.in.h.
5227         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5228         Add m4/libunistring-base.m4.
5229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5230         (Makefile.am): Build uniconv.h from uniconv.in.h.
5231         * modules/unictype/base (Files): Use unictype.in.h instead of
5232         unictype.h. Add m4/libunistring-base.m4.
5233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5234         (Makefile.am): Build unictype.h from unictype.in.h.
5235         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5236         Add m4/libunistring-base.m4.
5237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5238         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5239         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5240         Add m4/libunistring-base.m4.
5241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5242         (Makefile.am): Build uniname.h from uniname.in.h.
5243         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5244         Add m4/libunistring-base.m4.
5245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5246         (Makefile.am): Build uninorm.h from uninorm.in.h.
5247         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5248         unistdio.h. Add m4/libunistring-base.m4.
5249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5250         (Makefile.am): Build unistdio.h from unistdio.in.h.
5251         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5252         Add m4/libunistring-base.m4.
5253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5254         (Makefile.am): Build unistr.h from unistr.in.h.
5255         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5256         Add m4/libunistring-base.m4.
5257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5258         (Makefile.am): Build unitypes.h from unitypes.in.h.
5259         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5260         Add m4/libunistring-base.m4.
5261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5262         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5263         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5264         uniwidth.h. Add m4/libunistring-base.m4.
5265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5266         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5267         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5268         instead of augmenting lib_SOURCES.
5269         * modules/unicase/empty-suffix-context: Likewise.
5270         * modules/unicase/locale-language: Likewise.
5271         * modules/unicase/tolower: Likewise.
5272         * modules/unicase/totitle: Likewise.
5273         * modules/unicase/toupper: Likewise.
5274         * modules/unicase/u8-casecmp: Likewise.
5275         * modules/unicase/u8-casecoll: Likewise.
5276         * modules/unicase/u8-casefold: Likewise.
5277         * modules/unicase/u8-casexfrm: Likewise.
5278         * modules/unicase/u8-ct-casefold: Likewise.
5279         * modules/unicase/u8-ct-tolower: Likewise.
5280         * modules/unicase/u8-ct-totitle: Likewise.
5281         * modules/unicase/u8-ct-toupper: Likewise.
5282         * modules/unicase/u8-is-cased: Likewise.
5283         * modules/unicase/u8-is-casefolded: Likewise.
5284         * modules/unicase/u8-is-lowercase: Likewise.
5285         * modules/unicase/u8-is-titlecase: Likewise.
5286         * modules/unicase/u8-is-uppercase: Likewise.
5287         * modules/unicase/u8-prefix-context: Likewise.
5288         * modules/unicase/u8-suffix-context: Likewise.
5289         * modules/unicase/u8-tolower: Likewise.
5290         * modules/unicase/u8-totitle: Likewise.
5291         * modules/unicase/u8-toupper: Likewise.
5292         * modules/unicase/u16-casecmp: Likewise.
5293         * modules/unicase/u16-casecoll: Likewise.
5294         * modules/unicase/u16-casefold: Likewise.
5295         * modules/unicase/u16-casexfrm: Likewise.
5296         * modules/unicase/u16-ct-casefold: Likewise.
5297         * modules/unicase/u16-ct-tolower: Likewise.
5298         * modules/unicase/u16-ct-totitle: Likewise.
5299         * modules/unicase/u16-ct-toupper: Likewise.
5300         * modules/unicase/u16-is-cased: Likewise.
5301         * modules/unicase/u16-is-casefolded: Likewise.
5302         * modules/unicase/u16-is-lowercase: Likewise.
5303         * modules/unicase/u16-is-titlecase: Likewise.
5304         * modules/unicase/u16-is-uppercase: Likewise.
5305         * modules/unicase/u16-prefix-context: Likewise.
5306         * modules/unicase/u16-suffix-context: Likewise.
5307         * modules/unicase/u16-tolower: Likewise.
5308         * modules/unicase/u16-totitle: Likewise.
5309         * modules/unicase/u16-toupper: Likewise.
5310         * modules/unicase/u32-casecmp: Likewise.
5311         * modules/unicase/u32-casecoll: Likewise.
5312         * modules/unicase/u32-casefold: Likewise.
5313         * modules/unicase/u32-casexfrm: Likewise.
5314         * modules/unicase/u32-ct-casefold: Likewise.
5315         * modules/unicase/u32-ct-tolower: Likewise.
5316         * modules/unicase/u32-ct-totitle: Likewise.
5317         * modules/unicase/u32-ct-toupper: Likewise.
5318         * modules/unicase/u32-is-cased: Likewise.
5319         * modules/unicase/u32-is-casefolded: Likewise.
5320         * modules/unicase/u32-is-lowercase: Likewise.
5321         * modules/unicase/u32-is-titlecase: Likewise.
5322         * modules/unicase/u32-is-uppercase: Likewise.
5323         * modules/unicase/u32-prefix-context: Likewise.
5324         * modules/unicase/u32-suffix-context: Likewise.
5325         * modules/unicase/u32-tolower: Likewise.
5326         * modules/unicase/u32-totitle: Likewise.
5327         * modules/unicase/u32-toupper: Likewise.
5328         * modules/unicase/ulc-casecmp: Likewise.
5329         * modules/unicase/ulc-casecoll: Likewise.
5330         * modules/unicase/ulc-casexfrm: Likewise.
5331         * modules/uniconv/u8-conv-from-enc: Likewise.
5332         * modules/uniconv/u8-conv-to-enc: Likewise.
5333         * modules/uniconv/u8-strconv-from-enc: Likewise.
5334         * modules/uniconv/u8-strconv-from-locale: Likewise.
5335         * modules/uniconv/u8-strconv-to-enc: Likewise.
5336         * modules/uniconv/u8-strconv-to-locale: Likewise.
5337         * modules/uniconv/u16-conv-from-enc: Likewise.
5338         * modules/uniconv/u16-conv-to-enc: Likewise.
5339         * modules/uniconv/u16-strconv-from-enc: Likewise.
5340         * modules/uniconv/u16-strconv-from-locale: Likewise.
5341         * modules/uniconv/u16-strconv-to-enc: Likewise.
5342         * modules/uniconv/u16-strconv-to-locale: Likewise.
5343         * modules/uniconv/u32-conv-from-enc: Likewise.
5344         * modules/uniconv/u32-conv-to-enc: Likewise.
5345         * modules/uniconv/u32-strconv-from-enc: Likewise.
5346         * modules/uniconv/u32-strconv-from-locale: Likewise.
5347         * modules/uniconv/u32-strconv-to-enc: Likewise.
5348         * modules/uniconv/u32-strconv-to-locale: Likewise.
5349         * modules/unictype/bidicategory-byname: Likewise.
5350         * modules/unictype/bidicategory-name: Likewise.
5351         * modules/unictype/bidicategory-of: Likewise.
5352         * modules/unictype/bidicategory-test: Likewise.
5353         * modules/unictype/block-list: Likewise.
5354         * modules/unictype/block-test: Likewise.
5355         * modules/unictype/category-C: Likewise.
5356         * modules/unictype/category-Cc: Likewise.
5357         * modules/unictype/category-Cf: Likewise.
5358         * modules/unictype/category-Cn: Likewise.
5359         * modules/unictype/category-Co: Likewise.
5360         * modules/unictype/category-Cs: Likewise.
5361         * modules/unictype/category-L: Likewise.
5362         * modules/unictype/category-Ll: Likewise.
5363         * modules/unictype/category-Lm: Likewise.
5364         * modules/unictype/category-Lo: Likewise.
5365         * modules/unictype/category-Lt: Likewise.
5366         * modules/unictype/category-Lu: Likewise.
5367         * modules/unictype/category-M: Likewise.
5368         * modules/unictype/category-Mc: Likewise.
5369         * modules/unictype/category-Me: Likewise.
5370         * modules/unictype/category-Mn: Likewise.
5371         * modules/unictype/category-N: Likewise.
5372         * modules/unictype/category-Nd: Likewise.
5373         * modules/unictype/category-Nl: Likewise.
5374         * modules/unictype/category-No: Likewise.
5375         * modules/unictype/category-P: Likewise.
5376         * modules/unictype/category-Pc: Likewise.
5377         * modules/unictype/category-Pd: Likewise.
5378         * modules/unictype/category-Pe: Likewise.
5379         * modules/unictype/category-Pf: Likewise.
5380         * modules/unictype/category-Pi: Likewise.
5381         * modules/unictype/category-Po: Likewise.
5382         * modules/unictype/category-Ps: Likewise.
5383         * modules/unictype/category-S: Likewise.
5384         * modules/unictype/category-Sc: Likewise.
5385         * modules/unictype/category-Sk: Likewise.
5386         * modules/unictype/category-Sm: Likewise.
5387         * modules/unictype/category-So: Likewise.
5388         * modules/unictype/category-Z: Likewise.
5389         * modules/unictype/category-Zl: Likewise.
5390         * modules/unictype/category-Zp: Likewise.
5391         * modules/unictype/category-Zs: Likewise.
5392         * modules/unictype/category-and: Likewise.
5393         * modules/unictype/category-and-not: Likewise.
5394         * modules/unictype/category-byname: Likewise.
5395         * modules/unictype/category-name: Likewise.
5396         * modules/unictype/category-none: Likewise.
5397         * modules/unictype/category-of: Likewise.
5398         * modules/unictype/category-or: Likewise.
5399         * modules/unictype/category-test: Likewise.
5400         * modules/unictype/combining-class: Likewise.
5401         * modules/unictype/ctype-alnum: Likewise.
5402         * modules/unictype/ctype-alpha: Likewise.
5403         * modules/unictype/ctype-blank: Likewise.
5404         * modules/unictype/ctype-cntrl: Likewise.
5405         * modules/unictype/ctype-digit: Likewise.
5406         * modules/unictype/ctype-graph: Likewise.
5407         * modules/unictype/ctype-lower: Likewise.
5408         * modules/unictype/ctype-print: Likewise.
5409         * modules/unictype/ctype-punct: Likewise.
5410         * modules/unictype/ctype-space: Likewise.
5411         * modules/unictype/ctype-upper: Likewise.
5412         * modules/unictype/ctype-xdigit: Likewise.
5413         * modules/unictype/decimal-digit: Likewise.
5414         * modules/unictype/digit: Likewise.
5415         * modules/unictype/mirror: Likewise.
5416         * modules/unictype/numeric: Likewise.
5417         * modules/unictype/property-alphabetic: Likewise.
5418         * modules/unictype/property-ascii-hex-digit: Likewise.
5419         * modules/unictype/property-bidi-arabic-digit: Likewise.
5420         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5421         * modules/unictype/property-bidi-block-separator: Likewise.
5422         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5423         * modules/unictype/property-bidi-common-separator: Likewise.
5424         * modules/unictype/property-bidi-control: Likewise.
5425         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5426         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5427         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5428         * modules/unictype/property-bidi-european-digit: Likewise.
5429         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5430         * modules/unictype/property-bidi-left-to-right: Likewise.
5431         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5432         * modules/unictype/property-bidi-other-neutral: Likewise.
5433         * modules/unictype/property-bidi-pdf: Likewise.
5434         * modules/unictype/property-bidi-segment-separator: Likewise.
5435         * modules/unictype/property-bidi-whitespace: Likewise.
5436         * modules/unictype/property-byname: Likewise.
5437         * modules/unictype/property-combining: Likewise.
5438         * modules/unictype/property-composite: Likewise.
5439         * modules/unictype/property-currency-symbol: Likewise.
5440         * modules/unictype/property-dash: Likewise.
5441         * modules/unictype/property-decimal-digit: Likewise.
5442         * modules/unictype/property-default-ignorable-code-point: Likewise.
5443         * modules/unictype/property-deprecated: Likewise.
5444         * modules/unictype/property-diacritic: Likewise.
5445         * modules/unictype/property-extender: Likewise.
5446         * modules/unictype/property-format-control: Likewise.
5447         * modules/unictype/property-grapheme-base: Likewise.
5448         * modules/unictype/property-grapheme-extend: Likewise.
5449         * modules/unictype/property-grapheme-link: Likewise.
5450         * modules/unictype/property-hex-digit: Likewise.
5451         * modules/unictype/property-hyphen: Likewise.
5452         * modules/unictype/property-id-continue: Likewise.
5453         * modules/unictype/property-id-start: Likewise.
5454         * modules/unictype/property-ideographic: Likewise.
5455         * modules/unictype/property-ids-binary-operator: Likewise.
5456         * modules/unictype/property-ids-trinary-operator: Likewise.
5457         * modules/unictype/property-ignorable-control: Likewise.
5458         * modules/unictype/property-iso-control: Likewise.
5459         * modules/unictype/property-join-control: Likewise.
5460         * modules/unictype/property-left-of-pair: Likewise.
5461         * modules/unictype/property-line-separator: Likewise.
5462         * modules/unictype/property-logical-order-exception: Likewise.
5463         * modules/unictype/property-lowercase: Likewise.
5464         * modules/unictype/property-math: Likewise.
5465         * modules/unictype/property-non-break: Likewise.
5466         * modules/unictype/property-not-a-character: Likewise.
5467         * modules/unictype/property-numeric: Likewise.
5468         * modules/unictype/property-other-alphabetic: Likewise.
5469         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5470         * modules/unictype/property-other-grapheme-extend: Likewise.
5471         * modules/unictype/property-other-id-continue: Likewise.
5472         * modules/unictype/property-other-id-start: Likewise.
5473         * modules/unictype/property-other-lowercase: Likewise.
5474         * modules/unictype/property-other-math: Likewise.
5475         * modules/unictype/property-other-uppercase: Likewise.
5476         * modules/unictype/property-paired-punctuation: Likewise.
5477         * modules/unictype/property-paragraph-separator: Likewise.
5478         * modules/unictype/property-pattern-syntax: Likewise.
5479         * modules/unictype/property-pattern-white-space: Likewise.
5480         * modules/unictype/property-private-use: Likewise.
5481         * modules/unictype/property-punctuation: Likewise.
5482         * modules/unictype/property-quotation-mark: Likewise.
5483         * modules/unictype/property-radical: Likewise.
5484         * modules/unictype/property-sentence-terminal: Likewise.
5485         * modules/unictype/property-soft-dotted: Likewise.
5486         * modules/unictype/property-space: Likewise.
5487         * modules/unictype/property-terminal-punctuation: Likewise.
5488         * modules/unictype/property-test: Likewise.
5489         * modules/unictype/property-titlecase: Likewise.
5490         * modules/unictype/property-unassigned-code-value: Likewise.
5491         * modules/unictype/property-unified-ideograph: Likewise.
5492         * modules/unictype/property-uppercase: Likewise.
5493         * modules/unictype/property-variation-selector: Likewise.
5494         * modules/unictype/property-white-space: Likewise.
5495         * modules/unictype/property-xid-continue: Likewise.
5496         * modules/unictype/property-xid-start: Likewise.
5497         * modules/unictype/property-zero-width: Likewise.
5498         * modules/unictype/scripts: Likewise.
5499         * modules/unictype/syntax-c-ident: Likewise.
5500         * modules/unictype/syntax-c-whitespace: Likewise.
5501         * modules/unictype/syntax-java-ident: Likewise.
5502         * modules/unictype/syntax-java-whitespace: Likewise.
5503         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5504         * modules/unilbrk/u8-width-linebreaks: Likewise.
5505         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5506         * modules/unilbrk/u16-width-linebreaks: Likewise.
5507         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5508         * modules/unilbrk/u32-width-linebreaks: Likewise.
5509         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5510         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5511         * modules/uniname/uniname: Likewise.
5512         * modules/uninorm/canonical-decomposition: Likewise.
5513         * modules/uninorm/composition: Likewise.
5514         * modules/uninorm/decomposing-form: Likewise.
5515         * modules/uninorm/decomposition: Likewise.
5516         * modules/uninorm/filter: Likewise.
5517         * modules/uninorm/nfc: Likewise.
5518         * modules/uninorm/nfd: Likewise.
5519         * modules/uninorm/nfkc: Likewise.
5520         * modules/uninorm/nfkd: Likewise.
5521         * modules/uninorm/u8-normalize: Likewise.
5522         * modules/uninorm/u8-normcmp: Likewise.
5523         * modules/uninorm/u8-normcoll: Likewise.
5524         * modules/uninorm/u8-normxfrm: Likewise.
5525         * modules/uninorm/u16-normalize: Likewise.
5526         * modules/uninorm/u16-normcmp: Likewise.
5527         * modules/uninorm/u16-normcoll: Likewise.
5528         * modules/uninorm/u16-normxfrm: Likewise.
5529         * modules/uninorm/u32-normalize: Likewise.
5530         * modules/uninorm/u32-normcmp: Likewise.
5531         * modules/uninorm/u32-normcoll: Likewise.
5532         * modules/uninorm/u32-normxfrm: Likewise.
5533         * modules/unistdio/u8-asnprintf: Likewise.
5534         * modules/unistdio/u8-asprintf: Likewise.
5535         * modules/unistdio/u8-snprintf: Likewise.
5536         * modules/unistdio/u8-sprintf: Likewise.
5537         * modules/unistdio/u8-u8-asnprintf: Likewise.
5538         * modules/unistdio/u8-u8-asprintf: Likewise.
5539         * modules/unistdio/u8-u8-snprintf: Likewise.
5540         * modules/unistdio/u8-u8-sprintf: Likewise.
5541         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5542         * modules/unistdio/u8-u8-vasprintf: Likewise.
5543         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5544         * modules/unistdio/u8-u8-vsprintf: Likewise.
5545         * modules/unistdio/u8-vasnprintf: Likewise.
5546         * modules/unistdio/u8-vasprintf: Likewise.
5547         * modules/unistdio/u8-vsnprintf: Likewise.
5548         * modules/unistdio/u8-vsprintf: Likewise.
5549         * modules/unistdio/u16-asnprintf: Likewise.
5550         * modules/unistdio/u16-asprintf: Likewise.
5551         * modules/unistdio/u16-snprintf: Likewise.
5552         * modules/unistdio/u16-sprintf: Likewise.
5553         * modules/unistdio/u16-u16-asnprintf: Likewise.
5554         * modules/unistdio/u16-u16-asprintf: Likewise.
5555         * modules/unistdio/u16-u16-snprintf: Likewise.
5556         * modules/unistdio/u16-u16-sprintf: Likewise.
5557         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5558         * modules/unistdio/u16-u16-vasprintf: Likewise.
5559         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5560         * modules/unistdio/u16-u16-vsprintf: Likewise.
5561         * modules/unistdio/u16-vasnprintf: Likewise.
5562         * modules/unistdio/u16-vasprintf: Likewise.
5563         * modules/unistdio/u16-vsnprintf: Likewise.
5564         * modules/unistdio/u16-vsprintf: Likewise.
5565         * modules/unistdio/u32-asnprintf: Likewise.
5566         * modules/unistdio/u32-asprintf: Likewise.
5567         * modules/unistdio/u32-snprintf: Likewise.
5568         * modules/unistdio/u32-sprintf: Likewise.
5569         * modules/unistdio/u32-u32-asnprintf: Likewise.
5570         * modules/unistdio/u32-u32-asprintf: Likewise.
5571         * modules/unistdio/u32-u32-snprintf: Likewise.
5572         * modules/unistdio/u32-u32-sprintf: Likewise.
5573         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5574         * modules/unistdio/u32-u32-vasprintf: Likewise.
5575         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5576         * modules/unistdio/u32-u32-vsprintf: Likewise.
5577         * modules/unistdio/u32-vasnprintf: Likewise.
5578         * modules/unistdio/u32-vasprintf: Likewise.
5579         * modules/unistdio/u32-vsnprintf: Likewise.
5580         * modules/unistdio/u32-vsprintf: Likewise.
5581         * modules/unistdio/ulc-asnprintf: Likewise.
5582         * modules/unistdio/ulc-asprintf: Likewise.
5583         * modules/unistdio/ulc-fprintf: Likewise.
5584         * modules/unistdio/ulc-snprintf: Likewise.
5585         * modules/unistdio/ulc-sprintf: Likewise.
5586         * modules/unistdio/ulc-vasnprintf: Likewise.
5587         * modules/unistdio/ulc-vasprintf: Likewise.
5588         * modules/unistdio/ulc-vfprintf: Likewise.
5589         * modules/unistdio/ulc-vsnprintf: Likewise.
5590         * modules/unistdio/ulc-vsprintf: Likewise.
5591         * modules/unistr/u8-check: Likewise.
5592         * modules/unistr/u8-chr: Likewise.
5593         * modules/unistr/u8-cmp: Likewise.
5594         * modules/unistr/u8-cmp2: Likewise.
5595         * modules/unistr/u8-cpy: Likewise.
5596         * modules/unistr/u8-cpy-alloc: Likewise.
5597         * modules/unistr/u8-endswith: Likewise.
5598         * modules/unistr/u8-mblen: Likewise.
5599         * modules/unistr/u8-mbsnlen: Likewise.
5600         * modules/unistr/u8-mbtouc: Likewise.
5601         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5602         * modules/unistr/u8-mbtoucr: Likewise.
5603         * modules/unistr/u8-move: Likewise.
5604         * modules/unistr/u8-next: Likewise.
5605         * modules/unistr/u8-prev: Likewise.
5606         * modules/unistr/u8-set: Likewise.
5607         * modules/unistr/u8-startswith: Likewise.
5608         * modules/unistr/u8-stpcpy: Likewise.
5609         * modules/unistr/u8-stpncpy: Likewise.
5610         * modules/unistr/u8-strcat: Likewise.
5611         * modules/unistr/u8-strchr: Likewise.
5612         * modules/unistr/u8-strcmp: Likewise.
5613         * modules/unistr/u8-strcoll: Likewise.
5614         * modules/unistr/u8-strcpy: Likewise.
5615         * modules/unistr/u8-strcspn: Likewise.
5616         * modules/unistr/u8-strdup: Likewise.
5617         * modules/unistr/u8-strlen: Likewise.
5618         * modules/unistr/u8-strmblen: Likewise.
5619         * modules/unistr/u8-strmbtouc: Likewise.
5620         * modules/unistr/u8-strncat: Likewise.
5621         * modules/unistr/u8-strncmp: Likewise.
5622         * modules/unistr/u8-strncpy: Likewise.
5623         * modules/unistr/u8-strnlen: Likewise.
5624         * modules/unistr/u8-strpbrk: Likewise.
5625         * modules/unistr/u8-strrchr: Likewise.
5626         * modules/unistr/u8-strspn: Likewise.
5627         * modules/unistr/u8-strstr: Likewise.
5628         * modules/unistr/u8-strtok: Likewise.
5629         * modules/unistr/u8-to-u16: Likewise.
5630         * modules/unistr/u8-to-u32: Likewise.
5631         * modules/unistr/u8-uctomb: Likewise.
5632         * modules/unistr/u16-check: Likewise.
5633         * modules/unistr/u16-chr: Likewise.
5634         * modules/unistr/u16-cmp: Likewise.
5635         * modules/unistr/u16-cmp2: Likewise.
5636         * modules/unistr/u16-cpy: Likewise.
5637         * modules/unistr/u16-cpy-alloc: Likewise.
5638         * modules/unistr/u16-endswith: Likewise.
5639         * modules/unistr/u16-mblen: Likewise.
5640         * modules/unistr/u16-mbsnlen: Likewise.
5641         * modules/unistr/u16-mbtouc: Likewise.
5642         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5643         * modules/unistr/u16-mbtoucr: Likewise.
5644         * modules/unistr/u16-move: Likewise.
5645         * modules/unistr/u16-next: Likewise.
5646         * modules/unistr/u16-prev: Likewise.
5647         * modules/unistr/u16-set: Likewise.
5648         * modules/unistr/u16-startswith: Likewise.
5649         * modules/unistr/u16-stpcpy: Likewise.
5650         * modules/unistr/u16-stpncpy: Likewise.
5651         * modules/unistr/u16-strcat: Likewise.
5652         * modules/unistr/u16-strchr: Likewise.
5653         * modules/unistr/u16-strcmp: Likewise.
5654         * modules/unistr/u16-strcoll: Likewise.
5655         * modules/unistr/u16-strcpy: Likewise.
5656         * modules/unistr/u16-strcspn: Likewise.
5657         * modules/unistr/u16-strdup: Likewise.
5658         * modules/unistr/u16-strlen: Likewise.
5659         * modules/unistr/u16-strmblen: Likewise.
5660         * modules/unistr/u16-strmbtouc: Likewise.
5661         * modules/unistr/u16-strncat: Likewise.
5662         * modules/unistr/u16-strncmp: Likewise.
5663         * modules/unistr/u16-strncpy: Likewise.
5664         * modules/unistr/u16-strnlen: Likewise.
5665         * modules/unistr/u16-strpbrk: Likewise.
5666         * modules/unistr/u16-strrchr: Likewise.
5667         * modules/unistr/u16-strspn: Likewise.
5668         * modules/unistr/u16-strstr: Likewise.
5669         * modules/unistr/u16-strtok: Likewise.
5670         * modules/unistr/u16-to-u32: Likewise.
5671         * modules/unistr/u16-to-u8: Likewise.
5672         * modules/unistr/u16-uctomb: Likewise.
5673         * modules/unistr/u32-check: Likewise.
5674         * modules/unistr/u32-chr: Likewise.
5675         * modules/unistr/u32-cmp: Likewise.
5676         * modules/unistr/u32-cmp2: Likewise.
5677         * modules/unistr/u32-cpy: Likewise.
5678         * modules/unistr/u32-cpy-alloc: Likewise.
5679         * modules/unistr/u32-endswith: Likewise.
5680         * modules/unistr/u32-mblen: Likewise.
5681         * modules/unistr/u32-mbsnlen: Likewise.
5682         * modules/unistr/u32-mbtouc: Likewise.
5683         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5684         * modules/unistr/u32-mbtoucr: Likewise.
5685         * modules/unistr/u32-move: Likewise.
5686         * modules/unistr/u32-next: Likewise.
5687         * modules/unistr/u32-prev: Likewise.
5688         * modules/unistr/u32-set: Likewise.
5689         * modules/unistr/u32-startswith: Likewise.
5690         * modules/unistr/u32-stpcpy: Likewise.
5691         * modules/unistr/u32-stpncpy: Likewise.
5692         * modules/unistr/u32-strcat: Likewise.
5693         * modules/unistr/u32-strchr: Likewise.
5694         * modules/unistr/u32-strcmp: Likewise.
5695         * modules/unistr/u32-strcoll: Likewise.
5696         * modules/unistr/u32-strcpy: Likewise.
5697         * modules/unistr/u32-strcspn: Likewise.
5698         * modules/unistr/u32-strdup: Likewise.
5699         * modules/unistr/u32-strlen: Likewise.
5700         * modules/unistr/u32-strmblen: Likewise.
5701         * modules/unistr/u32-strmbtouc: Likewise.
5702         * modules/unistr/u32-strncat: Likewise.
5703         * modules/unistr/u32-strncmp: Likewise.
5704         * modules/unistr/u32-strncpy: Likewise.
5705         * modules/unistr/u32-strnlen: Likewise.
5706         * modules/unistr/u32-strpbrk: Likewise.
5707         * modules/unistr/u32-strrchr: Likewise.
5708         * modules/unistr/u32-strspn: Likewise.
5709         * modules/unistr/u32-strstr: Likewise.
5710         * modules/unistr/u32-strtok: Likewise.
5711         * modules/unistr/u32-to-u16: Likewise.
5712         * modules/unistr/u32-to-u8: Likewise.
5713         * modules/unistr/u32-uctomb: Likewise.
5714         * modules/uniwbrk/u8-wordbreaks: Likewise.
5715         * modules/uniwbrk/u16-wordbreaks: Likewise.
5716         * modules/uniwbrk/u32-wordbreaks: Likewise.
5717         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5718         * modules/uniwbrk/wordbreak-property: Likewise.
5719         * modules/uniwidth/u8-strwidth: Likewise.
5720         * modules/uniwidth/u8-width: Likewise.
5721         * modules/uniwidth/u16-strwidth: Likewise.
5722         * modules/uniwidth/u16-width: Likewise.
5723         * modules/uniwidth/u32-strwidth: Likewise.
5724         * modules/uniwidth/u32-width: Likewise.
5725         * modules/uniwidth/width: Likewise.
5726         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5727         with $(LIBUNISTRING).
5728         * modules/unicase/ignorable-tests: Likewise.
5729         * modules/unicase/locale-language-tests: Likewise.
5730         * modules/unicase/tolower-tests: Likewise.
5731         * modules/unicase/totitle-tests: Likewise.
5732         * modules/unicase/toupper-tests: Likewise.
5733         * modules/unicase/u8-casecmp-tests: Likewise.
5734         * modules/unicase/u8-casecoll-tests: Likewise.
5735         * modules/unicase/u8-casefold-tests: Likewise.
5736         * modules/unicase/u8-is-cased-tests: Likewise.
5737         * modules/unicase/u8-is-casefolded-tests: Likewise.
5738         * modules/unicase/u8-is-lowercase-tests: Likewise.
5739         * modules/unicase/u8-is-titlecase-tests: Likewise.
5740         * modules/unicase/u8-is-uppercase-tests: Likewise.
5741         * modules/unicase/u8-tolower-tests: Likewise.
5742         * modules/unicase/u8-totitle-tests: Likewise.
5743         * modules/unicase/u8-toupper-tests: Likewise.
5744         * modules/unicase/u16-casecmp-tests: Likewise.
5745         * modules/unicase/u16-casecoll-tests: Likewise.
5746         * modules/unicase/u16-casefold-tests: Likewise.
5747         * modules/unicase/u16-is-cased-tests: Likewise.
5748         * modules/unicase/u16-is-casefolded-tests: Likewise.
5749         * modules/unicase/u16-is-lowercase-tests: Likewise.
5750         * modules/unicase/u16-is-titlecase-tests: Likewise.
5751         * modules/unicase/u16-is-uppercase-tests: Likewise.
5752         * modules/unicase/u16-tolower-tests: Likewise.
5753         * modules/unicase/u16-totitle-tests: Likewise.
5754         * modules/unicase/u16-toupper-tests: Likewise.
5755         * modules/unicase/u32-casecmp-tests: Likewise.
5756         * modules/unicase/u32-casecoll-tests: Likewise.
5757         * modules/unicase/u32-casefold-tests: Likewise.
5758         * modules/unicase/u32-is-cased-tests: Likewise.
5759         * modules/unicase/u32-is-casefolded-tests: Likewise.
5760         * modules/unicase/u32-is-lowercase-tests: Likewise.
5761         * modules/unicase/u32-is-titlecase-tests: Likewise.
5762         * modules/unicase/u32-is-uppercase-tests: Likewise.
5763         * modules/unicase/u32-tolower-tests: Likewise.
5764         * modules/unicase/u32-totitle-tests: Likewise.
5765         * modules/unicase/u32-toupper-tests: Likewise.
5766         * modules/unicase/ulc-casecmp-tests: Likewise.
5767         * modules/unicase/ulc-casecoll-tests: Likewise.
5768         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5769         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5770         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5771         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5772         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5773         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5774         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5775         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5776         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5777         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5778         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5779         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5780         * modules/unictype/bidicategory-byname-tests: Likewise.
5781         * modules/unictype/bidicategory-name-tests: Likewise.
5782         * modules/unictype/bidicategory-of-tests: Likewise.
5783         * modules/unictype/bidicategory-test-tests: Likewise.
5784         * modules/unictype/block-list-tests: Likewise.
5785         * modules/unictype/block-of-tests: Likewise.
5786         * modules/unictype/block-test-tests: Likewise.
5787         * modules/unictype/category-C-tests: Likewise.
5788         * modules/unictype/category-Cc-tests: Likewise.
5789         * modules/unictype/category-Cf-tests: Likewise.
5790         * modules/unictype/category-Cn-tests: Likewise.
5791         * modules/unictype/category-Co-tests: Likewise.
5792         * modules/unictype/category-Cs-tests: Likewise.
5793         * modules/unictype/category-L-tests: Likewise.
5794         * modules/unictype/category-Ll-tests: Likewise.
5795         * modules/unictype/category-Lm-tests: Likewise.
5796         * modules/unictype/category-Lo-tests: Likewise.
5797         * modules/unictype/category-Lt-tests: Likewise.
5798         * modules/unictype/category-Lu-tests: Likewise.
5799         * modules/unictype/category-M-tests: Likewise.
5800         * modules/unictype/category-Mc-tests: Likewise.
5801         * modules/unictype/category-Me-tests: Likewise.
5802         * modules/unictype/category-Mn-tests: Likewise.
5803         * modules/unictype/category-N-tests: Likewise.
5804         * modules/unictype/category-Nd-tests: Likewise.
5805         * modules/unictype/category-Nl-tests: Likewise.
5806         * modules/unictype/category-No-tests: Likewise.
5807         * modules/unictype/category-P-tests: Likewise.
5808         * modules/unictype/category-Pc-tests: Likewise.
5809         * modules/unictype/category-Pd-tests: Likewise.
5810         * modules/unictype/category-Pe-tests: Likewise.
5811         * modules/unictype/category-Pf-tests: Likewise.
5812         * modules/unictype/category-Pi-tests: Likewise.
5813         * modules/unictype/category-Po-tests: Likewise.
5814         * modules/unictype/category-Ps-tests: Likewise.
5815         * modules/unictype/category-S-tests: Likewise.
5816         * modules/unictype/category-Sc-tests: Likewise.
5817         * modules/unictype/category-Sk-tests: Likewise.
5818         * modules/unictype/category-Sm-tests: Likewise.
5819         * modules/unictype/category-So-tests: Likewise.
5820         * modules/unictype/category-Z-tests: Likewise.
5821         * modules/unictype/category-Zl-tests: Likewise.
5822         * modules/unictype/category-Zp-tests: Likewise.
5823         * modules/unictype/category-Zs-tests: Likewise.
5824         * modules/unictype/category-and-not-tests: Likewise.
5825         * modules/unictype/category-and-tests: Likewise.
5826         * modules/unictype/category-byname-tests: Likewise.
5827         * modules/unictype/category-name-tests: Likewise.
5828         * modules/unictype/category-none-tests: Likewise.
5829         * modules/unictype/category-of-tests: Likewise.
5830         * modules/unictype/category-or-tests: Likewise.
5831         * modules/unictype/category-test-withtable-tests: Likewise.
5832         * modules/unictype/combining-class-tests: Likewise.
5833         * modules/unictype/ctype-alnum-tests: Likewise.
5834         * modules/unictype/ctype-alpha-tests: Likewise.
5835         * modules/unictype/ctype-blank-tests: Likewise.
5836         * modules/unictype/ctype-cntrl-tests: Likewise.
5837         * modules/unictype/ctype-digit-tests: Likewise.
5838         * modules/unictype/ctype-graph-tests: Likewise.
5839         * modules/unictype/ctype-lower-tests: Likewise.
5840         * modules/unictype/ctype-print-tests: Likewise.
5841         * modules/unictype/ctype-punct-tests: Likewise.
5842         * modules/unictype/ctype-space-tests: Likewise.
5843         * modules/unictype/ctype-upper-tests: Likewise.
5844         * modules/unictype/ctype-xdigit-tests: Likewise.
5845         * modules/unictype/decimal-digit-tests: Likewise.
5846         * modules/unictype/digit-tests: Likewise.
5847         * modules/unictype/mirror-tests: Likewise.
5848         * modules/unictype/numeric-tests: Likewise.
5849         * modules/unictype/property-alphabetic-tests: Likewise.
5850         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5851         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5852         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5853         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5854         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5855         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5856         * modules/unictype/property-bidi-control-tests: Likewise.
5857         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5858         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5859         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5860         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5861         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5862         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5863         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5864         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5865         * modules/unictype/property-bidi-pdf-tests: Likewise.
5866         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5867         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5868         * modules/unictype/property-byname-tests: Likewise.
5869         * modules/unictype/property-combining-tests: Likewise.
5870         * modules/unictype/property-composite-tests: Likewise.
5871         * modules/unictype/property-currency-symbol-tests: Likewise.
5872         * modules/unictype/property-dash-tests: Likewise.
5873         * modules/unictype/property-decimal-digit-tests: Likewise.
5874         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5875         * modules/unictype/property-deprecated-tests: Likewise.
5876         * modules/unictype/property-diacritic-tests: Likewise.
5877         * modules/unictype/property-extender-tests: Likewise.
5878         * modules/unictype/property-format-control-tests: Likewise.
5879         * modules/unictype/property-grapheme-base-tests: Likewise.
5880         * modules/unictype/property-grapheme-extend-tests: Likewise.
5881         * modules/unictype/property-grapheme-link-tests: Likewise.
5882         * modules/unictype/property-hex-digit-tests: Likewise.
5883         * modules/unictype/property-hyphen-tests: Likewise.
5884         * modules/unictype/property-id-continue-tests: Likewise.
5885         * modules/unictype/property-id-start-tests: Likewise.
5886         * modules/unictype/property-ideographic-tests: Likewise.
5887         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5888         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5889         * modules/unictype/property-ignorable-control-tests: Likewise.
5890         * modules/unictype/property-iso-control-tests: Likewise.
5891         * modules/unictype/property-join-control-tests: Likewise.
5892         * modules/unictype/property-left-of-pair-tests: Likewise.
5893         * modules/unictype/property-line-separator-tests: Likewise.
5894         * modules/unictype/property-logical-order-exception-tests: Likewise.
5895         * modules/unictype/property-lowercase-tests: Likewise.
5896         * modules/unictype/property-math-tests: Likewise.
5897         * modules/unictype/property-non-break-tests: Likewise.
5898         * modules/unictype/property-not-a-character-tests: Likewise.
5899         * modules/unictype/property-numeric-tests: Likewise.
5900         * modules/unictype/property-other-alphabetic-tests: Likewise.
5901         * modules/unictype/property-other-default-ignorable-code-point-tests:
5902         Likewise.
5903         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5904         * modules/unictype/property-other-id-continue-tests: Likewise.
5905         * modules/unictype/property-other-id-start-tests: Likewise.
5906         * modules/unictype/property-other-lowercase-tests: Likewise.
5907         * modules/unictype/property-other-math-tests: Likewise.
5908         * modules/unictype/property-other-uppercase-tests: Likewise.
5909         * modules/unictype/property-paired-punctuation-tests: Likewise.
5910         * modules/unictype/property-paragraph-separator-tests: Likewise.
5911         * modules/unictype/property-pattern-syntax-tests: Likewise.
5912         * modules/unictype/property-pattern-white-space-tests: Likewise.
5913         * modules/unictype/property-private-use-tests: Likewise.
5914         * modules/unictype/property-punctuation-tests: Likewise.
5915         * modules/unictype/property-quotation-mark-tests: Likewise.
5916         * modules/unictype/property-radical-tests: Likewise.
5917         * modules/unictype/property-sentence-terminal-tests: Likewise.
5918         * modules/unictype/property-soft-dotted-tests: Likewise.
5919         * modules/unictype/property-space-tests: Likewise.
5920         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5921         * modules/unictype/property-test-tests: Likewise.
5922         * modules/unictype/property-titlecase-tests: Likewise.
5923         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5924         * modules/unictype/property-unified-ideograph-tests: Likewise.
5925         * modules/unictype/property-uppercase-tests: Likewise.
5926         * modules/unictype/property-variation-selector-tests: Likewise.
5927         * modules/unictype/property-white-space-tests: Likewise.
5928         * modules/unictype/property-xid-continue-tests: Likewise.
5929         * modules/unictype/property-xid-start-tests: Likewise.
5930         * modules/unictype/property-zero-width-tests: Likewise.
5931         * modules/unictype/scripts-tests: Likewise.
5932         * modules/unictype/syntax-c-ident-tests: Likewise.
5933         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5934         * modules/unictype/syntax-java-ident-tests: Likewise.
5935         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5936         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5937         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5938         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5939         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5940         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5941         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5942         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5943         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5944         * modules/uniname/uniname-tests: Likewise.
5945         * modules/uninorm/canonical-decomposition-tests: Likewise.
5946         * modules/uninorm/compat-decomposition-tests: Likewise.
5947         * modules/uninorm/composition-tests: Likewise.
5948         * modules/uninorm/decomposing-form-tests: Likewise.
5949         * modules/uninorm/decomposition-tests: Likewise.
5950         * modules/uninorm/filter-tests: Likewise.
5951         * modules/uninorm/nfc-tests: Likewise.
5952         * modules/uninorm/nfd-tests: Likewise.
5953         * modules/uninorm/nfkc-tests: Likewise.
5954         * modules/uninorm/nfkd-tests: Likewise.
5955         * modules/uninorm/u8-normcmp-tests: Likewise.
5956         * modules/uninorm/u8-normcoll-tests: Likewise.
5957         * modules/uninorm/u16-normcmp-tests: Likewise.
5958         * modules/uninorm/u16-normcoll-tests: Likewise.
5959         * modules/uninorm/u32-normcmp-tests: Likewise.
5960         * modules/uninorm/u32-normcoll-tests: Likewise.
5961         * modules/unistdio/u8-asnprintf-tests: Likewise.
5962         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5963         * modules/unistdio/u8-vasprintf-tests: Likewise.
5964         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5965         * modules/unistdio/u8-vsprintf-tests: Likewise.
5966         * modules/unistdio/u16-asnprintf-tests: Likewise.
5967         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5968         * modules/unistdio/u16-vasprintf-tests: Likewise.
5969         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5970         * modules/unistdio/u16-vsprintf-tests: Likewise.
5971         * modules/unistdio/u32-asnprintf-tests: Likewise.
5972         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5973         * modules/unistdio/u32-vasprintf-tests: Likewise.
5974         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5975         * modules/unistdio/u32-vsprintf-tests: Likewise.
5976         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5977         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5978         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5979         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5980         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5981         * modules/unistr/u8-check-tests: Likewise.
5982         * modules/unistr/u8-chr-tests: Likewise.
5983         * modules/unistr/u8-cmp-tests: Likewise.
5984         * modules/unistr/u8-cmp2-tests: Likewise.
5985         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5986         * modules/unistr/u8-cpy-tests: Likewise.
5987         * modules/unistr/u8-mblen-tests: Likewise.
5988         * modules/unistr/u8-mbsnlen-tests: Likewise.
5989         * modules/unistr/u8-mbtouc-tests: Likewise.
5990         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5991         * modules/unistr/u8-mbtoucr-tests: Likewise.
5992         * modules/unistr/u8-move-tests: Likewise.
5993         * modules/unistr/u8-next-tests: Likewise.
5994         * modules/unistr/u8-prev-tests: Likewise.
5995         * modules/unistr/u8-set-tests: Likewise.
5996         * modules/unistr/u8-stpcpy-tests: Likewise.
5997         * modules/unistr/u8-stpncpy-tests: Likewise.
5998         * modules/unistr/u8-strcat-tests: Likewise.
5999         * modules/unistr/u8-strcmp-tests: Likewise.
6000         * modules/unistr/u8-strcoll-tests: Likewise.
6001         * modules/unistr/u8-strcpy-tests: Likewise.
6002         * modules/unistr/u8-strdup-tests: Likewise.
6003         * modules/unistr/u8-strlen-tests: Likewise.
6004         * modules/unistr/u8-strmblen-tests: Likewise.
6005         * modules/unistr/u8-strmbtouc-tests: Likewise.
6006         * modules/unistr/u8-strncat-tests: Likewise.
6007         * modules/unistr/u8-strncmp-tests: Likewise.
6008         * modules/unistr/u8-strncpy-tests: Likewise.
6009         * modules/unistr/u8-strnlen-tests: Likewise.
6010         * modules/unistr/u8-to-u16-tests: Likewise.
6011         * modules/unistr/u8-to-u32-tests: Likewise.
6012         * modules/unistr/u8-uctomb-tests: Likewise.
6013         * modules/unistr/u16-check-tests: Likewise.
6014         * modules/unistr/u16-chr-tests: Likewise.
6015         * modules/unistr/u16-cmp-tests: Likewise.
6016         * modules/unistr/u16-cmp2-tests: Likewise.
6017         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6018         * modules/unistr/u16-cpy-tests: Likewise.
6019         * modules/unistr/u16-mblen-tests: Likewise.
6020         * modules/unistr/u16-mbsnlen-tests: Likewise.
6021         * modules/unistr/u16-mbtouc-tests: Likewise.
6022         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6023         * modules/unistr/u16-mbtoucr-tests: Likewise.
6024         * modules/unistr/u16-move-tests: Likewise.
6025         * modules/unistr/u16-next-tests: Likewise.
6026         * modules/unistr/u16-prev-tests: Likewise.
6027         * modules/unistr/u16-set-tests: Likewise.
6028         * modules/unistr/u16-stpcpy-tests: Likewise.
6029         * modules/unistr/u16-stpncpy-tests: Likewise.
6030         * modules/unistr/u16-strcat-tests: Likewise.
6031         * modules/unistr/u16-strcmp-tests: Likewise.
6032         * modules/unistr/u16-strcoll-tests: Likewise.
6033         * modules/unistr/u16-strcpy-tests: Likewise.
6034         * modules/unistr/u16-strdup-tests: Likewise.
6035         * modules/unistr/u16-strlen-tests: Likewise.
6036         * modules/unistr/u16-strmblen-tests: Likewise.
6037         * modules/unistr/u16-strmbtouc-tests: Likewise.
6038         * modules/unistr/u16-strncat-tests: Likewise.
6039         * modules/unistr/u16-strncmp-tests: Likewise.
6040         * modules/unistr/u16-strncpy-tests: Likewise.
6041         * modules/unistr/u16-strnlen-tests: Likewise.
6042         * modules/unistr/u16-to-u32-tests: Likewise.
6043         * modules/unistr/u16-to-u8-tests: Likewise.
6044         * modules/unistr/u16-uctomb-tests: Likewise.
6045         * modules/unistr/u32-check-tests: Likewise.
6046         * modules/unistr/u32-chr-tests: Likewise.
6047         * modules/unistr/u32-cmp-tests: Likewise.
6048         * modules/unistr/u32-cmp2-tests: Likewise.
6049         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6050         * modules/unistr/u32-cpy-tests: Likewise.
6051         * modules/unistr/u32-mblen-tests: Likewise.
6052         * modules/unistr/u32-mbsnlen-tests: Likewise.
6053         * modules/unistr/u32-mbtouc-tests: Likewise.
6054         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6055         * modules/unistr/u32-mbtoucr-tests: Likewise.
6056         * modules/unistr/u32-move-tests: Likewise.
6057         * modules/unistr/u32-next-tests: Likewise.
6058         * modules/unistr/u32-prev-tests: Likewise.
6059         * modules/unistr/u32-set-tests: Likewise.
6060         * modules/unistr/u32-stpcpy-tests: Likewise.
6061         * modules/unistr/u32-stpncpy-tests: Likewise.
6062         * modules/unistr/u32-strcat-tests: Likewise.
6063         * modules/unistr/u32-strcmp-tests: Likewise.
6064         * modules/unistr/u32-strcoll-tests: Likewise.
6065         * modules/unistr/u32-strcpy-tests: Likewise.
6066         * modules/unistr/u32-strdup-tests: Likewise.
6067         * modules/unistr/u32-strlen-tests: Likewise.
6068         * modules/unistr/u32-strmblen-tests: Likewise.
6069         * modules/unistr/u32-strmbtouc-tests: Likewise.
6070         * modules/unistr/u32-strncat-tests: Likewise.
6071         * modules/unistr/u32-strncmp-tests: Likewise.
6072         * modules/unistr/u32-strncpy-tests: Likewise.
6073         * modules/unistr/u32-strnlen-tests: Likewise.
6074         * modules/unistr/u32-to-u16-tests: Likewise.
6075         * modules/unistr/u32-to-u8-tests: Likewise.
6076         * modules/unistr/u32-uctomb-tests: Likewise.
6077         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6078         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6079         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6080         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6081         * modules/uniwidth/u8-strwidth-tests: Likewise.
6082         * modules/uniwidth/u8-width-tests: Likewise.
6083         * modules/uniwidth/u16-strwidth-tests: Likewise.
6084         * modules/uniwidth/u16-width-tests: Likewise.
6085         * modules/uniwidth/u32-strwidth-tests: Likewise.
6086         * modules/uniwidth/u32-width-tests: Likewise.
6087         * modules/uniwidth/width-tests: Likewise.
6088
6089 2010-05-18  Richard Jones  <rjones@redhat.com>
6090
6091         doc: users.txt: list hivex
6092         * users.txt: Add hivex.
6093
6094 2010-05-18  Richard Jones  <rjones@redhat.com>
6095
6096         doc: users.txt: list febootstrap
6097         * users.txt: Add febootstrap.
6098
6099 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6100
6101         bootstrap: fix an error when gnulib is not used as a git submodule
6102         * build-aux/bootstrap (gnulib_path): If its length is zero then
6103         assign "gnulib" to it.
6104         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6105
6106 2010-05-16  Bruno Haible  <bruno@clisp.org>
6107
6108         Avoid autoconf warnings about AM_ICONV.
6109         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6110         2.64.
6111
6112 2010-05-16  Bruno Haible  <bruno@clisp.org>
6113
6114         absolute-header: Make the macro usable in more situations.
6115         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6116         from gl_ABSOLUTE_HEADER.
6117         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6118
6119 2010-05-16  James Youngman  <jay@gnu.org>
6120
6121         doc: update users.txt
6122         * users.txt: Add CSSC.
6123
6124 2010-05-16  Jim Meyering  <meyering@redhat.com>
6125
6126         init.sh: fix an error in the previous change; add more comments
6127         * tests/init.sh: Compare exit code in loop against 9, not 2.
6128         Patch by Bruno Haible.
6129         Make the two tests more similar by adding an empty "then" clause.
6130         Add comments.
6131
6132         init.sh: avoid unnecessary shell re-exec
6133         * tests/init.sh: Improve the re-exec-required check to first test the
6134         current shell.  If it passes the test, do not search for a shell that
6135         does pass, and do not re-exec.  This test is particularly contorted to
6136         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6137         of $(...) evokes a syntax error and causes immediate shell exit with
6138         status 2.  Bruno Haible reported that the re-exec made it impossible
6139         to single-step through any init.sh-using script.
6140
6141 2010-05-16  Bruno Haible  <bruno@clisp.org>
6142
6143         Fix collision between gnulib's and libintl's printf replacements.
6144         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6145         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6146         (printf): When using GNU C, map the __printf__ function to rpl_printf
6147         via __asm__. When not using GNU C, define rpl_printf instead of
6148         __printf__.
6149         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6150         commit.
6151         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6152         commit.
6153         * m4/asm-underscore.m4: New file.
6154         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6155         * modules/stdio (Files): Add m4/asm-underscore.m4.
6156         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6157         Reported by Ben Pfaff.
6158
6159 2010-05-16  Bruno Haible  <bruno@clisp.org>
6160
6161         verify: Avoid skipping the test on openSUSE 11.0.
6162         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6163
6164 2010-05-13  Bruno Haible  <bruno@clisp.org>
6165
6166         Avoid useless warnings from G++.
6167         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6168         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6169         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6170
6171 2010-05-11  Jim Meyering  <meyering@redhat.com>
6172
6173         maint.mk: tweak preceding change
6174         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6175         regexps tighter by anchoring at EOL, and make the new group "shy"
6176         for slightly decreased overhead.
6177
6178 2010-05-11  Eric Blake  <eblake@redhat.com>
6179
6180         maint.mk: gnulib doesn't guarantee NSIG
6181         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6182
6183 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6184
6185         test-pwrite.c: Remove unused variable declaration.
6186         * tests/test-pwrite.c (main): Remove read_buf declaration.
6187
6188         Remove useless test-pwrite.sh file.
6189         * tests/test-pwrite.sh: Delete file.
6190         * modules/pwrite-tests: Remove references.
6191         Reported by Bruno Haible.
6192
6193 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6194
6195         init.sh: fix a typo
6196         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6197
6198 2010-05-10  Jim Meyering  <meyering@redhat.com>
6199
6200         maint.mk: avoid using a temporary file in the always-defined-macros check
6201         * top/maint.mk (.re-defmac): Remove rule.
6202         (gl_trap_): Remove definition.
6203         (sc_prohibit_always-defined_macros): Rewrite not to create and
6204         depend on a temporary file.  Instead, depend on GNU grep's ability
6205         to read a list of regular expressions from stdin when given "-f -".
6206
6207 2010-05-09  Bruno Haible  <bruno@clisp.org>
6208
6209         Update to GNU gettext 0.18, part 1.
6210         * m4/gettext.m4: Update to GNU gettext 0.18.
6211         * m4/intl.m4: Likewise.
6212         * m4/po.m4: Likewise.
6213         * modules/gettext (Files): Add m4/fcntl-o.m4.
6214         (configure.ac): Require gettext infrastructure from version 0.18.
6215
6216 2010-05-09  Jim Meyering  <meyering@redhat.com>
6217
6218         init.sh: enable MALLOC_PERTURB_
6219         * tests/init.sh: Enable glibc's malloc-perturbing option.
6220
6221         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6222         With my recent change in init.sh from the two-line form:
6223             -#   : ${srcdir=.}
6224             -#   . "$srcdir/init.sh"; path_prepend_ .
6225             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6226         I noticed that using the one-line form would cause this test
6227         to fail with a false-positive, or to stop working altogether,
6228         depending on whether help-version changed or all the tests did.
6229         * top/maint.mk (_hv_regex): Remove this definition.
6230         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6231         (_hv_regex_strong): Use a stronger regex to check for conformance.
6232         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6233         Give a separate diagnostic for lack of conforming use.
6234
6235         maint.mk: prohibit definition of symbols defined by gnulib
6236         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6237         definition of symbols defined by gnulib.
6238
6239 2010-05-09  Bruno Haible  <bruno@clisp.org>
6240
6241         acl: Avoid test failure on Cygwin-hosted mingw.
6242         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6243
6244 2010-05-09  Bruno Haible  <bruno@clisp.org>
6245
6246         error: Use system's fcntl function.
6247         * lib/error.c (fcntl): Undefine.
6248
6249 2010-05-09  Jim Meyering  <meyering@redhat.com>
6250
6251         verify: adjust formatting to be more consistent
6252         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6253         argument-list '('s, and after one comma.
6254
6255 2010-05-09  Bruno Haible  <bruno@clisp.org>
6256
6257         error: More reliable output on mingw.
6258         * lib/error.c: Include <windows.h>.
6259         (is_open): New function.
6260         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6261         defined.
6262
6263 2010-05-09  Bruno Haible  <bruno@clisp.org>
6264
6265         vasnprintf: Fix syntax errors in libintl build on mingw.
6266         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6267         pad_ourselves and prec_ourselves after use.
6268
6269 2010-05-08  Bruno Haible  <bruno@clisp.org>
6270
6271         * lib/config.charset: Update comments for Cygwin 1.7.
6272         * lib/localcharset.c: Likewise.
6273
6274 2010-05-07  Jim Meyering  <meyering@redhat.com>
6275
6276         init.sh: improve comments
6277         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6278         . "${srcdir=.}/init.sh"; path_prepend_ .
6279         Add a note about path_prepend_ and the alternative of using
6280         TESTS_ENVIRONMENT.
6281
6282 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6283
6284         exclude: Unescape hashed patterns in wildcard mode.
6285         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6286         to the hash list.
6287         * tests/test-exclude8.sh: New test case.
6288         * modules/exclude-tests: Add new test.
6289
6290 2010-05-05  Eric Blake  <eblake@redhat.com>
6291
6292         verify: automate tests
6293         * modules/verify-tests: New module.
6294         * tests/test-verify.sh: New file.
6295         * tests/test-verify.c: Guard each negative test with a unique id.
6296         Also avoid warning about unused left hand of comma expressions.
6297
6298 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6299
6300         Further improvements to verify.h, suggested by Eric Blake.
6301         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6302         the GL_* versions, to avoid collision with OpenGL.
6303         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6304         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6305         than testing merely whether it's defined.
6306
6307         Modify verify.h to pacify gcc -Wredundant_decls.
6308         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6309         These use the prefix "GL_" since they're likely to be useful elsewhere.
6310         We may need to break them out into a different .h file.
6311         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6312         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6313         of verify_function__.
6314
6315 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6316
6317         Tests for module pwrite.
6318         * modules/pwrite-tests: New file.
6319         * tests/test-pwrite.sh: New file.
6320         * tests/test-pwrite.c: New file.
6321
6322         New module pwrite.
6323         * lib/unistd.in.h (pwrite): New declaration.
6324         * lib/pwrite.c: New file, from glibc with modifications.
6325         * m4/pwrite.m4: New file.
6326         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6327         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6328         REPLACE_PWRITE.
6329         * modules/pwrite: New file.
6330         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6331         REPLACE_PWRITE.
6332         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6333         * doc/posix-functions/pwrite.texi: Mention the new module.
6334
6335 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6336
6337         pread: Update documentation.
6338         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6339
6340 2010-05-04  Eric Blake  <eblake@redhat.com>
6341
6342         docs: update cygwin progress
6343         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6344         this bug.
6345         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6346         Added in cygwin 1.7.2.
6347         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6348         Likewise.
6349         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6350         Likewise.
6351         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6352         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6353         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6354         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6355         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6356         Mention nproc module.
6357         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6358         bug in cygwin 1.7.5 addition.
6359         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6360         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6361         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6362         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6363         1.7.5.
6364         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6365         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6366         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6367         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6368         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6369         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6370         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6371         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6372         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6373         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6374         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6375         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6376         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6377         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6378         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6379         Likewise.
6380         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6381         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6382         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6383         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6384         Likewise.
6385         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6386         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6387         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6388         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6389         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6390         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6391         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6392         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6393         Likewise.
6394         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6395         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6396         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6397         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6398         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6399         Likewise.
6400         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6401         Likewise.
6402         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6403         Likewise.
6404         * doc/glibc-functions/xdrrec_endofrecord.texi
6405         (xdrrec_endofrecord): Likewise.
6406         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6407         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6408         Likewise.
6409         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6410         Likewise.
6411
6412 2010-05-04  Jim Meyering  <meyering@redhat.com>
6413
6414         gendocs.sh: make its "-s FILE" option more useful
6415         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6416         $PACKAGE to reflect the probably-different basename of "FILE".
6417
6418 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6419
6420         bootstrap: don't ignore download_po_files failure
6421         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6422         failure.
6423
6424 2010-05-03  Jim Meyering  <meyering@redhat.com>
6425
6426         maint.mk: allow to pass options to gendocs.sh
6427         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6428         (gendocs_options_): New overridable variable.
6429
6430         gnu-web-doc-update: don't ignore configure or build failure
6431         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6432
6433         announce-gen: backslash-escape '@'s in --help output
6434         * build-aux/announce-gen: Fix syntax errors.
6435
6436         maint.mk, announce-gen: allow project-specific announcement mail headers
6437         * top/maint.mk (translation_project_): Define default.
6438         (announcement_Cc_, announcement_mail_headers_): Likewise.
6439         (announcement): Invoke announce-gen with new --mail-headers option.
6440         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6441
6442         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6443         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6444         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6445         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6446         line in the "err2" output file when running "make check" in verbose
6447         mode (i.e., with set -x enabled).
6448
6449 2010-05-03  Bruno Haible  <bruno@clisp.org>
6450
6451         wctob: Fix for weird platforms.
6452         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6453         argument value.
6454
6455 2010-05-03  Jim Meyering  <meyering@redhat.com>
6456
6457         maint.mk: prohibit unwarranted use of <strings.h>
6458         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6459         strings.h in a file that does not also use strcasecmp, strncasecmp,
6460         ffs or ffsll.
6461
6462         maint.mk: remove obsolete comments
6463         * top/maint.mk: Remove stale, commented-out rules.
6464
6465 2010-05-02  Bruno Haible  <bruno@clisp.org>
6466
6467         wcwidth: Declare also when it's aliased.
6468         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6469         macro.
6470
6471 2010-05-02  Bruno Haible  <bruno@clisp.org>
6472
6473         Fix regression from 2010-04-25.
6474         * gnulib-tool (func_modules_transitive_closure): Check the status of
6475         all modules, not only of the tests that are of the form foo-tests where
6476         foo is a module.
6477
6478 2010-05-02  Bruno Haible  <bruno@clisp.org>
6479
6480         wctob: Work around nasty Cygwin 1.7.2 bug.
6481         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6482         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6483
6484 2010-05-01  Bruno Haible  <bruno@clisp.org>
6485
6486         fpurge: Sharper test.
6487         * tests/test-fpurge.c (main): Add one more ftell check.
6488         * modules/fpurge-tests (Depends-on): Add ftell.
6489         Suggested by Eric Blake.
6490
6491 2010-05-01  Bruno Haible  <bruno@clisp.org>
6492
6493         ftello: Another test.
6494         * tests/test-ftello3.c: New file.
6495         * modules/ftello-tests (Files): Add it.
6496         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6497         MOSTLYCLEANFILES.
6498
6499         ftell: Another test.
6500         * tests/test-ftell3.c: New file.
6501         * modules/ftell-tests (Files): Add it.
6502         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6503         MOSTLYCLEANFILES.
6504
6505 2010-05-01  Bruno Haible  <bruno@clisp.org>
6506
6507         ftell, ftello: Work around Solaris bug.
6508         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6509         * lib/ftello.c: Include stdio-impl.h.
6510         (ftello): On Solaris, when _IOWRT is set, compute the result without
6511         looking at _IOREAD.
6512         * modules/ftello (Files): Add lib/stdio-impl.h.
6513         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6514         * doc/posix-functions/ftello.texi: Likewise.
6515         Reported by Eric Blake.
6516
6517 2010-05-01  Bruno Haible  <bruno@clisp.org>
6518
6519         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6520         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6521         the _IOWRT flag is also set.
6522
6523 2010-05-01  Bruno Haible  <bruno@clisp.org>
6524
6525         Fix doc about a HP-UX stdio bug.
6526         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6527         * doc/posix-functions/ftello.texi: Likewise.
6528
6529 2010-05-01  Bruno Haible  <bruno@clisp.org>
6530
6531         lseek test: Fix failure on Solaris.
6532         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6533         output.
6534
6535 2010-04-30  Jim Meyering  <meyering@redhat.com>
6536
6537         bootstrap: don't ignore failure to generate po*/Makevars
6538         * build-aux/bootstrap (with_gettext): Don't ignore failure
6539         to create po/Makevars or runtime-po/Makevars.
6540
6541 2010-04-29  Eric Blake  <eblake@redhat.com>
6542
6543         headers: relax license to LGPLv2+
6544         * modules/fcntl-h (License): Relax license.
6545         * modules/getopt-posix (License): Likewise.
6546         * modules/locale (License): Likewise.
6547         * modules/math (License): Likewise.
6548         * modules/pty (License): Likewise.
6549         * modules/sched (License): Likewise.
6550         * modules/search (License): Likewise.
6551         * modules/spawn (License): Likewise.
6552         * modules/stdarg (License): Likewise.
6553         * modules/sysexits (License): Likewise.
6554
6555 2010-04-29  Jim Meyering  <meyering@redhat.com>
6556
6557         inttypes: relax license to LGPLv2+
6558         * modules/inttypes (License): Relax license.
6559
6560 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6561
6562         * top/maint.mk (indent): Run twice to produce idempotent results.
6563
6564 2010-04-28  Bruno Haible  <bruno@clisp.org>
6565
6566         getdate: Generate getdate.c in the source directory.
6567         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6568         MOSTLYCLEANFILES.
6569         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6570
6571 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6572
6573         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6574         is not declared as a const *; avoid warnings in that case.
6575
6576 2010-04-28  Eric Blake  <eblake@redhat.com>
6577
6578         canonicalize-lgpl: avoid compiler warning
6579         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6580         declaration' / 'extraneous semicolon' warning with some compilers.
6581         Reported by Andreas Gruenbacher.
6582
6583 2010-04-28  Jim Meyering  <meyering@redhat.com>
6584
6585         init.sh: ensure a more reliable exit status when exiting via trap
6586         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6587         Inspired by patches from Dmitry V. Levin.
6588         Also trap on signal 3 (SIGQUIT).
6589
6590 2010-04-27  Bruno Haible  <bruno@clisp.org>
6591
6592         Update doc about utimes().
6593         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6594         'utimens' module.
6595         Reported by Andreas Gruenbacher <agruen@suse.de>.
6596
6597 2010-04-27  Eric Blake  <eblake@redhat.com>
6598
6599         full-read, full-write: relax license
6600         * modules/full-read (License): Drop to LGPLv2+.
6601         * modules/full-write (License): Likewise.
6602         * modules/safe-read (License): Likewise.
6603         * modules/safe-write (License): Likewise.
6604
6605         pthread: mention library for linking
6606         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6607
6608 2010-04-27  Jim Meyering  <meyering@redhat.com>
6609
6610         maint.mk: fix a bug introduced in last change
6611         * top/maint.mk (gl_assured_headers_): Now that all names are on
6612         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6613         is not anchored to end of word, it should be adequate.
6614
6615         maint.mk: avoid side-effect in latest syntax-check
6616         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6617         to run commands via $(shell...), and hence to incur cost only when
6618         the new rule is actually run.
6619
6620         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6621         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6622         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6623         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6624         (gl_assured_headers_, az_, AZ_): Define.
6625         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6626
6627 2010-04-26  Jim Meyering  <jim@meyering.net>
6628             Bruno Haible  <bruno@clisp.org>
6629
6630         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6631         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6632         Prompted by an exchange with Gilles Espinasse.
6633
6634 2010-04-26  Jim Meyering  <meyering@redhat.com>
6635
6636         git-version-gen: aesthetic tweak
6637         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6638         so that the command remains on a single line.
6639
6640 2010-04-26  Eric Blake  <eblake@redhat.com>
6641
6642         git-version-gen: allow use on EBCDIC hosts
6643         * build-aux/git-version-gen (dirty): Use literal rather than tying
6644         ourselves to ascii.
6645         Reported by Steve Goetze.
6646
6647 2010-04-25  Bruno Haible  <bruno@clisp.org>
6648
6649         netdb: Add support for GNULIB_POSIXCHECK.
6650         * lib/netdb.in.h: Include warn-on-use.h.
6651         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6652         functions are used when GNULIB_POSIXCHECK is defined and the
6653         getaddrinfo module is not in use.
6654         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6655         freeaddrinfo, gai_strerror, getnameinfo are declared.
6656         * modules/netdb (Depends-on): Add warn-on-use.
6657         (Makefile.am): Include warn-on-use.h in netdb.h.
6658
6659 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6660
6661         build: avoid "make check" failure without .git/ directory
6662         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6663         there is no .git/ directory.
6664
6665 2010-04-25  Bruno Haible  <bruno@clisp.org>
6666
6667         ptsname: Fix misuse of ttyname_r.
6668         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6669         of errno.
6670
6671 2010-04-25  Bruno Haible  <bruno@clisp.org>
6672
6673         ttyname_r: Make it work on Solaris 10.
6674         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6675         if the system function has the POSIX declaration. Test whether the
6676         function fails if the buffer is less than 128 bytes large.
6677         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6678         system's ttyname_r function. Provide a reasonably large buffer.
6679         * modules/ttyname_r (Depends-on): Add extensions.
6680         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6681
6682 2010-04-25  Bruno Haible  <bruno@clisp.org>
6683
6684         Use the 'extensions' module for some more functions on Solaris.
6685         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6686         module.
6687         * doc/posix-functions/ctime_r.texi: Likewise.
6688         * doc/posix-functions/getgrgid_r.texi: Likewise.
6689         * doc/posix-functions/getgrnam_r.texi: Likewise.
6690         * doc/posix-functions/getpwnam_r.texi: Likewise.
6691         * doc/posix-functions/getpwuid_r.texi: Likewise.
6692         * doc/posix-functions/readdir_r.texi: Likewise.
6693         * doc/posix-functions/sigwait.texi: Likewise.
6694         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6695         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6696
6697 2010-04-25  Bruno Haible  <bruno@clisp.org>
6698
6699         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6700         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6701         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6702         * lib/ttyname_r.c: Include <limits.h>.
6703         (ttyname_r): Define using the system's ttyname_r function, if it exists
6704         and not on Solaris.
6705         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6706         set.
6707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6708         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6709         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6710         Reported by Simon Josefsson.
6711
6712 2010-04-25  Bruno Haible  <bruno@clisp.org>
6713
6714         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6715         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6716         * doc/posix-functions/ctime_r.texi: Likewise.
6717         * doc/posix-functions/getgrgid_r.texi: Likewise.
6718         * doc/posix-functions/getgrnam_r.texi: Likewise.
6719         * doc/posix-functions/getlogin_r.texi: Likewise.
6720         * doc/posix-functions/getpwnam_r.texi: Likewise.
6721         * doc/posix-functions/getpwuid_r.texi: Likewise.
6722         * doc/posix-functions/readdir_r.texi: Likewise.
6723         * doc/posix-functions/sigwait.texi: Likewise.
6724         * doc/posix-functions/ttyname_r.texi: Likewise.
6725         Reported by Simon Josefsson.
6726
6727 2010-04-25  Bruno Haible  <bruno@clisp.org>
6728
6729         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6730         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6731         also to --create-testdir.
6732         (func_acceptable): Don't consider the status of *-tests modules here.
6733         (func_modules_transitive_closure): Consider it here, before including a
6734         test module.
6735         (func_import, func_create_testdir): Set inc_all_direct_tests,
6736         inc_all_indirect_tests.
6737         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6738         --create-testdir and --create-megatestdir.
6739
6740 2010-04-25  Bruno Haible  <bruno@clisp.org>
6741
6742         gnulib-tool: Add --without-*-tests options.
6743         * gnulib-tool (func_usage): Document the --without-*-tests options.
6744         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6745         excl_unportable_tests): New variables.
6746         Fail if they are specified with --import or --update.
6747         (func_acceptable): Respect the excl_*_tests variables.
6748         (func_import): Set the excl_*_tests variables to empty.
6749
6750 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6751             Bruno Haible  <bruno@clisp.org>
6752
6753         Work around a MacOS X 10.4 bug with openpty.
6754         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6755         * tests/test-openpty.c (main): Close the master side explicitly.
6756
6757 2010-04-25  Bruno Haible  <bruno@clisp.org>
6758
6759         strnlen: Fix a C++ test error on MacOS X and Solaris.
6760         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6761         the function is not declared.
6762         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6763         Simon Josefsson.
6764
6765 2010-04-24  Bruno Haible  <bruno@clisp.org>
6766
6767         Avoid a gcc warning.
6768         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6769         of correct type for %08lx directive.
6770         Reported by Eric Blake.
6771
6772 2010-04-24  Bruno Haible  <bruno@clisp.org>
6773
6774         vasnprintf: Correct errno value in case of out-of-memory.
6775         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6776         or sprintf. Use the errno value from SNPRINTF or sprintf.
6777         Reported by Ian Beckwith <ianb@erislabs.net>.
6778
6779 2010-04-24  Bruno Haible  <bruno@clisp.org>
6780
6781         ansi-c++-opt: Find correct compiler when cross-compiling.
6782         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6783         AC_CHECK_PROGS.
6784         Reported by Simon Josefsson.
6785
6786 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6787
6788         vc-list-files: Add support for subversion
6789         * build-aux/vc-list-files: Use "svn list" to generate the list of
6790         files controlled by subversion.
6791
6792 2010-04-23  Jim Meyering  <meyering@redhat.com>
6793
6794         vc-list-files tests: convert to use init.sh
6795         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6796         path_prepend_.
6797         Use Exit, not exit.
6798         Use skip_ rather than open coding it.
6799         Remove trap set-up and compare definitions.
6800         * tests/test-vc-list-files-git.sh: Likewise.
6801         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6802
6803 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6804
6805         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6806         backup files.
6807
6808 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6809
6810         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6811
6812 2010-04-20  Eric Blake  <eblake@redhat.com>
6813
6814         tests: be robust to ignored SIGPIPE
6815         * tests/test-select-in.sh: Consume all output.
6816         * tests/test-lseek.sh: Check correct exit status, while avoiding
6817         EPIPE.
6818
6819 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6820             Bruno Haible  <bruno@clisp.org>
6821
6822         visibility: Don't use -fvisibility if it leads to a warning.
6823         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6824         yes, don't pretend that visibility works if it leads to a warning.
6825         Reported by Mike Gran <spk121@yahoo.com>.
6826
6827 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6828
6829         * build-aux/bootstrap: Use "git -h" for testing for supported options
6830         instead of "git --help".  The short-form option only shows a summary,
6831         and doesn't layout the full man page.  Grep for the full option name
6832         in the summary, too.
6833
6834 2010-04-19  Bruno Haible  <bruno@clisp.org>
6835
6836         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6837         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6838         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6839         mention of RELOCATABLE_STRIP.
6840         Reported by Sylvain Beucler <beuc@beuc.net>.
6841
6842 2010-04-19  Bruno Haible  <bruno@clisp.org>
6843
6844         * lib/diffseq.h: Fix typo in comment.
6845         Reported by Eric Blake.
6846
6847 2010-04-19  Bruno Haible  <bruno@clisp.org>
6848
6849         ioctl: Move autoconf macro to a .m4 file.
6850         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6851         * modules/ioctl (Files): Add it.
6852         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6853         Reported by Ian Beckwith <ianb@erislabs.net>.
6854
6855 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6856             Bruno Haible  <bruno@clisp.org>
6857
6858         diffseq: Accommodate use-case with abstract arrays.
6859         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6860         is not defined.
6861         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6862         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6863
6864 2010-04-18  Bruno Haible  <bruno@clisp.org>
6865
6866         * doc/posix-headers/stdbool.texi: More precise wording.
6867
6868 2010-04-17  Jim Meyering  <meyering@redhat.com>
6869
6870         maint.mk: use gnu-style indentation in an embedded perl script
6871         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6872         Rename variable: s/two/last_two_bytes/
6873
6874 2010-04-16  Eric Blake  <eblake@redhat.com>
6875
6876         test-stdbool: skip test that fails with Solaris CC
6877         * tests/test-stdbool.c (f): Skip test that causes compilation
6878         error under buggy C++ compiler.
6879         * lib/stdbool.in.h: Document the limitation.
6880         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6881
6882         setenv: allow compilation with C++
6883         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6884         register keyword.
6885
6886         stdint: allow test to pass with C++
6887         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6888
6889         getopt: allow compilation with C++
6890         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6891         struct.
6892         * lib/getopt.c (_getopt_internal_r): Use correct type.
6893         Reported by Dagobert Michelson, via Joel E. Denny.
6894
6895 2010-04-16  Bruno Haible  <bruno@clisp.org>
6896
6897         Override netdb.h always.
6898         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6899         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6900         Reported by Ludovic Courtès <ludo@gnu.org>.
6901
6902 2010-04-15  Bruno Haible  <bruno@clisp.org>
6903
6904         openpty: Fix mistake from 2010-03-21.
6905         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6906         Reported by Simon Josefsson.
6907
6908 2010-04-15  Eric Blake  <eblake@redhat.com>
6909
6910         test-forkpty: fix expected signature
6911         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6912         Reported by Simon Josefsson.
6913
6914 2010-04-15  Jim Meyering  <meyering@redhat.com>
6915
6916         maint.mk: texinfo_suffix_re_: correct the default regexp
6917         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6918
6919         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6920         make it configurable via texinfo_suffix_re_.
6921
6922 2010-04-14  Eric Blake  <eblake@redhat.com>
6923
6924         strtok_r: relax license to LGPLv2+
6925         * modules/strtok_r (License): Relax license.
6926         Reported by Matthias Bolte.
6927
6928 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6929
6930         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6931         version 1.4.4 by default instead of requiring the libgcrypt
6932         version used during build.  This makes it possible to use the
6933         application with older but still binary compatible libgcrypt
6934         versions.
6935
6936 2010-04-13  Eric Blake  <eblake@redhat.com>
6937
6938         getopt-gnu: match recent glibc fixes and posix ruling
6939         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6940         '+' handling, when requesting extensions.
6941         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6942         'W;' handling.
6943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6944         * doc/posix-functions/getopt.texi (getopt): Document this.
6945         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6946         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6947         Likewise.
6948
6949         getopt: merge bug fixes from glibc
6950         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6951         diagnostics.  Honor '+:' correctly.  Reject ';'.
6952
6953         getopt-posix: detect MacOS bug
6954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6955         optind when missing a required argument.
6956         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6957         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6958         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6959         Likewise.
6960
6961         getopt-posix: avoid spurious failure on Solaris
6962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6963         an indicator that setting optind=1 is sufficient for reset.
6964
6965         getopt-posix: avoid spurious failure on FreeBSD
6966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6967         in POSIX mode, since the m4 test uses it.
6968
6969         gnulib-tool: silence warning on BSD sh
6970         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6971
6972 2010-04-13  Jim Meyering  <meyering@redhat.com>
6973
6974         doc: users.txt: GNU patch now uses gnulib
6975         * users.txt: Add patch.
6976
6977 2010-04-12  Jim Meyering  <meyering@redhat.com>
6978
6979         maint.mk: generate more concise timing data for syntax-check rules
6980         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6981         " done" from each line that reports a syntax-check test duration.
6982
6983 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6984
6985         git-version-gen: use "git update-index..." rather than "git status"
6986         * build-aux/git-version-gen: Use git update-index --refresh, not
6987         "git status".  With some versions of git, "git status" would fail
6988         to update the index and result in an unwarranted "-dirty" suffix.
6989
6990 2010-04-11  Jim Meyering  <meyering@redhat.com>
6991
6992         openat: correct formatting (no semantic change)
6993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6994         Suggested by Bruno Haible.
6995
6996 2010-04-11  Bruno Haible  <bruno@clisp.org>
6997
6998         Stricter declaration checking in testdirs.
6999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7000         If for_tests is true, augment AM_CPPFLAGS to define
7001         GNULIB_STRICT_CHECKING.
7002         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7003         GNULIB_STRICT_CHECKING is defined, verify that the function is
7004         declared.
7005
7006 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7007             Bruno Haible  <bruno@clisp.org>
7008
7009         libunistring: Improve configure output.
7010         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7011         Don't say "consider installing GNU libunistring" when checking again
7012         with libiconv.
7013
7014 2010-04-11  Bruno Haible  <bruno@clisp.org>
7015
7016         libunistring: Correct value of $LTLIBUNISTRING.
7017         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7018         correct the value of $LTLIBUNISTRING.
7019
7020 2010-04-11  Bruno Haible  <bruno@clisp.org>
7021
7022         havelib: Add static libraries to LIBS in the right order.
7023         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7024         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7025
7026 2010-04-11  Bruno Haible  <bruno@clisp.org>
7027
7028         libunistring: Detect libunistring also when it depends on libiconv.
7029         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7030         the second AC_LIB_HAVE_LINKFLAGS invocation.
7031
7032 2010-04-11  James Youngman  <jay@gnu.org>
7033
7034         close-stream: declare local scalars to be "const"
7035         * lib/close-stream.c (close_stream): Make boolean variables const
7036         to document the fact that we set but do not change them.
7037
7038 2010-04-11  Bruno Haible  <bruno@clisp.org>
7039
7040         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7041
7042 2010-04-11  Jim Meyering  <meyering@redhat.com>
7043
7044         maint.mk: don't include dist-check.mk
7045         * top/maint.mk: Remove bogus include directive.
7046
7047         maint.mk: improve empty-line-at-EOF check
7048         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7049         solution, rather than tail+Perl-based one.  The latter would read
7050         a few kilobytes from the end of each file, and did not handle empty
7051         files properly.
7052
7053         maint.mk: print the elapsed time for each syntax-check rule
7054         * top/maint.mk (sc_m_rules_): Save start time in a file.
7055         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7056         (local-check): Interpose the .z rules
7057
7058 2010-04-11  Jim Meyering  <meyering@redhat.com>
7059
7060         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7061         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7062         empty file with one that ends in an empty line.
7063
7064 2010-04-10  Bruno Haible  <bruno@clisp.org>
7065
7066         mkdir: Make it work on mingw64.
7067         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7068         * lib/mkdir.c: Update comment.
7069         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7070
7071 2010-04-10  Bruno Haible  <bruno@clisp.org>
7072
7073         Don't override improved macro from newer autoconf.
7074         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7075         autoconf >= 2.62.
7076         Reported by Joel E. Denny <jdenny@clemson.edu>.
7077
7078 2010-04-10  Jim Meyering  <meyering@redhat.com>
7079
7080         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7081         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7082
7083         maint.mk: correct a diagnostic
7084         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7085         in diagnostic; now use $prohibit.
7086
7087 2010-04-10  Bruno Haible  <address@hidden>
7088
7089         fchownat: Fix a C++ test error on Solaris 8.
7090         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7091         the function does not exist.
7092
7093 2010-04-10  Bruno Haible  <bruno@clisp.org>
7094
7095         vasnprintf: Add more tests.
7096         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7097         (test_function): Test converting an invalid wide string.
7098
7099         vasnprintf: Correct handling of unconvertible wide string arguments.
7100         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7101         VASNPRINTF.
7102         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7103         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7104         smaller than the expected maximum need for the directive. Set errno to
7105         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7106         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7108         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7109         * modules/vasnprintf (Files): Add m4/printf.m4.
7110         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7111
7112 2010-04-10  Bruno Haible  <bruno@clisp.org>
7113
7114         vasnprintf: Fix crash in %ls directive.
7115         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7116         string is passed as argument to %ls, with no precision and no width.
7117         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7118
7119 2010-04-10  Bruno Haible  <bruno@clisp.org>
7120
7121         vasnprintf: Fix multiple test failures on mingw.
7122         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7123         _snprintf, or snwprintf, not _snwprintf.
7124
7125 2010-04-10  Bruno Haible  <bruno@clisp.org>
7126
7127         write: Fix a C++ test error on mingw.
7128         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7129
7130 2010-04-10  Bruno Haible  <bruno@clisp.org>
7131
7132         vasnprintf test: Reduce code duplication.
7133         * tests/test-vasnprintf.c (test_function): New function, extracted from
7134         test_vasnprintf.
7135         (test_vasnprintf, test_asnprintf): Invoke it.
7136
7137 2010-04-10  Bruno Haible  <bruno@clisp.org>
7138
7139         strnlen: Fix warning in C++ mode on MacOS X.
7140         * lib/string.in.h (strnlen): Use the modern idiom.
7141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7142         defining strnlen as a macro already in <config.h>.
7143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7144         REPLACE_STRNLEN.
7145         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7146         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7147
7148 2010-04-08  James Youngman  <jay@gnu.org>
7149
7150         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7151         the example.
7152
7153 2010-04-09  Jim Meyering  <meyering@redhat.com>
7154
7155         maint.mk: print better diagnostic when there is no $(_hv_file)
7156         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7157         announce that when $(_hv_file) (aka help-version) does not exist.
7158
7159         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7160         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7161         not try to interpret its random input bytes.  Jarno Rajahalme reported
7162         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7163         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7164         (mktempd_): Likewise, just in case.
7165
7166         ftruncate: add two years to projected module removal date: 2012
7167         * m4/ftruncate.m4: Adjust comments.
7168
7169         ftruncate: mark module as obsolete; even MinGW provides it, now
7170         * modules/ftruncate (Status): Obsolete.
7171         (Notice): Say that.
7172         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7174
7175 2010-04-08  Bruno Haible  <bruno@clisp.org>
7176
7177         Fix side effects from tests-related modules.
7178         * modules/dprintf-posix (Comment): New section.
7179         * modules/fprintf-posix (Comment): Likewise.
7180         * modules/obstack-printf-posix (Comment): Likewise.
7181         * modules/printf-posix (Comment): Likewise.
7182         * modules/snprintf-posix (Comment): Likewise.
7183         * modules/sprintf-posix (Comment): Likewise.
7184         * modules/vasnprintf-posix (Comment): Likewise.
7185         * modules/vasprintf-posix (Comment): Likewise.
7186         * modules/vdprintf-posix (Comment): Likewise.
7187         * modules/vfprintf-posix (Comment): Likewise.
7188         * modules/vprintf-posix (Comment): Likewise.
7189         * modules/vsnprintf-posix (Comment): Likewise.
7190         * modules/vsprintf-posix (Comment): Likewise.
7191         * modules/xprintf-posix (Comment): Likewise.
7192         * modules/xvasprintf-posix (Comment): Likewise.
7193         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7194         * modules/floorf-tests (Depends-on): Likewise.
7195         * modules/round-tests (Depends-on): Likewise.
7196         * modules/roundf-tests (Depends-on): Likewise.
7197         * modules/trunc-tests (Depends-on): Likewise.
7198         * modules/truncf-tests (Depends-on): Likewise.
7199         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7200         'fprintf-posix' module is not present.
7201         * tests/test-floorf2.c (check): Likewise.
7202         * tests/test-trunc2.c (check): Likewise.
7203         * tests/test-truncf2.c (check): Likewise.
7204         * tests/test-round2.c (equal): Likewise.
7205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7206
7207 2010-04-07  Karl Berry  <karl@gnu.org>
7208
7209         * config/srclist.txt,
7210         * config/srclistvars.sh,
7211         * config/srclist-update: doc fixes.
7212
7213 2010-04-07  Jim Meyering  <meyering@redhat.com>
7214
7215         maint.mk: add a PATH crosschecking syntax-check rule
7216         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7217         Useful if you use a test like the one in help-version (coreutils,
7218         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7219         printed by prog --version.
7220
7221 2010-04-06  Bruno Haible  <bruno@clisp.org>
7222
7223         Fix link error on mingw.
7224         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7225         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7226
7227 2010-04-06  Bruno Haible  <bruno@clisp.org>
7228
7229         Assume rmdir exists.
7230         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7231
7232 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7233
7234         doc: update users.txt
7235         * users.txt: Add gcal.
7236
7237 2010-04-06  Jim Meyering  <meyering@redhat.com>
7238
7239         init.sh: simply unset TMPDIR rather than risking env -i
7240         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7241         although it probably works fine on all Unix-based systems, some
7242         systems (Cygwin?) cannot tolerate a totally cleared environment.
7243         Suggestion from Eric Blake.
7244
7245 2010-04-06  Jim Meyering  <meyering@redhat.com>
7246
7247         init.sh: portability fix: use env's POSIX-specified -i option not -u
7248         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7249         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7250
7251 2010-04-05  Bruno Haible  <bruno@clisp.org>
7252
7253         btowc: Work around Cygwin 1.7.2 bug.
7254         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7255         does not map NUL to 0.
7256         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7257
7258 2010-04-05  Bruno Haible  <bruno@clisp.org>
7259
7260         Make the multithread modules work on Cygwin 1.7.2.
7261         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7262         imported symbols can be declared weak, so that it returns "no" on
7263         Cygwin 1.7.2.
7264
7265 2010-04-05  Bruno Haible  <bruno@clisp.org>
7266
7267         Use the module 'strncat'.
7268         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7269
7270         Tests for module 'strncat'.
7271         * modules/strncat-tests: New file.
7272         * tests/test-strncat.c: New file.
7273
7274         New module 'strncat'.
7275         * lib/string.in.h (strncat): New declaration.
7276         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7277         * m4/strncat.m4: New file, based on m4/memchr.m4.
7278         * modules/strncat: New file.
7279         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7280         is declared.
7281         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7282         REPLACE_STRNCAT.
7283         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7284         REPLACE_STRNCAT.
7285         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7286         module.
7287         * tests/test-string-c++.cc: Check signature of strncat.
7288
7289 2010-04-05  Jim Meyering  <meyering@redhat.com>
7290
7291         xstrtoumax-tests: convert to use init.sh
7292         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7293         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7294         Use Exit, not exit.
7295         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7296
7297         xstrtoimax-tests: convert to use init.sh
7298         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7299         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7300         Use Exit, not exit.
7301         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7302
7303 2010-04-05  Bruno Haible  <bruno@clisp.org>
7304
7305         sys_socket: Avoid #define replacements in C++ mode.
7306         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7307         warning to the function if possible, rather than #defining the symbol
7308         to a dysfunctional alias.
7309
7310 2010-04-05  Bruno Haible  <bruno@clisp.org>
7311
7312         fseeko: Fix C++ test error on mingw.
7313         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7314         gl_FUNC_FSEEKO.
7315         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7316         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7317         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7318         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7319
7320 2010-04-05  Bruno Haible  <bruno@clisp.org>
7321
7322         duplocale: Improve test output.
7323         * tests/test-duplocale.c (main): Print reason for skipped test.
7324
7325 2010-04-05  Bruno Haible  <bruno@clisp.org>
7326
7327         Assume rmdir exists.
7328         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7329         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7330
7331 2010-04-05  Bruno Haible  <bruno@clisp.org>
7332
7333         Fix link error on Solaris 8 with cc.
7334         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7335
7336 2010-04-05  Bruno Haible  <bruno@clisp.org>
7337
7338         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7339         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7340
7341 2010-04-05  Bruno Haible  <bruno@clisp.org>
7342
7343         vasprintf: Update documentation.
7344         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7345
7346 2010-04-05  Bruno Haible  <bruno@clisp.org>
7347
7348         ptsname: Improve test.
7349         * tests/test-ptsname.c (main): Also try the various master names of BSD
7350         systems.
7351
7352 2010-04-05  Bruno Haible  <bruno@clisp.org>
7353
7354         memchr: Avoid a possible C++ test error.
7355         * lib/string.in.h (memchr): Provide declaration if function is missing.
7356         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7357         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7359         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7360
7361 2010-04-05  Bruno Haible  <bruno@clisp.org>
7362
7363         strtok_r: Improve idiom.
7364         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7365         AC_LIBOBJ is used.
7366
7367 2010-04-05  Bruno Haible  <bruno@clisp.org>
7368
7369         strdup: Improve idiom.
7370         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7371         AC_LIBOBJ is used.
7372         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7373         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7374         when AC_LIBOBJ is used.
7375
7376 2010-04-05  Bruno Haible  <bruno@clisp.org>
7377
7378         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7379         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7380         don't set REPLACE_MBSINIT to 1.
7381         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7382         don't set REPLACE_MBRTOWC to 1.
7383         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7384         exist, don't set REPLACE_MBSRTOWCS to 1.
7385         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7386         exist, don't set REPLACE_MBSNRTOWCS to 1.
7387         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7388         don't set REPLACE_WCRTOMB to 1.
7389         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7390         exist, don't set REPLACE_WCSRTOMBS to 1.
7391         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7392         exist, don't set REPLACE_WCSNRTOMBS to 1.
7393
7394 2010-04-05  Bruno Haible  <bruno@clisp.org>
7395
7396         ldexpl: Improve idiom.
7397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7398         make sure to set HAVE_DECL_LDEXPL to 0.
7399
7400 2010-04-05  Jim Meyering  <meyering@redhat.com>
7401
7402         xstrtol-tests: convert to use init.sh
7403         * modules/xstrtol-tests (Files): Add tests/init.sh.
7404         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7405         Use Exit, not exit.
7406         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7407
7408         atexit-tests: convert to use init.sh
7409         * modules/atexit-tests (Files): Add tests/init.sh.
7410         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7411         Use Exit, not exit.
7412         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7413
7414         init.sh: fix typo
7415         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7416
7417         init.sh: make it easier for a test script to write to the tty, ...
7418         when using automake's parallel-tests mode.
7419         * tests/init.sh (stderr_fileno_): Define overridable variable.
7420         (warn_): New function, to use it.
7421         (fail_, skip_, framework_failure_): Use warn_.
7422
7423 2010-04-04  Bruno Haible  <bruno@clisp.org>
7424
7425         btowc: Avoid warning.
7426         * lib/btowc.c: Include <stdlib.h>.
7427         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7428
7429 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7430             Bruno Haible  <bruno@clisp.org>
7431
7432         wchar: Port to NetBSD 1.5.
7433         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7434         * lib/wctype.in.h (WEOF): Likewise.
7435
7436 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7437             Bruno Haible  <bruno@clisp.org>
7438
7439         Port extended stdio to NetBSD 1.5.
7440         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7441         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7442         older.
7443
7444 2010-04-04  Bruno Haible  <bruno@clisp.org>
7445
7446         string: Remove unused substitution.
7447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7448         HAVE_DECL_STRERROR.
7449         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7450
7451 2010-04-04  Bruno Haible  <bruno@clisp.org>
7452
7453         strtod: Avoid a possible C++ test error.
7454         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7455         set REPLACE_STRTOD.
7456
7457 2010-04-04  Bruno Haible  <bruno@clisp.org>
7458
7459         strerror: Update documentation.
7460         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7461
7462 2010-04-04  Bruno Haible  <bruno@clisp.org>
7463
7464         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7465         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7466         _GL_CXXALIAS_SYS_CAST.
7467
7468 2010-04-04  Bruno Haible  <bruno@clisp.org>
7469
7470         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7471         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7472         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7473         REPLACE_FREXPL to 1.
7474         * doc/posix-functions/frexpl.texi: Update documentation.
7475
7476 2010-04-04  Bruno Haible  <bruno@clisp.org>
7477
7478         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7479         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7480
7481 2010-04-04  Bruno Haible  <bruno@clisp.org>
7482
7483         Implement nanosleep for native Windows.
7484         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7485
7486 2010-04-04  Bruno Haible  <bruno@clisp.org>
7487
7488         math: Fix some C++ test errors on Solaris 8.
7489         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7490
7491 2010-04-04  Bruno Haible  <bruno@clisp.org>
7492
7493         math: Fix some C++ test errors on Cygwin.
7494         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7495         truncl): Provide declaration if the system does not have it.
7496         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7497         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7498         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7499         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7500         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7501         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7502         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7503         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7504         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7505         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7506         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7507         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7508         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7509         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7510         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7511         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7513         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7514         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7515         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7516         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7517         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7518
7519 2010-04-04  Bruno Haible  <bruno@clisp.org>
7520
7521         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7522         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7523         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7524         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7525         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7526         * m4/isinf.m4 (gl_ISINF): Likewise.
7527         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7528
7529 2010-04-04  Bruno Haible  <bruno@clisp.org>
7530
7531         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7532         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7533
7534 2010-04-04  Bruno Haible  <bruno@clisp.org>
7535
7536         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7537         * modules/tmpfile (configure.ac): Update.
7538
7539         tmpfile: Fix C++ test error on mingw.
7540         * lib/stdio.in.h (tmpfile): New declaration.
7541         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7542         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7543         * modules/tmpfile (Depends-on): Add stdio.
7544         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7545         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7546         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7547         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7548         REPLACE_TMPFILE.
7549         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7550
7551 2010-04-04  Bruno Haible  <bruno@clisp.org>
7552
7553         ioctl: Fix C++ test error on mingw.
7554         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7555         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7556         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7557
7558 2010-04-03  Bruno Haible  <bruno@clisp.org>
7559
7560         wcwidth: Fix C++ test error on mingw.
7561         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7563         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7564
7565 2010-04-03  Bruno Haible  <bruno@clisp.org>
7566
7567         nanosleep: Fix C++ test error on mingw.
7568         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7569         * lib/time.in.h (nanosleep): Use modern idiom.
7570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7571         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7572         REPLACE_NANOSLEEP to 1.
7573         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7574         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7575
7576 2010-04-03  Bruno Haible  <bruno@clisp.org>
7577
7578         strptime: Fix C++ test error on mingw.
7579         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7580         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7581         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7582         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7583         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7584         not REPLACE_STRPTIME.
7585         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7586         REPLACE_STRPTIME.
7587
7588 2010-04-03  Bruno Haible  <bruno@clisp.org>
7589
7590         timegm: Fix C++ test error on mingw.
7591         * lib/time.in.h (timegm): Use modern idiom.
7592         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7593         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7595         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7596
7597 2010-04-03  Bruno Haible  <bruno@clisp.org>
7598
7599         timegm: Assume declaration if function exists.
7600         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7601         if it exists. Don't clobber ac_cv_func_timegm.
7602
7603 2010-04-03  Bruno Haible  <bruno@clisp.org>
7604
7605         time_r: Fix C++ test error on mingw.
7606         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7607         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7608         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7609         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7610         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7611
7612 2010-04-03  Bruno Haible  <bruno@clisp.org>
7613
7614         time_r: Minor updates.
7615         * modules/time_r (Description): Mention the provided functions.
7616         * lib/time_r.c: Don't include <string.h>.
7617         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7618         * doc/posix-functions/localtime_r.texi: Likewise.
7619
7620 2010-04-03  Bruno Haible  <bruno@clisp.org>
7621
7622         time: Fix regression introduced on 2010-03-08.
7623         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7624         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7625
7626 2010-04-03  Jim Meyering  <meyering@redhat.com>
7627
7628         maint.mk: don't silently disable project-specific syntax-check rules
7629         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7630         that they need to convert their project-specific syntax-check rules
7631         to use the new _sc_search_regexp.
7632
7633 2010-04-03  Bruno Haible  <bruno@clisp.org>
7634
7635         fchdir: Fix regression introduced on 2010-03-08.
7636         * lib/unistd.in.h (fchdir): Fix declaration.
7637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7639         REPLACE_FCHDIR.
7640         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7641         REPLACE_FCHDIR.
7642
7643 2010-04-03  Bruno Haible  <bruno@clisp.org>
7644
7645         getpagesize: Fix C++ test error on mingw.
7646         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7647         system does not declare the function.
7648         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7649         declared.
7650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7651         HAVE_DECL_GETPAGESIZE.
7652         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7653
7654 2010-04-03  Bruno Haible  <bruno@clisp.org>
7655
7656         stdio: Make C++ tests work on mingw.
7657         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7658         does not declare the function.
7659
7660 2010-04-03  Bruno Haible  <bruno@clisp.org>
7661
7662         ftello: Fix C++ test error on mingw.
7663         * lib/stdio.in.h (ftello): Use modern idiom.
7664         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7665         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7666         is missing and that it needs to be replaced.
7667         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7669         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7670
7671 2010-04-03  Bruno Haible  <bruno@clisp.org>
7672
7673         fseeko: Fix C++ test error on mingw.
7674         * lib/stdio.in.h (fseeko): Use modern idiom.
7675         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7677         is missing and that it needs to be replaced.
7678         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7680         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7681
7682 2010-04-03  Bruno Haible  <bruno@clisp.org>
7683
7684         mkstemp: Fix C++ test error on mingw.
7685         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7686         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7687         function is missing and that it needs to be replaced.
7688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7689         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7690
7691 2010-04-03  Bruno Haible  <bruno@clisp.org>
7692
7693         stpncpy: Fix C++ test error on mingw.
7694         * lib/string.in.h (stpncpy): Use modern idiom.
7695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7696         function is missing and that it needs to be replaced.
7697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7698         REPLACE_STPNCPY.
7699         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7700
7701 2010-04-03  Bruno Haible  <bruno@clisp.org>
7702
7703         sys_stat: Fix C++ test error on mingw.
7704         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7705         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7706
7707 2010-04-03  Bruno Haible  <bruno@clisp.org>
7708
7709         pty: Update doc.
7710         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7711
7712 2010-04-03  Bruno Haible  <bruno@clisp.org>
7713
7714         unistd: Fix C++ test error on mingw.
7715         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7716
7717 2010-04-03  Bruno Haible  <bruno@clisp.org>
7718
7719         Update doc regarding mingw.
7720         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7721         * doc/glibc-functions/login_tty.texi: Likewise.
7722         * doc/glibc-functions/forkpty.texi: Likewise.
7723
7724 2010-04-03  Bruno Haible  <bruno@clisp.org>
7725
7726         stdlib: Avoid compilation failure of c-strtold on mingw.
7727         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7728
7729 2010-04-03  Bruno Haible  <bruno@clisp.org>
7730
7731         locale: Make C++ tests work on Cygwin and mingw.
7732         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7733         cannot provide the function.
7734         Reported by Simon Josefsson.
7735
7736 2010-04-03  Bruno Haible  <bruno@clisp.org>
7737
7738         localename: Port to MacOS X 10.6.
7739         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7740         memory layout of the locales in MacOS X 10.6 as well.
7741         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7742
7743 2010-04-02  Bruno Haible  <bruno@clisp.org>
7744
7745         gnulib-tool: Ensure that long-running tests are executed last.
7746         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7747         running tests after the one for the other tests.
7748
7749 2010-04-02  Bruno Haible  <bruno@clisp.org>
7750
7751         gnulib-tool: Ensure the tests in the main directory are executed first.
7752         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7753         start with the current directory.
7754
7755 2010-04-02  Bruno Haible  <bruno@clisp.org>
7756
7757         Tests for module 'havelib', moved here from GNU gettext.
7758         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7759         modifications.
7760         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7761         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7762         with modifications.
7763         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7764         modifications.
7765         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7766         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7767         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7768         with modifications.
7769         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7770         with modifications.
7771         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7772         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7773         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7774         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7775         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7776         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7777         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7778         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7779         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7780         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7781         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7782         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7783         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7784         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7785         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7786         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7787         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7788         with modifications.
7789         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7790         with modifications.
7791         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7792         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7793         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7794         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7795         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7796         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7797         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7798         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7799         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7800         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7801         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7802         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7803         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7804         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7805         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7806         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7807         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7808         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7809         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7810         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7811         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7812         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7813         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7814         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7815         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7816         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7817         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7818         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7819         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7820         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7821         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7822         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7823         * tests/havelib/rpathx/rpathx.c: New file, from
7824         gettext/autoconf-lib-link.
7825         * tests/havelib/rpathx/Makefile.am: New file, from
7826         gettext/autoconf-lib-link.
7827         * tests/havelib/rpathx/configure.ac: New file, from
7828         gettext/autoconf-lib-link with modifications.
7829         * tests/havelib/rpathy/rpathy.c: New file, from
7830         gettext/autoconf-lib-link.
7831         * tests/havelib/rpathy/Makefile.am: New file, from
7832         gettext/autoconf-lib-link.
7833         * tests/havelib/rpathy/configure.ac: New file, from
7834         gettext/autoconf-lib-link with modifications.
7835         * tests/havelib/rpathz/rpathz.c: New file, from
7836         gettext/autoconf-lib-link.
7837         * tests/havelib/rpathz/Makefile.am: New file, from
7838         gettext/autoconf-lib-link.
7839         * tests/havelib/rpathz/configure.ac: New file, from
7840         gettext/autoconf-lib-link with modifications.
7841         * tests/havelib/rpathlx/usex.c: New file, from
7842         gettext/autoconf-lib-link.
7843         * tests/havelib/rpathlx/Makefile.am: New file, from
7844         gettext/autoconf-lib-link.
7845         * tests/havelib/rpathlx/configure.ac: New file, from
7846         gettext/autoconf-lib-link with modifications.
7847         * tests/havelib/rpathly/usey.c: New file, from
7848         gettext/autoconf-lib-link.
7849         * tests/havelib/rpathly/Makefile.am: New file, from
7850         gettext/autoconf-lib-link.
7851         * tests/havelib/rpathly/configure.ac: New file, from
7852         gettext/autoconf-lib-link with modifications.
7853         * tests/havelib/rpathlz/usez.c: New file, from
7854         gettext/autoconf-lib-link.
7855         * tests/havelib/rpathlz/Makefile.am: New file, from
7856         gettext/autoconf-lib-link.
7857         * tests/havelib/rpathlz/configure.ac: New file, from
7858         gettext/autoconf-lib-link with modifications.
7859         * tests/havelib/rpathlyx/usey.c: New file, from
7860         gettext/autoconf-lib-link.
7861         * tests/havelib/rpathlyx/Makefile.am: New file, from
7862         gettext/autoconf-lib-link.
7863         * tests/havelib/rpathlyx/configure.ac: New file, from
7864         gettext/autoconf-lib-link with modifications.
7865         * tests/havelib/rpathlzyx/usez.c: New file, from
7866         gettext/autoconf-lib-link.
7867         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7868         gettext/autoconf-lib-link.
7869         * tests/havelib/rpathlzyx/configure.ac: New file, from
7870         gettext/autoconf-lib-link with modifications.
7871         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7872         with modifications.
7873
7874 2010-04-02  Bruno Haible  <bruno@clisp.org>
7875
7876         gnulib-tool: Create distributed built sources also for the tests.
7877         * gnulib-tool (func_create_testdir): Also generate distributed built
7878         sources in the tests directory.
7879
7880 2010-04-02  Bruno Haible  <bruno@clisp.org>
7881
7882         gnulib-tool: Obey user's environment variables.
7883         * gnulib-tool (func_create_testdir): When creating built sources,
7884         respect the environment variables for autoconf, automake, etc. given by
7885         the user.
7886
7887 2010-04-02  Bruno Haible  <bruno@clisp.org>
7888
7889         gnulib-tool: Provide the value of --m4-base to modules.
7890         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7891         of gl_m4_base.
7892
7893 2010-04-02  Eric Blake  <eblake@redhat.com>
7894
7895         maint.mk: fix some fallout
7896         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7897         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7898
7899 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7900
7901         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7902         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7903         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7904         (sc_cast_of_x_alloc_return_value): Likewise.
7905         (sc_cast_of_alloca_return_value): Likewise.
7906         (sc_space_tab): Likewise.
7907         (sc_prohibit_atoi_atof): Likewise.
7908         (sc_prohibit_magic_number_exit): Likewise.
7909         (sc_error_exit_success): Likewise.
7910         (sc_file_system): Likewise.
7911         (sc_prohibit_have_config_h): Likewise.
7912         (sc_require_config_h): Likewise.
7913         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7914         (sc_obsolete_symbols): Likewise.
7915         (sc_changelog): Likewise.
7916         (sc_program_name): Likewise.
7917         (sc_the_the): Likewise.
7918         (sc_trailing_blank): Likewise.
7919         (sc_two_space_separator_in_usage): Likewise.
7920         (sc_useless_cpp_parens): Likewise.
7921         (sc_GPL_version): Likewise.
7922         (sc_GFDL_version): Likewise.
7923         (sc_texinfo_acronym): Likewise.
7924         (sc_prohibit_cvs_keyword): Likewise.
7925         (sc_prohibit_stat_st_blocks): Likewise.
7926         (sc_prohibit_S_IS_definition): Likewise.
7927         (sc_redundant_const): Likewise.
7928         (sc_makefile_TAB_only_indentation): Likewise.
7929         (sc_m4_quote_check): Likewise.
7930         (sc_makefile_path_separator_check): Likewise.
7931         (sc_copyright_check): Likewise.
7932         (sc_Wundef_boolean): Likewise.
7933         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7934
7935         maint.mk: match 0 or more whitespace-before-function-call '('
7936         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7937         that have zero or two-and-more spaces between the function name
7938         and the open parenthesis.
7939         (sc_error_message_warn_fatal): Likewise.
7940         (sc_error_message_uppercase): Likewise.
7941         (sc_error_message_period): Likewise.
7942
7943 2010-03-31  Eric Blake  <eblake@redhat.com>
7944
7945         maint.mk: check for [ as well as test
7946         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7947         Based on a libvirt report by Matthias Bolte.
7948
7949         gnumakefile: don't squelch _version output
7950         * top/GNUmakefile (_version): Create one-shot dependency rather
7951         than using $(shell) when version must be regenerated.
7952         (_autoreconf): Run verbosely, by default.
7953
7954         sys_time: avoid compiler warnings
7955         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7956         unconditional, fixing regression from 2010-03-29.
7957         Reported by Simon Josefsson.
7958
7959 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7960
7961         maint.mk: s/_header_without_use/_sc_header_without_use/
7962         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7963         (sc_prohibit_assert_without_use): Use the new name.
7964         (sc_prohibit_close_stream_without_use): Likewise.
7965         (sc_prohibit_getopt_without_use): Likewise.
7966         (sc_prohibit_quotearg_without_use): Likewise.
7967         (sc_prohibit_quote_without_use): Likewise.
7968         (sc_prohibit_long_options_without_use): Likewise.
7969         (sc_prohibit_inttostr_without_use): Likewise.
7970         (sc_prohibit_ignore_value_without_use): Likewise.
7971         (sc_prohibit_error_without_use): Likewise.
7972         (sc_prohibit_xalloc_without_use): Likewise.
7973         (sc_prohibit_hash_without_use): Likewise.
7974         (sc_prohibit_hash_pjw_without_use): Likewise.
7975         (sc_prohibit_safe_read_without_use): Likewise.
7976         (sc_prohibit_argmatch_without_use): Likewise.
7977         (sc_prohibit_canonicalize_without_use): Likewise.
7978         (sc_prohibit_root_dev_ino_without_use): Likewise.
7979         (sc_prohibit_openat_without_use): Likewise.
7980         (sc_prohibit_c_ctype_without_use): Likewise.
7981         (sc_prohibit_signal_without_use): Likewise.
7982         (sc_prohibit_intprops_without_use): Likewise.
7983
7984 2010-03-30  Eric Blake  <eblake@redhat.com>
7985
7986         maint: improve module indicators
7987         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7988         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7989         columns, and avoid extra macro expansion.
7990
7991         fdopendir: work around FreeBSD bug
7992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7994         * modules/dirent (Makefile.am): Substitute it.
7995         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7996         declaration.
7997         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7998         fix.
7999         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8000
8001 2010-03-29  Bruno Haible  <bruno@clisp.org>
8002
8003         Emit #pragma system_header after the inclusion guard, not before.
8004         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8005         guard that spans the entire file, not before. This enables an
8006         optimization in GCC's preprocessor.
8007         * lib/ctype.in.h: Likewise.
8008         * lib/dirent.in.h: Likewise.
8009         * lib/errno.in.h: Likewise.
8010         * lib/float.in.h: Likewise.
8011         * lib/getopt.in.h: Likewise.
8012         * lib/iconv.in.h: Likewise.
8013         * lib/langinfo.in.h: Likewise.
8014         * lib/locale.in.h: Likewise.
8015         * lib/math.in.h: Likewise.
8016         * lib/netdb.in.h: Likewise.
8017         * lib/netinet_in.in.h: Likewise.
8018         * lib/pty.in.h: Likewise.
8019         * lib/sched.in.h: Likewise.
8020         * lib/se-selinux.in.h: Likewise.
8021         * lib/search.in.h: Likewise.
8022         * lib/spawn.in.h: Likewise.
8023         * lib/stdarg.in.h: Likewise.
8024         * lib/stdint.in.h: Likewise.
8025         * lib/string.in.h: Likewise.
8026         * lib/strings.in.h: Likewise.
8027         * lib/sys_file.in.h: Likewise.
8028         * lib/sys_ioctl.in.h: Likewise.
8029         * lib/sys_time.in.h: Likewise.
8030         * lib/sys_times.in.h: Likewise.
8031         * lib/sys_utsname.in.h: Likewise.
8032         * lib/sys_wait.in.h: Likewise.
8033         * lib/sysexits.in.h: Likewise.
8034         * lib/wctype.in.h: Likewise.
8035
8036 2010-03-28  James Youngman  <jay@gnu.org>
8037
8038         save-cwd: don't leak a file descriptor when the caller execs.
8039         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8040         saved file descriptor.
8041         * modules/save-cwd (Depends-on): Depend on cloexec.
8042
8043 2010-03-29  Bruno Haible  <bruno@clisp.org>
8044
8045         Remove vestiges of fts-lgpl module.
8046         * lib/fts_.h: Assume GNULIB_FTS is 1.
8047         * lib/fts.c: Likewise.
8048         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8049
8050 2010-03-28  Bruno Haible  <bruno@clisp.org>
8051
8052         Fix definition of tests witness macro.
8053         * gnulib-tool (func_import): Fix definition of witness macro.
8054
8055 2010-03-28  Bruno Haible  <bruno@clisp.org>
8056
8057         Fix ioctl's protoype on glibc systems.
8058         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8059         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8060         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8061         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8062         signature. If not, arrange to replace the ioctl function.
8063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8064         REPLACE_IOCTL.
8065         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8066         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8067         Reported by Ludovic Courtès <ludo@gnu.org>.
8068
8069 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8070
8071         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8072         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8073         made it so grep -r --include=GLOB* ... did not work.
8074
8075 2010-03-26  Jim Meyering  <meyering@redhat.com>
8076             Eric Blake  <eblake@redhat.com>
8077
8078         maint.mk: prohibit use of test's -o and -a operators
8079         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8080
8081 2010-03-28  Bruno Haible  <bruno@clisp.org>
8082
8083         Remove unused GNULIB_XYZ macro definitions.
8084         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8085         invocation.
8086
8087 2010-03-28  Bruno Haible  <bruno@clisp.org>
8088
8089         Mark privileged tests modules.
8090         * modules/idpriv-drop-tests (Status): New section.
8091         * modules/idpriv-droptemp-tests (Status): New section.
8092
8093 2010-03-28  Bruno Haible  <bruno@clisp.org>
8094
8095         Split C++ tests into separate tests modules.
8096         * modules/dirent-c++-tests: New file, extracted from
8097         modules/dirent-tests.
8098         * modules/dirent-tests: Depend on it.
8099         * modules/fcntl-h-c++-tests: New file, extracted from
8100         modules/fcntl-h-tests.
8101         * modules/fcntl-h-tests: Depend on it.
8102         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8103         * modules/glob-tests: Depend on it.
8104         * modules/iconv-h-c++-tests: New file, extracted from
8105         modules/iconv-h-tests.
8106         * modules/iconv-h-tests: Depend on it.
8107         * modules/langinfo-c++-tests: New file, extracted from
8108         modules/langinfo-tests.
8109         * modules/langinfo-tests: Depend on it.
8110         * modules/locale-c++-tests: New file, extracted from
8111         modules/locale-tests.
8112         * modules/locale-tests: Depend on it.
8113         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8114         * modules/math-tests: Depend on it.
8115         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8116         * modules/pty-tests: Depend on it.
8117         * modules/search-c++-tests: New file, extracted from
8118         modules/search-tests.
8119         * modules/search-tests: Depend on it.
8120         * modules/signal-c++-tests: New file, extracted from
8121         modules/signal-tests.
8122         * modules/signal-tests: Depend on it.
8123         * modules/spawn-c++-tests: New file, extracted from
8124         modules/spawn-tests.
8125         * modules/spawn-tests: Depend on it.
8126         * modules/stdio-c++-tests: New file, extracted from
8127         modules/stdio-tests.
8128         * modules/stdio-tests: Depend on it.
8129         * modules/stdlib-c++-tests: New file, extracted from
8130         modules/stdlib-tests.
8131         * modules/stdlib-tests: Depend on it.
8132         * modules/string-c++-tests: New file, extracted from
8133         modules/string-tests.
8134         * modules/string-tests: Depend on it.
8135         * modules/sys_ioctl-c++-tests: New file, extracted from
8136         modules/sys_ioctl-tests.
8137         * modules/sys_ioctl-tests: Depend on it.
8138         * modules/sys_select-c++-tests: New file, extracted from
8139         modules/sys_select-tests.
8140         * modules/sys_select-tests: Depend on it.
8141         * modules/sys_socket-c++-tests: New file, extracted from
8142         modules/sys_socket-tests.
8143         * modules/sys_socket-tests: Depend on it.
8144         * modules/sys_stat-c++-tests: New file, extracted from
8145         modules/sys_stat-tests.
8146         * modules/sys_stat-tests: Depend on it.
8147         * modules/sys_time-c++-tests: New file, extracted from
8148         modules/sys_time-tests.
8149         * modules/sys_time-tests: Depend on it.
8150         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8151         * modules/time-tests: Depend on it.
8152         * modules/unistd-c++-tests: New file, extracted from
8153         modules/unistd-tests.
8154         * modules/unistd-tests: Depend on it.
8155         * modules/wchar-c++-tests: New file, extracted from
8156         modules/wchar-tests.
8157         * modules/wchar-tests: Depend on it.
8158         * modules/wctype-c++-tests: New file, extracted from
8159         modules/wctype-tests.
8160         * modules/wctype-tests: Depend on it.
8161         Reported by Simon Josefsson.
8162
8163 2010-03-28  Bruno Haible  <bruno@clisp.org>
8164
8165         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8166         * gnulib-tool (func_exists_module): New function, extracted from
8167         func_verify_module.
8168         (func_verify_module): Use it.
8169         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8170         'foo' only if 'foo' exists.
8171         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8172         module.
8173
8174 2010-03-28  Bruno Haible  <bruno@clisp.org>
8175
8176         gnulib-tool: Add support for special categories of tests.
8177         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8178         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8179         (func_usage): Document them.
8180         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8181         inc_unportable_tests, inc_all_tests): New variables.
8182         (func_acceptable): Consider these variables.
8183         (func_modules_transitive_closure): Make it work when the 'Status' field
8184         consists of multiple words.
8185         (func_import): Store and restore the values of inc_cxx_tests,
8186         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8187         inc_all_tests in gnulib-comp.m4.
8188         (func_create_testdir): Set inc_all_tests to true.
8189         * doc/gnulib.texi (Extra tests modules): New section.
8190         Suggested by Jim Meyering.
8191
8192 2010-03-28  Bruno Haible  <bruno@clisp.org>
8193
8194         ansi-c++-opt: Allow turning off the C++ build by default.
8195         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8196         gl_CXX_CHOICE_DEFAULT_NO is defined.
8197         Requested by Eric Blake.
8198
8199 2010-03-28  Bruno Haible  <bruno@clisp.org>
8200
8201         unistd: Avoid #define replacements in C++ mode.
8202         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8203         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8204         setsockopt, shutdown, select): In C++, attach a warning to the function
8205         if possible, rather than #defining the symbol to a dysfunctional alias.
8206         Reported by John W. Eaton <jwe@gnu.org>.
8207
8208 2010-03-28  Bruno Haible  <bruno@clisp.org>
8209
8210         Fix link errors on mingw.
8211         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8212         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8213         $(LIBSOCKET).
8214         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8215         $(LIBSOCKET).
8216
8217 2010-03-28  Bruno Haible  <bruno@clisp.org>
8218             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8219
8220         lib-ignore: Determine different options for different compilers.
8221         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8222         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8223         Add comments.
8224         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8225         * NEWS: Mention the change.
8226
8227 2010-03-27  Bruno Haible  <bruno@clisp.org>
8228
8229         Remove unused GNULIB_XYZ macro definitions.
8230         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8231         * modules/fseek (configure.ac): Likewise.
8232         * modules/ioctl (configure.ac): Likewise.
8233         * modules/open (configure.ac): Likewise.
8234         * modules/stdlib-safer (configure.ac): Likewise.
8235
8236 2010-03-27  Bruno Haible  <bruno@clisp.org>
8237
8238         Add a remark about certain modules.
8239         * modules/malloc (Comment): New section.
8240         * modules/realloc (Comment): Likewise.
8241         * modules/sigpipe (Comment): Likewise.
8242
8243 2010-03-27  Bruno Haible  <bruno@clisp.org>
8244
8245         Resolve conflict between the two kinds of module indicators.
8246         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8247         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8248         * modules/canonicalize (configure.ac): Invoke
8249         gl_MODULE_INDICATOR_FOR_TESTS.
8250         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8251         GNULIB_XYZ.
8252         * tests/test-dirent-c++.cc: Likewise.
8253         * tests/test-dirent-safer.c: Likewise.
8254         * tests/test-dup2.c: Likewise.
8255         * tests/test-fchdir.c: Likewise.
8256         * tests/test-fcntl-h-c++.cc: Likewise.
8257         * tests/test-getopt.c: Likewise.
8258         * tests/test-getopt.h: Likewise.
8259         * tests/test-langinfo-c++.cc: Likewise.
8260         * tests/test-locale-c++.cc: Likewise.
8261         * tests/test-math-c++.cc: Likewise.
8262         * tests/test-pty-c++.cc: Likewise.
8263         * tests/test-search-c++.cc: Likewise.
8264         * tests/test-signal-c++.cc: Likewise.
8265         * tests/test-spawn-c++.cc: Likewise.
8266         * tests/test-stdio-c++.cc: Likewise.
8267         * tests/test-stdlib-c++.cc: Likewise.
8268         * tests/test-string-c++.cc: Likewise.
8269         * tests/test-sys_ioctl-c++.cc: Likewise.
8270         * tests/test-sys_select-c++.cc: Likewise.
8271         * tests/test-sys_socket-c++.cc: Likewise.
8272         * tests/test-sys_stat-c++.cc: Likewise.
8273         * tests/test-sys_time-c++.cc: Likewise.
8274         * tests/test-time-c++.cc: Likewise.
8275         * tests/test-unistd-c++.cc: Likewise.
8276         * tests/test-wchar-c++.cc: Likewise.
8277         * tests/uninorm/test-u8-nfc.c: Likewise.
8278         * tests/uninorm/test-u8-nfd.c: Likewise.
8279         * tests/uninorm/test-u8-nfkc.c: Likewise.
8280         * tests/uninorm/test-u8-nfkd.c: Likewise.
8281         * tests/uninorm/test-u16-nfc.c: Likewise.
8282         * tests/uninorm/test-u16-nfd.c: Likewise.
8283         * tests/uninorm/test-u16-nfkc.c: Likewise.
8284         * tests/uninorm/test-u16-nfkd.c: Likewise.
8285         * tests/uninorm/test-u32-nfc.c: Likewise.
8286         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8287         * tests/uninorm/test-u32-nfd.c: Likewise.
8288         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8289         * tests/uninorm/test-u32-nfkc.c: Likewise.
8290         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8291         * tests/uninorm/test-u32-nfkd.c: Likewise.
8292         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8293         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8294
8295 2010-03-27  Bruno Haible  <bruno@clisp.org>
8296
8297         Distinguish two kinds of module indicators.
8298         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8299         gl_MODULE_INDICATOR.
8300         (gl_MODULE_INDICATOR): New macro.
8301         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8302         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8303         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8304         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8305         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8306         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8307         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8308         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8309         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8310         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8311         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8312         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8314         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8315         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8316         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8317         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8318         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8319         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8320         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8321         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8322         * modules/cloexec (configure.ac): Likewise.
8323         * modules/getopt-gnu (configure.ac): Likewise.
8324         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8325         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8326         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8327         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8328
8329 2010-03-27  Bruno Haible  <bruno@clisp.org>
8330
8331         New module description field 'Comment'.
8332         * gnulib-tool: New option --extract-comment.
8333         (func_usage): Document it.
8334         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8335         (func_get_comment): New function.
8336         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8337
8338 2010-03-27  Bruno Haible  <bruno@clisp.org>
8339
8340         Addendum to 2010-02-07 commit.
8341         * gnulib-tool (func_usage): Document --extract-applicability option.
8342
8343 2010-03-27  Bruno Haible  <bruno@clisp.org>
8344
8345         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8346         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8347         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8348         rather than link errors.
8349
8350 2010-03-27  Bruno Haible  <bruno@clisp.org>
8351
8352         Avoid side effects from tests-related modules on the compilation of lib.
8353         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8354         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8355         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8356         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8357         macro.
8358         (func_import): Define a witness macro. Assign it a value that depends
8359         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8360         tests-related modules.
8361         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8362         Reported by Jim Meyering.
8363
8364 2010-03-27  Bruno Haible  <bruno@clisp.org>
8365
8366         Factorize common .m4 code.
8367         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8368         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8369         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8370         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8371         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8372         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8373         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8374         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8375         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8376         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8377         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8378         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8379         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8380         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8381         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8382         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8383         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8384         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8386         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8387         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8389         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8390         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8391         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8392         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8393         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8395         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8396         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8397         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8398         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8399
8400 2010-03-27  Bruno Haible  <bruno@clisp.org>
8401
8402         Fix a compilation error on Cygwin with g++ >= 4.3.
8403         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8404         if it is undefined or if we alias it to chmod.
8405         (lstat): Don't warn about the use of this function if it is undefined
8406         or if we alias it to stat.
8407         Reported by Simon Josefsson.
8408
8409 2010-03-27  Bruno Haible  <bruno@clisp.org>
8410
8411         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8412         * modules/getlogin (configure.ac): Update.
8413
8414         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8415         * modules/getlogin_r (configure.ac): Update.
8416
8417         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8418         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8419         * modules/inet_ntop (configure.ac): Update.
8420
8421         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8422         * modules/inet_pton (configure.ac): Update.
8423
8424         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8425         * modules/mbslen (configure.ac): Update.
8426
8427         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8428         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8429         * modules/forkpty (configure.ac): Update.
8430         * modules/openpty (configure.ac): Update.
8431
8432 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8433
8434         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8435         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8436
8437 2010-03-25  Eric Blake  <eblake@redhat.com>
8438
8439         maint: use pragma consistently across replacement headers
8440         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8441         * lib/dirent.in.h (system_header): Likewise.
8442         * lib/errno.in.h (system_header): Likewise.
8443         * lib/float.in.h (system_header): Likewise.
8444         * lib/getopt.in.h (system_header): Likewise.
8445         * lib/iconv.in.h (system_header): Likewise.
8446         * lib/inttypes.in.h (system_header): Likewise.
8447         * lib/langinfo.in.h (system_header): Likewise.
8448         * lib/locale.in.h (system_header): Likewise.
8449         * lib/math.in.h (system_header): Likewise.
8450         * lib/netdb.in.h (system_header): Likewise.
8451         * lib/netinet_in.in.h (system_header): Likewise.
8452         * lib/pty.in.h (system_header): Likewise.
8453         * lib/sched.in.h (system_header): Likewise.
8454         * lib/se-selinux.in.h (system_header): Likewise.
8455         * lib/search.in.h (system_header): Likewise.
8456         * lib/spawn.in.h (system_header): Likewise.
8457         * lib/stdarg.in.h (system_header): Likewise.
8458         * lib/stdint.in.h (system_header): Likewise.
8459         * lib/string.in.h (system_header): Likewise.
8460         * lib/strings.in.h (system_header): Likewise.
8461         * lib/sys_file.in.h (system_header): Likewise.
8462         * lib/sys_ioctl.in.h (system_header): Likewise.
8463         * lib/sys_socket.in.h (system_header): Likewise.
8464         * lib/sys_times.in.h (system_header): Likewise.
8465         * lib/sys_utsname.in.h (system_header): Likewise.
8466         * lib/sys_wait.in.h (system_header): Likewise.
8467         * lib/sysexits.in.h (system_header): Likewise.
8468         * lib/unistd.in.h (system_header): Likewise.
8469         * lib/wctype.in.h (system_header): Likewise.
8470
8471         arpa/inet: fix mingw compilation warning
8472         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8473         Reported by Matthew Bolte.
8474
8475 2010-03-25  Bruno Haible  <bruno@clisp.org>
8476
8477         Avoid collision between gnulib wrapper and libintl wrapper.
8478         * lib/printf.c (printf): Don't define if a printf wrapper is already
8479         defined in intl/printf.c.
8480         Reported by Michel Boaventura <michel@michelboaventura.com>.
8481
8482 2010-03-25  Bruno Haible  <bruno@clisp.org>
8483
8484         Use ANSI C.
8485         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8486
8487 2010-03-25  Bruno Haible  <bruno@clisp.org>
8488
8489         Minor formatting changes.
8490         * lib/acosl.c: Insert space before function argument list.
8491         * lib/argz.c: Likewise.
8492         * lib/asinl.c: Likewise.
8493         * lib/expl.c: Likewise.
8494         * lib/gen-uni-tables.c: Likewise.
8495         * lib/gettext.h: Likewise.
8496         * lib/glthread/lock.h: Likewise.
8497         * lib/tanl.c: Likewise.
8498         * lib/uniname/uniname.c: Likewise.
8499         * tests/test-idpriv-drop.c: Likewise.
8500         * tests/test-idpriv-droptemp.c: Likewise.
8501         * tests/test-lock.c: Likewise.
8502         * tests/test-tls.c: Likewise.
8503         * lib/argp-help.c: Insert space before function-like macro argument
8504         list.
8505         * lib/memcmp.c: Likewise.
8506         * tests/test-base64.c: Likewise.
8507         * lib/localename.c: Insert space before sizeof's argument list.
8508         * lib/safe-alloc.h: Likewise.
8509         * lib/file-set.h: Insert space before macro argument list.
8510         * tests/test-argp.c: Likewise.
8511         * lib/argp-namefrob.h: Insert space before function parameter list.
8512         * lib/getaddrinfo.c: Likewise.
8513         * lib/netdb.in.h: Likewise.
8514         * lib/parse-duration.h: Likewise.
8515         * lib/parse-duration.c: Likewise.
8516         * lib/poll.c: Likewise.
8517         * lib/select.c: Likewise.
8518         * lib/trim.h: Likewise.
8519         * tests/test-usleep.c: Likewise.
8520         * lib/ldexpl.c: Insert space before function parameter list and before
8521         function argument list.
8522         * lib/logl.c: Likewise.
8523         * lib/sqrtl.c: Likewise.
8524         * lib/trim.c: Likewise.
8525         * lib/cosl.c: Use GNU style indentation. Insert space before function
8526         argument list.
8527         * lib/sinl.c: Likewise.
8528         * lib/tsearch.c: Insert space after 'for'.
8529         Reported by Jim Meyering.
8530
8531 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8532
8533         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8534         config header before grepping, as it's not present before
8535         autoreconf/configure are run.  Reported by Simon Josefsson.
8536
8537 2010-03-23  Bruno Haible  <bruno@clisp.org>
8538
8539         pt_chown: Make it work with automake < 1.11.
8540         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8541         Reported by Simon Josefsson.
8542
8543 2010-03-23  Bruno Haible  <bruno@clisp.org>
8544
8545         pt_chown: Don't depend on GPLed modules.
8546         * lib/pt_chown.c: Don't include idpriv.h.
8547         (main): Don't drop privileges.
8548         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8549         Reported by Simon Josefsson.
8550
8551 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8552
8553         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8554         suggestions from karl@freefriends.org (Karl Berry).
8555
8556 2010-03-22  Eric Blake  <eblake@redhat.com>
8557
8558         gethostname: further tweaks
8559         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8560         are overriding gethostname.
8561         Suggested by Bruno Haible.
8562
8563 2010-03-21  Bruno Haible  <bruno@clisp.org>
8564
8565         Fix comments.
8566         * lib/forkpty.c (rpl_forkpty): Fix comment.
8567         * lib/openpty.c (rpl_openpty): Likewise.
8568         Reported by Eric Blake.
8569
8570 2010-03-22  Eric Blake  <eblake@redhat.com>
8571
8572         gethostname: fix build on mingw
8573         * lib/unistd.in.h (includes): Work around fact that mingw
8574         <winsock2.h> re-includes <unistd.h>, by avoiding any
8575         redeclarations if we are being included by <winsock2.h>.
8576         Reported by Matthias Bolte.
8577
8578 2010-03-21  Bruno Haible  <bruno@clisp.org>
8579
8580         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8581         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8582         modifications.
8583         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8584         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8585         provide the replacement.
8586         * modules/forkpty (Depends-on): Add openpty, login_tty.
8587         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8588         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8589         * doc/glibc-functions/forkpty.texi: More supported platforms.
8590         * config/srclist.txt: Add forkpty.c (commented).
8591
8592 2010-03-21  Bruno Haible  <bruno@clisp.org>
8593
8594         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8595         (Makefile.am): Verify that PTY_LIB is defined.
8596
8597         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8598
8599 2010-03-21  Bruno Haible  <bruno@clisp.org>
8600
8601         Tests for module 'login_tty'.
8602         * modules/login_tty-tests: New file.
8603         * tests/test-login_tty.c: New file.
8604
8605         New module 'login_tty'.
8606         * lib/login_tty.c: New file.
8607         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8608         * modules/login_tty: New file.
8609         * doc/glibc-functions/login_tty.texi: Mention the new module.
8610
8611 2010-03-21  Bruno Haible  <bruno@clisp.org>
8612
8613         login_tty: Documentation.
8614         * doc/glibc-functions/login_tty.texi: New file.
8615         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8616
8617 2010-03-21  Bruno Haible  <bruno@clisp.org>
8618
8619         pty: Consistent macro naming.
8620         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8621         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8622         * modules/pty (configure.ac): Update.
8623
8624 2010-03-21  Bruno Haible  <bruno@clisp.org>
8625
8626         Tests for openpty: Make stricter.
8627         * tests/test-openpty.c (main): Add test of canonical processing and
8628         erase.
8629         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8630
8631         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8632         * lib/openpty.c (openpty): New replacement function.
8633         * lib/pty.in.h: Include <termios.h>.
8634         (openpty): Update declaration. Add comments.
8635         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8636         is not declared, arrange to provide the replacement. Check for _getpty
8637         and posix_openpt.
8638         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8639         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8640         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8641         * modules/pty-tests (test_pty_c___LDADD): New variable.
8642         * doc/glibc-functions/openpty.texi: More supported platforms.
8643
8644 2010-03-21  Bruno Haible  <bruno@clisp.org>
8645
8646         setenv: Tweaks.
8647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8648         the test program.
8649         * doc/posix-functions/setenv.texi: Update platforms list.
8650
8651 2010-03-21  Bruno Haible  <bruno@clisp.org>
8652
8653         New module 'unlockpt'.
8654         * lib/unlockpt.c: New file, from glibc with modifications.
8655         * m4/unlockpt.m4: New file.
8656         * modules/unlockpt: New file.
8657         * lib/stdlib.in.h (unlockpt): New declaration.
8658         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8659         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8660         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8661         HAVE_UNLOCKPT.
8662         * doc/posix-functions/unlockpt.texi: Mention the new module.
8663         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8664         * config/srclist.txt: Add unlockpt.c (commented).
8665
8666 2010-03-21  Jim Meyering  <meyering@redhat.com>
8667
8668         maint.mk: prohibit inclusion of "intprops.h" without use
8669         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8670
8671 2010-03-21  Bruno Haible  <bruno@clisp.org>
8672
8673         New module 'grantpt'.
8674         * lib/grantpt.c: New file, from glibc with modifications.
8675         * m4/grantpt.m4: New file.
8676         * modules/grantpt: New file.
8677         * lib/stdlib.in.h (grantpt): New declaration.
8678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8679         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8680         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8681         HAVE_GRANTPT.
8682         * doc/posix-functions/grantpt.texi: Mention the new module.
8683         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8684         * config/srclist.txt: Add grantpt.c (commented).
8685
8686 2010-03-21  Bruno Haible  <bruno@clisp.org>
8687
8688         New module 'pt_chown'.
8689         * lib/pt_chown.c: New file, from glibc with modifications.
8690         * lib/pty-private.h: New file, from glibc with modifications.
8691         * modules/pt_chown: New file.
8692         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8693
8694 2010-03-21  Bruno Haible  <bruno@clisp.org>
8695
8696         Tests for module 'ptsname'.
8697         * modules/ptsname-tests: New file.
8698         * tests/test-ptsname.c: New file.
8699
8700         New module 'ptsname'.
8701         * lib/ptsname.c: New file, from glibc with modifications.
8702         * m4/ptsname.m4: New file.
8703         * modules/ptsname: New file.
8704         * lib/stdlib.in.h (ptsname): New declaration.
8705         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8706         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8707         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8708         HAVE_PTSNAME.
8709         * doc/posix-functions/ptsname.texi: Mention the new module.
8710         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8711         * config/srclist.txt: Add ptsname.c (commented).
8712
8713 2010-03-21  Bruno Haible  <bruno@clisp.org>
8714
8715         Tests for module 'ttyname_r'.
8716         * modules/ttyname_r-tests: New file.
8717         * tests/test-ttyname_r.c: New file.
8718
8719         New module 'ttyname_r'.
8720         * lib/ttyname_r.c: New file.
8721         * m4/ttyname_r.m4: New file.
8722         * modules/ttyname_r: New file.
8723         * lib/unistd.in.h (ttyname_r): New declaration.
8724         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8725         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8726         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8727         HAVE_TTYNAME_R.
8728         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8729         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8730
8731 2010-03-20  Bruno Haible  <bruno@clisp.org>
8732
8733         signal: Undefine macro definitions in C++ mode.
8734         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8735         sigfillset): Undefine macro definitions from the system header in C++
8736         mode.
8737         Reported by John W. Eaton <jwe@gnu.org>.
8738
8739 2010-03-20  Bruno Haible  <bruno@clisp.org>
8740
8741         Ensure no #include statements inside extern "C" { ... }.
8742         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8743         contain #include statements.
8744         * lib/time.in.h: Likewise.
8745
8746 2010-03-20  Bruno Haible  <bruno@clisp.org>
8747
8748         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8749         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8750         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8751         Reported by John W. Eaton <jwe@gnu.org>.
8752
8753 2010-03-20  Bruno Haible  <bruno@clisp.org>
8754
8755         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8756         Reported by Jim Meyering.
8757
8758 2010-03-20  Bruno Haible  <bruno@clisp.org>
8759
8760         pipe: Set errno upon failure.
8761         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8762         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8763         errno value in error message.
8764
8765 2010-03-20  Bruno Haible  <bruno@clisp.org>
8766             Jim Meyering  <meyering@redhat.com>
8767
8768         lchown: Avoid "unused variable" warning.
8769         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8770
8771 2010-03-20  Bruno Haible  <bruno@clisp.org>
8772
8773         Work around unlink() bug on MacOS X 10.5.6.
8774         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8775         attempting to unlink a parent directory.
8776         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8777         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8778         activate for the replacement function.
8779         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8780
8781 2010-03-20  Bruno Haible  <bruno@clisp.org>
8782
8783         Fix link errors on Solaris 8.
8784         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8785         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8786
8787 2010-03-19  Jim Meyering  <meyering@redhat.com>
8788
8789         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8790         The _LIBC implementation of build_range_exp correctly honors the
8791         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8792         However, the non-_LIBC implementation would ignore that syntax-bit
8793         flag and return REG_ERANGE unconditionally.
8794         This change makes it honor that flag.
8795         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8796         Make two pointer parameters "const".
8797         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8798         (parse_bracket_exp): Update caller.
8799
8800         regex.m4: correct the reversed range endpoint ([b-a]) test
8801         * m4/regex.m4: When requiring that [b-a] evoke failure,
8802         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8803         test pass once again for x86-based systems.
8804
8805 2010-03-19  Bruno Haible  <bruno@clisp.org>
8806
8807         scandir: Fix link error on Solaris 8.
8808         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8809         macros.
8810
8811 2010-03-19  Bruno Haible  <bruno@clisp.org>
8812
8813         getusershell: Fix documentation.
8814         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8815         module.
8816         * doc/glibc-functions/setusershell.texi: Likewise.
8817
8818         getusershell: Provide declaration, missing on Solaris 9.
8819         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8820         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8821         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8822         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8824         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8825         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8826         HAVE_GETUSERSHELL.
8827         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8828
8829 2010-03-19  Bruno Haible  <bruno@clisp.org>
8830
8831         wctype: Provide iswblank function.
8832         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8833         exists and is fine.
8834         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8835         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8836         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8837         * doc/posix-functions/iswblank.texi: Update.
8838
8839 2010-03-19  Bruno Haible  <bruno@clisp.org>
8840
8841         Tests of module 'pty' in C++ mode.
8842         * modules/pty-tests: New file.
8843         * tests/test-pty-c++.cc: New file.
8844         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8845
8846 2010-03-19  Eric Blake  <eblake@redhat.com>
8847
8848         logb: fix documentation
8849         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8850         1.5 declaration bug.
8851
8852         forkpty, openpty: prefer glibc's const-safe prototype
8853         * lib/forkpty.c (rpl_forkpty): New file.
8854         * lib/openpty.c (rpl_openpty): Likewise.
8855         * modules/forkpty (Files): Distribute it.
8856         * modules/openpty (Files): Likewise.
8857         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8858         check...
8859         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8860         replacement for for non-const BSD signature.
8861         * modules/pty (Makefile.am): Substitute witnesses.
8862         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8863         * tests/test-forkpty.c: Update signature check.
8864         * tests/test-openpty.c: Likewise.
8865         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8866         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8867
8868         forkpty, openpty: split functions into new modules
8869         * modules/pty (Makefile.am): Substitute new witnesses.
8870         (Libraries): Move library detection...
8871         * modules/forkpty: ...into new module.
8872         * modules/openpty: Another new module.
8873         * modules/pty-tests: Rename and split...
8874         * modules/forkpty-tests: ...to this...
8875         * modules/openpty-tests: ...and this.
8876         * tests/test-pty.c: Rename and split...
8877         * tests/test-forkpty.c: ...to this...
8878         * tests/test-openpty.c: ...and this.
8879         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8880         (gl_PTY): Split library searching...
8881         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8882         (gl_FORKPTY, gl_OPENPTY): New macros.
8883         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8884         * NEWS: Mention the split.
8885         * MODULES.html.sh (Misc): Document the modules.
8886         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8887         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8888
8889         pty: improve replacement header
8890         * lib/pty.in.h: New file.
8891         * modules/pty (Files): Ship it.
8892         (Makefile.am): Always build replacement.
8893         * m4/pty.m4: Rename...
8894         * m4/pty_h.m4: ...to this.
8895         (gl_PTY): Modernize setting of witness macros; update check of
8896         forkpty to take proper advantage of cache.
8897         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8898
8899         getopt: avoid compiler warning
8900         * lib/getopt.c (attribute_hidden): Remove unused macro.
8901
8902 2010-03-18  Bruno Haible  <bruno@clisp.org>
8903
8904         Fix link errors on Solaris 8.
8905         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8906         * modules/search-tests (test_search_c___LDADD): Likewise.
8907         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8908         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8909         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8910         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8911         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8912         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8913         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8914
8915 2010-03-18  Bruno Haible  <bruno@clisp.org>
8916
8917         Fix bug introduced on 2010-03-14.
8918         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8919         (gl_SPAWN_H): Require it.
8920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8921         Reported by Simon Josefsson.
8922
8923 2010-03-18  Bruno Haible  <bruno@clisp.org>
8924
8925         Fix typo introduced on 2009-12-31.
8926         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8927         posix_spawn_file_actions_adddup2.
8928
8929 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8930         and Eric Blake  <eblake@redhat.com>
8931
8932         test-vc-list-files-git: make more robust
8933         * tests/test-vc-list-files-git.sh: Unset problematic environment
8934         variables.  Chain commands together.
8935
8936 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8937
8938         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8939         `AC_CHECK_DECL' invocation.
8940
8941 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8942
8943         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8944         appears before executable statements. Suggested by Petr Sumbera
8945         <Petr.Sumbera@Sun.COM>.
8946
8947 2010-03-14  Bruno Haible  <bruno@clisp.org>
8948
8949         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8950         portability problems. Instead use a simpler test.
8951         (main): Check that invalid arguments are rejected only on Linux.
8952
8953 2010-03-14  Bruno Haible  <bruno@clisp.org>
8954
8955         Fix bug introduced on 2009-12-31.
8956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8957         gl_PREREQ_SYS_H_WINSOCK2 always.
8958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8959         SYS_SOCKET_H variable.
8960         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8961         Update comments.
8962         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8963         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8964         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8965         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8966         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8967
8968 2010-03-14  Bruno Haible  <bruno@clisp.org>
8969
8970         Fix values returned by sinl, cosl.
8971         * lib/trigl.h: Add specification comments.
8972         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8973         that combines the values from the precomputed table with the values of
8974         the Chebyshev polynomials.
8975
8976 2010-03-14  Bruno Haible  <bruno@clisp.org>
8977
8978         Fix compilation error when modules 'posix_spawn[p]' are not used.
8979         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8981
8982 2010-03-14  Bruno Haible  <bruno@clisp.org>
8983
8984         Fix compilation error on mingw when module 'time_r' is not used.
8985         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8986         is 1.
8987         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8988         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8989         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8991
8992 2010-03-14  Bruno Haible  <bruno@clisp.org>
8993
8994         Fix compilation error with Sun C.
8995         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8996         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8997         instead of GCC specific ULONG_LONG_MAX.
8998         * lib/xstrtoll.c: Likewise.
8999         * lib/xstrtoull.c: Likewise.
9000
9001 2010-03-13  Bruno Haible  <bruno@clisp.org>
9002
9003         Allow the user to disable C++ code and tests.
9004         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9005         (gl_PROG_ANSI_CXX): Require it.
9006
9007 2010-03-13  Bruno Haible  <bruno@clisp.org>
9008
9009         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9010         cases.
9011
9012 2010-03-13  Bruno Haible  <bruno@clisp.org>
9013
9014         Test that gnulib does not break the standard C++ headers.
9015         * tests/test-locale-c++2.cc: New file.
9016         * modules/locale-tests (Files): Add it.
9017         (Makefile.am): Compile it for test-locale-c++.
9018         * tests/test-math-c++2.cc: New file.
9019         * modules/math-tests (Files): Add it.
9020         (Makefile.am): Compile it for test-math-c++.
9021         * tests/test-signal-c++2.cc: New file.
9022         * modules/signal-tests (Files): Add it.
9023         (Makefile.am): Compile it for test-signal-c++.
9024         * tests/test-stdio-c++2.cc: New file.
9025         * modules/stdio-tests (Files): Add it.
9026         (Makefile.am): Compile it for test-stdio-c++.
9027         * tests/test-stdlib-c++2.cc: New file.
9028         * modules/stdlib-tests (Files): Add it.
9029         (Makefile.am): Compile it for test-stdlib-c++.
9030         * tests/test-string-c++2.cc: New file.
9031         * modules/string-tests (Files): Add it.
9032         (Makefile.am): Compile it for test-string-c++.
9033         * tests/test-time-c++2.cc: New file.
9034         * modules/time-tests (Files): Add it.
9035         (Makefile.am): Compile it for test-time-c++.
9036         Reported by John W. Eaton <jwe@gnu.org>.
9037
9038 2010-03-13  Bruno Haible  <bruno@clisp.org>
9039
9040         * gnulib-tool (func_usage): Clarify which options are available for
9041         --create-testdir and --create-megatestdir.
9042
9043 2010-03-13  Bruno Haible  <bruno@clisp.org>
9044
9045         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9046         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9047         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9048         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9049         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9050         when appropriate.
9051         Reported by Jim Meyering.
9052
9053 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9054
9055         * gnulib-tool (func_import): Explain origin of code.
9056
9057 2010-03-12  Bruno Haible  <bruno@clisp.org>
9058
9059         Fix problem with automake's definition of CXXLINK.
9060         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9061         Reported by Simon Josefsson and Ludovic Courtès.
9062
9063 2010-03-12  Bruno Haible  <bruno@clisp.org>
9064
9065         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9066         stable releases.
9067
9068 2010-03-11  Bruno Haible  <bruno@clisp.org>
9069
9070         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9071         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9072         whether the system provides one variant or multiple variants of the
9073         function.
9074         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9075         C++ compilers.
9076         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9077         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9078         Reported by Jim Meyering.
9079
9080 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9081
9082         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9083
9084 2010-03-08  Bruno Haible  <bruno@clisp.org>
9085
9086         gnulib-tool: Add support for --libtool in --create-testdir.
9087         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9088         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9089
9090 2010-03-08  Eric Blake  <eblake@redhat.com>
9091
9092         gnulib-tool.texi: mention possibility of git submodule
9093         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9094         submodules.
9095         * doc/.gitignore: Ignore another generated file.
9096
9097 2010-03-08  Karl Berry  <karl@gnu.org>
9098
9099         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9100         of committing gnulib files while skipping others.
9101
9102 2010-03-07  Bruno Haible  <bruno@clisp.org>
9103
9104         Tests of module 'wctype' in C++ mode.
9105         * tests/test-wctype-c++.cc: New file.
9106         * modules/wctype-tests (Files): Add it and tests/signature.h.
9107         (Depends-on): Add ansi-c++-opt.
9108         (Makefile.am): Arrange to compile and run test-wctype-c++.
9109
9110         Tests of module 'wchar' in C++ mode.
9111         * tests/test-wchar-c++.cc: New file.
9112         * modules/wchar-tests (Files): Add it and tests/signature.h.
9113         (Depends-on): Add ansi-c++-opt.
9114         (Makefile.am): Arrange to compile and run test-wchar-c++.
9115         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9116         gl_MODULE_INDICATOR.
9117
9118         Tests of module 'unistd' in C++ mode.
9119         * tests/test-unistd-c++.cc: New file.
9120         * modules/unistd-tests (Files): Add it and tests/signature.h.
9121         (Depends-on): Add ansi-c++-opt.
9122         (Makefile.am): Arrange to compile and run test-unistd-c++.
9123         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9124         gl_MODULE_INDICATOR.
9125
9126         Tests of module 'time' in C++ mode.
9127         * tests/test-time-c++.cc: New file.
9128         * modules/time-tests (Files): Add it and tests/signature.h.
9129         (Depends-on): Add ansi-c++-opt.
9130         (Makefile.am): Arrange to compile and run test-time-c++.
9131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9132
9133         Tests of module 'sys_time' in C++ mode.
9134         * tests/test-sys_time-c++.cc: New file.
9135         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9136         (Depends-on): Add ansi-c++-opt.
9137         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9138         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9139         gl_MODULE_INDICATOR.
9140
9141         Tests of module 'sys_stat' in C++ mode.
9142         * tests/test-sys_stat-c++.cc: New file.
9143         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9144         (Depends-on): Add ansi-c++-opt.
9145         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9146         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9147         gl_MODULE_INDICATOR.
9148
9149         Tests of module 'sys_socket' in C++ mode.
9150         * tests/test-sys_socket-c++.cc: New file.
9151         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9152         (Depends-on): Add ansi-c++-opt.
9153         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9155         gl_MODULE_INDICATOR.
9156
9157         Tests of module 'sys_select' in C++ mode.
9158         * tests/test-sys_select-c++.cc: New file.
9159         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9160         (Depends-on): Add ansi-c++-opt.
9161         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9162         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9163         gl_MODULE_INDICATOR.
9164
9165         Tests of module 'sys_ioctl' in C++ mode.
9166         * tests/test-sys_ioctl-c++.cc: New file.
9167         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9168         (Depends-on): Add ansi-c++-opt.
9169         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9171         gl_MODULE_INDICATOR.
9172
9173         Tests of module 'string' in C++ mode.
9174         * tests/test-string-c++.cc: New file.
9175         * modules/string-tests (Files): Add it and tests/signature.h.
9176         (Depends-on): Add ansi-c++-opt.
9177         (Makefile.am): Arrange to compile and run test-string-c++.
9178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9179         gl_MODULE_INDICATOR.
9180
9181         Tests of module 'stdlib' in C++ mode.
9182         * tests/test-stdlib-c++.cc: New file.
9183         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9184         (Depends-on): Add ansi-c++-opt.
9185         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9186         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9187         gl_MODULE_INDICATOR.
9188
9189         Tests of module 'stdio' in C++ mode.
9190         * tests/test-stdio-c++.cc: New file.
9191         * modules/stdio-tests (Files): Add it and tests/signature.h.
9192         (Depends-on): Add ansi-c++-opt.
9193         (Makefile.am): Arrange to compile and run test-stdio-c++.
9194         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9195         gl_MODULE_INDICATOR.
9196
9197         Tests of module 'spawn' in C++ mode.
9198         * tests/test-spawn-c++.cc: New file.
9199         * modules/spawn-tests (Files): Add it and tests/signature.h.
9200         (Depends-on): Add ansi-c++-opt.
9201         (Makefile.am): Arrange to compile and run test-spawn-c++.
9202         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9203         gl_MODULE_INDICATOR.
9204
9205         Tests of module 'signal' in C++ mode.
9206         * tests/test-signal-c++.cc: New file.
9207         * modules/signal-tests (Files): Add it and tests/signature.h.
9208         (Depends-on): Add ansi-c++-opt.
9209         (Makefile.am): Arrange to compile and run test-signal-c++.
9210         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9211         gl_MODULE_INDICATOR.
9212
9213         Tests of module 'search' in C++ mode.
9214         * tests/test-search-c++.cc: New file.
9215         * modules/search-tests (Files): Add it and tests/signature.h.
9216         (Depends-on): Add ansi-c++-opt.
9217         (Makefile.am): Arrange to compile and run test-search-c++.
9218         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9219         gl_MODULE_INDICATOR.
9220
9221         Tests of module 'math' in C++ mode.
9222         * tests/test-math-c++.cc: New file.
9223         * modules/math-tests (Files): Add it and tests/signature.h.
9224         (Depends-on): Add ansi-c++-opt.
9225         (Makefile.am): Arrange to compile and run test-math-c++.
9226         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9227
9228         Tests of module 'locale' in C++ mode.
9229         * tests/test-locale-c++.cc: New file.
9230         * modules/locale-tests (Files): Add it and tests/signature.h.
9231         (Depends-on): Add ansi-c++-opt.
9232         (Makefile.am): Arrange to compile and run test-locale-c++.
9233         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9234         gl_MODULE_INDICATOR.
9235
9236         Tests of module 'langinfo' in C++ mode.
9237         * tests/test-langinfo-c++.cc: New file.
9238         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9239         (Depends-on): Add ansi-c++-opt.
9240         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9241         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9242         gl_MODULE_INDICATOR.
9243
9244         Tests of module 'iconv-h' in C++ mode.
9245         * tests/test-iconv-h-c++.cc: New file.
9246         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9247         (Depends-on): Add ansi-c++-opt.
9248         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9249
9250         Tests of module 'glob' in C++ mode.
9251         * tests/test-glob-c++.cc: New file.
9252         * modules/glob-tests (Files): Add it.
9253         (Depends-on): Add ansi-c++-opt.
9254         (Makefile.am): Arrange to compile and run test-glob-c++.
9255
9256         Tests of module 'fcntl-h' in C++ mode.
9257         * tests/test-fcntl-h-c++.cc: New file.
9258         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9259         (Depends-on): Add ansi-c++-opt.
9260         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9261         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9262         gl_MODULE_INDICATOR.
9263
9264         Tests of module 'dirent' in C++ mode.
9265         * tests/test-dirent-c++.cc: New file.
9266         * modules/dirent-tests (Files): Add it and tests/signature.h.
9267         (Depends-on): Add ansi-c++-opt.
9268         (Makefile.am): Arrange to compile and run test-dirent-c++.
9269         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9270         gl_MODULE_INDICATOR.
9271
9272         New module 'ansi-c++-opt'.
9273         * modules/ansi-c++-opt: New file.
9274         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9275
9276         Document C++ namespace mode.
9277         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9278
9279         wctype: Avoid #define replacements in C++ mode.
9280         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9281         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9282         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9283         In C++, define a namespaced alias symbol.
9284         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9285         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9286         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9287         rule.
9288
9289         wchar: Avoid #define replacements in C++ mode.
9290         * lib/wchar.in.h: Include c++defs.h.
9291         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9292         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9293         symbol.
9294         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9295         * modules/wchar (Depends-on): Add c++defs.
9296         (Makefile.am): Update wchar.h rule.
9297
9298         unistd: Avoid #define replacements in C++ mode.
9299         * lib/unistd.in.h: Include c++defs.h.
9300         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9301         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9302         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9303         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9304         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9305         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9306         symbol.
9307         (environ): Update.
9308         * modules/unistd (Depends-on): Add c++defs.
9309         (Makefile.am): Update unistd.h rule.
9310
9311         time: Avoid #define replacements in C++ mode.
9312         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9313         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9314         define a namespaced alias symbol.
9315         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9316         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9317         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9318         * modules/time (Depends-on): Add c++defs, warn-on-use.
9319         (Makefile.am): Update time.h rule.
9320         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9321         * modules/nanosleep (configure.ac): Likewise.
9322         * modules/strptime (configure.ac): Likewise.
9323         * modules/timegm (configure.ac): Likewise.
9324
9325         sys_time: Avoid #define replacements in C++ mode.
9326         * lib/sys_time.in.h: Include c++defs.h.
9327         (gettimeofday): In C++, define a namespaced alias symbol.
9328         * modules/sys_time (Depends-on): Add c++defs.
9329         (Makefile.am): Update sys/time.h rule.
9330
9331         sys_stat: Avoid #define replacements in C++ mode.
9332         * lib/sys_stat.in.h: Include c++defs.h.
9333         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9334         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9335         namespaced alias symbol.
9336         In C++, define a namespaced alias symbol.
9337         * modules/sys_stat (Depends-on): Add c++defs.
9338         (Makefile.am): Update sys/stat.h rule.
9339
9340         sys_socket: Avoid #define replacements in C++ mode.
9341         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9342         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9343         definitions also when the system has a <sys/socket.h>.
9344         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9345         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9346         In C++, define a namespaced alias symbol.
9347         * modules/sys_socket (Depends-on): Add c++defs.
9348         (Makefile.am): Update sys/socket.h rule.
9349
9350         sys_select: Avoid #define replacements in C++ mode.
9351         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9352         definitions also when the system has a <sys/select.h>.
9353         (select): In C++, define a namespaced alias symbol.
9354         * modules/sys_select (Depends-on): Add c++defs.
9355         (Makefile.am): Update sys/select.h rule.
9356
9357         sys_ioctl: Avoid #define replacements in C++ mode.
9358         * lib/sys_ioctl.in.h: Include c++defs.h.
9359         (ioctl): In C++, define a namespaced alias symbol.
9360         * modules/sys_ioctl (Depends-on): Add c++defs.
9361         (Makefile.am): Update sys/ioctl.h rule.
9362
9363         string: Avoid #define replacements in C++ mode.
9364         * lib/string.in.h: Include c++defs.h.
9365         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9366         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9367         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9368         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9369         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9370         * modules/string (Depends-on): Add c++defs.
9371         (Makefile.am): Update string.h rule.
9372
9373         stdlib: Avoid #define replacements in C++ mode.
9374         * lib/stdlib.in.h: Include c++defs.h.
9375         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9376         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9377         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9378         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9379         symbol.
9380         * modules/stdlib (Depends-on): Add c++defs.
9381         (Makefile.am): Update stdlib.h rule.
9382
9383         stdio: Avoid #define replacements in C++ mode.
9384         * lib/stdio.in.h: Include c++defs.h.
9385         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9386         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9387         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9388         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9389         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9390         namespaced alias symbol.
9391         * modules/stdio (Depends-on): Add c++defs.
9392         (Makefile.am): Update stdio.h rule.
9393
9394         spawn: Avoid #define replacements in C++ mode.
9395         * lib/spawn.in.h: Include c++defs.h.
9396         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9397         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9398         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9399         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9400         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9401         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9402         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9403         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9404         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9405         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9406         In C++, define a namespaced alias symbol.
9407         * modules/spawn (Depends-on): Add c++defs.
9408         (Makefile.am): Update spawn.h rule.
9409
9410         signal: Avoid #define replacements in C++ mode.
9411         * lib/signal.in.h: Include c++defs.h.
9412         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9413         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9414         namespaced alias symbol.
9415         * modules/signal (Depends-on): Add c++defs.
9416         (Makefile.am): Update signal.h rule.
9417
9418         search: Avoid #define replacements in C++ mode.
9419         * lib/search.in.h: Include c++defs.h.
9420         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9421         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9422         symbol.
9423         * modules/search (Depends-on): Add c++defs.
9424         (Makefile.am): Update search.h rule.
9425
9426         math: Avoid #define replacements in C++ mode.
9427         * lib/math.in.h: Include c++defs.h.
9428         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9429         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9430         trunc, truncl): In C++, define a namespaced alias symbol.
9431         * modules/math (Depends-on): Add c++defs.
9432         (Makefile.am): Update math.h rule.
9433
9434         locale: Avoid #define replacements in C++ mode.
9435         * lib/locale.in.h: Include c++defs.h.
9436         (duplocale): In C++, define a namespaced alias symbol.
9437         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9438         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9439         * modules/locale (Depends-on): Add c++defs.
9440         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9441
9442         langinfo: Avoid #define replacements in C++ mode.
9443         * lib/langinfo.in.h: Include c++defs.h.
9444         (nl_langinfo): In C++, define a namespaced alias symbol.
9445         * modules/langinfo (Depends-on): Add c++defs.
9446         (Makefile.am): Update langinfo.h rule.
9447
9448         iconv-h: Avoid #define replacements in C++ mode.
9449         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9450         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9451         symbol.
9452         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9453         whenever iconv is present.
9454         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9455         (Makefile.am): Update iconv.h rule.
9456
9457         glob: Avoid #define replacements in C++ mode.
9458         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9459         (_gl_glob_errfunc_fn): New type.
9460         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9461         symbol.
9462         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9463         (Makefile.am): Update glob.h rule.
9464
9465         fcntl-h: Avoid #define replacements in C++ mode.
9466         * lib/fcntl.in.h: Include c++defs.h.
9467         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9468         * modules/fcntl-h (Depends-on): Add c++defs.
9469         (Makefile.am): Update fcntl.h rule.
9470
9471         dirent: Avoid #define replacements in C++ mode.
9472         * lib/dirent.in.h: Include c++defs.h.
9473         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9474         namespaced alias symbol.
9475         (dirfd): Update declaration.
9476         * modules/dirent (Depends-on): Add c++defs.
9477         (Makefile.am): Update dirent.h rule.
9478
9479         ctype: Make it usable in C++ code.
9480         * lib/ctype.in.h: Include c++defs.h.
9481         (isblank): Declare as extern "C".
9482         * modules/ctype (Depends-on): Add c++defs.
9483         (Makefile.am): Update ctype.h rule.
9484
9485         New module 'c++defs'.
9486         * modules/c++defs: New file.
9487         * build-aux/c++defs.h: New file.
9488         Reported by John W. Eaton <jwe@gnu.org>.
9489
9490 2010-03-07  Bruno Haible  <bruno@clisp.org>
9491
9492         logb: Provide missing declaration for Cygwin.
9493         * lib/math.in.h (logb): New declaration.
9494         * m4/logb.m4: New file.
9495         * modules/logb (Files): Add m4/logb.m4.
9496         (Depends-on): Add math.
9497         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9498         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9500         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9501         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9502
9503 2010-03-07  Bruno Haible  <bruno@clisp.org>
9504
9505         Fix test-cond link error.
9506         * tests/test-cond.c: Include <stdio.h>.
9507
9508 2010-03-07  Bruno Haible  <bruno@clisp.org>
9509
9510         Fix test-dirent-safer link error.
9511         * modules/dirent-safer-tests (Makefile.am): Define
9512         test_dirent_safer_LDADD.
9513
9514 2010-03-07  Bruno Haible  <bruno@clisp.org>
9515
9516         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9517         among default module list.
9518
9519 2010-03-07  Bruno Haible  <bruno@clisp.org>
9520
9521         Fix link error on platforms with GNU libiconv.
9522         * modules/unistr/u8-strcoll-tests (Makefile): Define
9523         test_u8_strcoll_LDADD.
9524         * modules/unistr/u16-strcoll-tests (Makefile): Define
9525         test_u16_strcoll_LDADD.
9526         * modules/unistr/u32-strcoll-tests (Makefile): Define
9527         test_u32_strcoll_LDADD.
9528
9529 2010-03-07  Bruno Haible  <bruno@clisp.org>
9530
9531         Use POSIX declarations for socket functions.
9532         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9533         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9534         rpl_sendto): Change declaration to match POSIX.
9535         * lib/connect.c (rpl_connect): Likewise.
9536         * lib/accept.c (rpl_accept): Likewise.
9537         * lib/bind.c (rpl_bind): Likewise.
9538         * lib/getpeername.c (rpl_getpeername): Likewise.
9539         * lib/getsockname.c (rpl_getsockname): Likewise.
9540         * lib/recv.c (rpl_recv): Likewise.
9541         * lib/send.c (rpl_send): Likewise.
9542         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9543         * lib/sendto.c (rpl_sendto): Likewise.
9544
9545 2010-03-06  Bruno Haible  <bruno@clisp.org>
9546
9547         Clarify access, euidaccess, faccessat.
9548         * doc/posix-functions/faccessat.texi: Mention security problem under
9549         "Other problems", not "Portability problems".
9550         * doc/posix-functions/access.texi: Likewise. Mention a related security
9551         problem.
9552         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9553         * lib/euidaccess.c: Add comments about platforms.
9554         * lib/unistd.in.h (access, euidaccess): Add warnings.
9555
9556 2010-03-07  Bruno Haible  <bruno@clisp.org>
9557
9558         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9559         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9560         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9561         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9562         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9563         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9564         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9565         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9566         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9568         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9569         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9570         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9571         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9572         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9573         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9574         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9575         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9576         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9577         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9578         Likewise.
9579         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9580         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9581         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9582         Likewise.
9583         * tests/test-spawn.c (main): Make it work when
9584         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9585
9586 2010-03-07  Bruno Haible  <bruno@clisp.org>
9587
9588         Fix incorrect Makefile.am generation in German locale.
9589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9590         Execute sed command with character range in C locale.
9591
9592 2010-03-06  Bruno Haible  <bruno@clisp.org>
9593
9594         Tests for module 'iconv-h'.
9595         * modules/iconv-h-tests: New file.
9596         * tests/test-iconv-h.c: New file.
9597
9598         New module 'iconv-h'.
9599         * modules/iconv-h: New file.
9600         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9601         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9602         (configure.ac): Remove gl_ICONV_H.
9603         (Makefile.am): Remove rule for iconv.h.
9604
9605 2010-03-06  Bruno Haible  <bruno@clisp.org>
9606
9607         More consistent naming of *.m4 files.
9608         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9609         * modules/wctype (Files): Update.
9610
9611         More consistent naming of *.m4 files.
9612         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9613         * modules/wchar (Files): Update.
9614
9615 2010-03-06  Jim Meyering  <meyering@redhat.com>
9616
9617         euidaccess: relax license to LGPLv2+
9618         * modules/euidaccess (License): Relax to LGPLv2+.
9619
9620 2010-03-06  Bruno Haible  <bruno@clisp.org>
9621
9622         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9623         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9624         (Makefile.am): Augment lib_SOURCES instead.
9625
9626 2010-03-04  Jim Meyering  <meyering@redhat.com>
9627
9628         utime: remove obsolete module
9629         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9630         unnecessary for years, and has been marked as obsolete for 10 months.
9631         * modules/utime: Remove file.
9632         * lib/utime.c: Remove file.
9633         * m4/utime.m4: Remove file.
9634         * m4/utimes-null.m4: Remove file.
9635         * doc/posix-functions/utime.texi (utime): Remove reference to
9636         the module.  Move the sole "fixed by gnulib" item into the
9637         "problems not fixed by Gnulib" list.
9638         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9639
9640 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9641
9642         * modules/exit (License): Relax license to LGPLv2+.
9643         (Status): Mark as obsolete.
9644         * NEWS: Mention deprecated 'exit' module.
9645         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9646         of now obsolete 'exit'.
9647
9648 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9649
9650         fts-lgpl: remove unused module
9651         * modules/fts-lgpl: Remove.
9652         * MODULES.html.sh (func_all_modules): Adjust.
9653         * check-module (find_included_lib_files): Adjust.
9654         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9655
9656 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9657
9658         copy-acl: enhance Solaris ACL error handling
9659         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9660         * lib/set-mode-acl.c (qset_acl): Likewise.
9661
9662 2010-03-02  Bruno Haible  <bruno@clisp.org>
9663
9664         spawn: Don't override the system defined values on FreeBSD 8.
9665         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9666         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9667         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9668         if HAVE_POSIX_SPAWN is 1.
9669         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9670
9671 2010-03-01  Bruno Haible  <bruno@clisp.org>
9672
9673         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9674         regarding Automake.
9675
9676 2010-02-25  Bruno Haible  <bruno@clisp.org>
9677
9678         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9679         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9680         setting, not afterwards.
9681         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9682
9683 2010-02-24  Eric Blake  <eblake@redhat.com>
9684
9685         bootstrap, git-version-gen: use timestamp
9686         * build-aux/git-version-gen (scriptversion): Force UTC.
9687         * build-aux/bootstrap (scriptversion): New variable.
9688
9689         bootstrap: allow older git
9690         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9691         older than 1.6.4.  Requested by the libvirt project.
9692
9693 2010-02-23  Eric Blake  <eblake@redhat.com>
9694
9695         warn-on-use: work with old autoconf
9696         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9697         AS_VAR semantics of autoconf 2.60.
9698         Reported by Bruno Haible.
9699
9700         bootstrap: improve some comments
9701         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9702         clarification comments.
9703
9704         gettimeofday: provide correct function
9705         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9706         when replacement is declared, otherwise provide gettimeofday.
9707         Reported by Michael Goffioul.
9708
9709 2010-02-23  Jim Meyering  <meyering@redhat.com>
9710
9711         lib-ignore: relax license to "unlimited", not LGPLv2+
9712         * modules/lib-ignore (License): Relax to "unlimited".
9713
9714 2010-02-23  Jim Meyering  <meyering@redhat.com>
9715
9716         lib-ignore: relax license to LGPLv2+
9717         * modules/lib-ignore (License): Relax to LGPLv2+.
9718
9719 2010-02-22  Eric Blake  <eblake@redhat.com>
9720
9721         lseek: avoid bash 3.2 broken pipe bug
9722         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9723         warning from bash 3.2.
9724         Reported by Ben Pfaff, with analysis from Bruno Haible.
9725
9726         bootstrap: support non-FSF copyright holder
9727         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9728         bootstrap.conf override of COPYRIGHT_HOLDER.
9729         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9730
9731         bootstrap: interoperate with gettext 0.14.1
9732         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9733
9734         bootstrap: allow for alternate submodule location
9735         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9736         hardcoding submodule location.
9737         (gnulib_mk): Allow direct use of Makefile.am.
9738
9739         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9740         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9741         rather than reconfiguring where the submodule points.
9742
9743         gettimeofday: restore support for platforms that lack function
9744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9745         replacement if function is missing.
9746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9747         * modules/sys_time (Makefile.am): Substitute it.
9748         * lib/sys_time.in.h (gettimeofday): Check it.
9749         Reported by Michael Goffioul.
9750
9751 2010-02-21  Bruno Haible  <bruno@clisp.org>
9752
9753         * lib/stdio.in.h (obstack_printf): Fix typo.
9754
9755 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9756
9757         vc-list-files: use bzr ls's -R option
9758         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9759         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9760
9761 2010-02-21  Jim Meyering  <meyering@redhat.com>
9762
9763         init.sh: fix EXEEXT shims to work also for names like test-prog
9764         * tests/init.sh: Re-exec a better shell, when needed.
9765         If the current shell lacks support for posix $(...), an init.sh-using
9766         test will now try to find a shell that supports that.  If EXEEXT is
9767         nonempty, we also require support for hyphen-in-alias-name and shell
9768         substitutions like ${var#glob}.  Failure to find such a shell results
9769         in a skipped test.
9770
9771 2010-02-21  Bruno Haible  <bruno@clisp.org>
9772
9773         Really work around around "broken pipe" error message from bash 3.2.
9774         * gnulib-tool (func_reset_sigpipe): Remove function.
9775         (echo): In bash 3.2, define to a function that uses printf.
9776         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9777
9778 2010-02-20  Bruno Haible  <bruno@clisp.org>
9779
9780         Restore support for automake 1.9.6 with autoconf 2.61.
9781         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9782         Reported by James Youngman <jay@gnu.org>.
9783
9784 2010-02-20  Bruno Haible  <bruno@clisp.org>
9785
9786         Improve *printf warning condition.
9787         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9788         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9789         and the function is overridden due to SIGPIPE emulation.
9790
9791 2010-02-20  Bruno Haible  <bruno@clisp.org>
9792
9793         * lib/stdio.in.h: Tweak comments.
9794
9795 2010-02-19  Bruno Haible  <bruno@clisp.org>
9796
9797         Make it easier to find modules. New gnulib-tool option '--find'.
9798         * gnulib-tool: New option --find.
9799         (func_usage): Document it.
9800         (func_sanitize_modulelist): New function, extracted from
9801         func_all_modules.
9802         (func_all_modules): Invoke it.
9803         * doc/gnulib-tool.texi (Which modules?): New node.
9804
9805 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9806
9807         * lib/sys_select.in.h: Provide select replacement even if
9808         sys/select.h exists on a system, for Interix.
9809
9810 2010-02-18  Jim Meyering  <meyering@redhat.com>
9811
9812         init.sh: don't use $(...) just yet
9813         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9814         to accommodate e.g., Solaris' /bin/sh.
9815
9816 2010-02-17  Bruno Haible  <bruno@clisp.org>
9817
9818         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9819         Reported by Ludovic Courtès <ludo@gnu.org>.
9820
9821 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9822
9823         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9824         linking with -lintl.
9825
9826 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9827
9828         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9829         if not provided by the system's netdb.h.  Reported by
9830         ludo@gnu.org (Ludovic Courtès).
9831
9832 2010-02-15  Jim Meyering  <meyering@redhat.com>
9833
9834         init.sh: improve portability and efficiency
9835         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9836         "dummy" in a for loop.
9837         Use '!', not '^' to select the complement of a character set used
9838         in a "case" statement.
9839         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9840         Suggestions from Eric Blake.
9841
9842         init.sh: automatically accommodate programs with the .exe suffix
9843         Automatically arrange for an invocation of "prog" to execute the
9844         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9845         may use the simpler "prog", yet still work when built on a system
9846         that requires specifying the added suffix.
9847         Do this by constructing a function named "prog" that invokes
9848         "prog.exe" for each .exe file in selected directories.
9849         * tests/init.sh (find_exe_basenames_): New function.
9850         (create_exe_shim_functions_): New function.
9851         (path_prepend_): Use it.
9852
9853         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9854         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9855         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9856
9857 2010-02-14  Jim Meyering  <meyering@redhat.com>
9858
9859         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9860         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9861         (sc_prohibit_hash_pjw_without_use): New rule.
9862
9863         maint.mk: allow the default upload destination dir to be overridden
9864         * top/maint.mk (upload_dest_dir_): Define with a default that
9865         preserves the status quo.
9866         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9867         Reported by Peter Simons.
9868
9869         maint.mk: prohibit inclusion of "hash.h" without_use
9870         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9871
9872 2010-02-10  Jim Meyering  <meyering@redhat.com>
9873
9874         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9875         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9876
9877 2010-02-09  Eric Blake  <ebb9@byu.net>
9878         and Bruno Haible  <bruno@clisp.org>
9879
9880         obstack-printf-posix: ensure declaration
9881         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9882         extracted from gl_FUNC_OBSTACK_PRINTF.
9883         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9884         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9885         Likewise.
9886         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9887         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9888         0.
9889
9890 2010-02-08  Bruno Haible  <bruno@clisp.org>
9891
9892         gnulib-tool: Fix typo in 2010-02-07 commit.
9893         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9894         Reported by Eric Blake.
9895
9896 2010-02-07  Bruno Haible  <bruno@clisp.org>
9897
9898         gnulib-tool: Fix up caching patches.
9899         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9900         option --no-cache. Use associative arrays when supported by the shell.
9901         (sed_comments): New variable.
9902         (modcache): Renamed from do_cache.
9903         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9904         abbreviate unnecessarily.
9905         (have_associative): New variable.
9906         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9907         way also for ksh and zsh.
9908         (func_init_sed_convert_to_cache_statements): New function, extracted
9909         from func_cache_lookup_module. Add support for associative arrays.
9910         Don't set the c_MODULE_cached variable here. Ignore all lines before
9911         the first field header. Remove only the final newline, not all trailing
9912         newlines. Support empty fields correctly. Limit the use of 'eval' to
9913         assignments.
9914         (func_get_description, func_get_status, func_get_notice,
9915         func_get_applicability, func_get_filelist, func_get_dependencies,
9916         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9917         func_get_automake_snippet, func_get_include_directive,
9918         func_get_link_directive, func_get_license, func_get_maintainer):
9919         Update documentation. List the unoptimized code first. Add support for
9920         associative arrays. Limit the use of 'eval' to assignments.
9921         (func_get_applicability): Undo stylistic pessimisations.
9922         (func_get_automake_snippet, func_get_include_directive): Reduce code
9923         duplication.
9924         (func_modules_transitive_closure, func_modules_add_dummy,
9925         func_modules_notice, func_modules_to_filelist, func_add_file,
9926         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9927         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9928         func_create_testdir, func_create_megatestdir): Update documentation.
9929
9930 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9931
9932         * gnulib-tool (func_cache_lookup_module): Store the module name
9933         belonging to the cache variable; error out if two different
9934         module names map to the same cache variable name.
9935
9936 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9937
9938         gnulib-tool: Make caching optional.
9939         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9940         Update matching short versions of --no-changelog.
9941         (func_usage): Update.
9942         (sed_extract_cache_prog): Renamed from ...
9943         (sed_extract_prog): ... this; revert to old extraction script.
9944         (func_get_description, func_get_status)
9945         (func_get_notice, func_get_applicability, func_get_filelist)
9946         (func_get_dependencies, func_get_autoconf_early_snippet)
9947         (func_get_autoconf_snippet, func_get_automake_snippet)
9948         (func_get_include_directive, func_get_link_directive)
9949         (func_get_license, func_get_maintainer): If $do_cache is false,
9950         use old, non-caching extraction scripts.
9951         Suggestion by Bruno Haible.
9952
9953 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9954
9955         gnulib-tool: cache module metainformation.
9956         * gnulib-tool (sed_extract_prog): Match newline before each
9957         header, and rewrite header to a shell variable suffix.
9958         (func_cache_var, func_cache_lookup_module): New functions,
9959         to turn a module name into a cache variable prefix, and to
9960         look up and cache module metainformation.
9961         (func_get_description, func_get_status)
9962         (func_get_notice, func_get_applicability, func_get_filelist)
9963         (func_get_dependencies, func_get_autoconf_early_snippet)
9964         (func_get_autoconf_snippet, func_get_automake_snippet)
9965         (func_get_include_directive, func_get_link_directive)
9966         (func_get_license, func_get_maintainer): Use
9967         func_cache_lookup_module.
9968
9969 2010-02-07  Bruno Haible  <bruno@clisp.org>
9970
9971         fnctl: Fix missing dependency.
9972         * modules/fcntl (Depends-on): Add getdtablesize.
9973         Reported by John W. Eaton <jwe@gnu.org>.
9974
9975 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9976
9977         Argp: fix recognition of short alias options.
9978
9979         * lib/argp-parse.c (convert_options): Fix improper use of
9980         `|' between character values.
9981         * tests/test-argp.c (group1_option): New alias option
9982         --read (-r).
9983         (group1_parser): Special handling for 'r'.
9984         (test15): New test case.
9985         (test_fun): Add test15.
9986         * tests/test-argp-2.sh: Update expected --help and --usage
9987         outputs.
9988
9989 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9990
9991         * tests/test-argp.c: Fix indentation.
9992
9993 2010-02-04  Eric Blake  <ebb9@byu.net>
9994
9995         gettimeofday: expose type of second argument
9996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9997         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9998         * tests/test-gettimeofday.c: Use it to silence warning.
9999         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10000         the issue.
10001
10002 2010-02-03  Jim Meyering  <meyering@redhat.com>
10003
10004         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10005         * lib/regcomp.c (TYPE_SIGNED): Define.
10006         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10007
10008         regcomp.c: avoid a new -Wshadow warning
10009         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10010
10011 2010-02-01  Jim Meyering  <meyering@redhat.com>
10012
10013         removing useless parentheses in cpp #define directives
10014         For motivation, see commit c0221df4, "define STREQ(a,b)
10015         consistently, removing useless parentheses"
10016         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10017         * lib/mountlist.c (MNT_IGNORE): Likewise.
10018         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10019
10020 2010-02-01  Eric Blake  <ebb9@byu.net>
10021
10022         sys_time: use link-warning
10023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10024         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10025         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10026         * modules/sys_time (Depends-on): Add warn-on-use.
10027         (Makefile.am): Always build replacement.
10028         (configure.ac): Update substitutions.
10029         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10030         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10031         bother with SYS_TIME_H.
10032         * modules/gettimeofday (configure.ac): Declare indicator.
10033         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10034         in use.
10035
10036         closein-tests: silence compiler warning
10037         * tests/test-closein.c (main): Ignore fread result.
10038         * modules/closein-tests (Depends-on): Add ignore-value.
10039
10040         tests: silence warning about system return
10041         * tests/test-areadlink-with-size.c (main): Ignore system result.
10042         * tests/test-areadlink.c (main): Likewise.
10043         * tests/test-areadlinkat-with-size.c (main): Likewise.
10044         * tests/test-areadlinkat.c (main): Likewise.
10045         * tests/test-canonicalize-lgpl.c (main): Likewise.
10046         * tests/test-canonicalize.c (main): Likewise.
10047         * tests/test-chown.c (main): Likewise.
10048         * tests/test-fchownat.c (main): Likewise.
10049         * tests/test-fdutimensat.c (main): Likewise.
10050         * tests/test-fstatat.c (main): Likewise.
10051         * tests/test-futimens.c (main): Likewise.
10052         * tests/test-lchown.c (main): Likewise.
10053         * tests/test-link.c (main): Likewise.
10054         * tests/test-linkat.c (main): Likewise.
10055         * tests/test-lstat.c (main): Likewise.
10056         * tests/test-mkdir.c (main): Likewise.
10057         * tests/test-mkdirat.c (main): Likewise.
10058         * tests/test-mkfifo.c (main): Likewise.
10059         * tests/test-mkfifoat.c (main): Likewise.
10060         * tests/test-mknod.c (main): Likewise.
10061         * tests/test-readlink.c (main): Likewise.
10062         * tests/test-remove.c (main): Likewise.
10063         * tests/test-rename.c (main): Likewise.
10064         * tests/test-renameat.c (main): Likewise.
10065         * tests/test-rmdir.c (main): Likewise.
10066         * tests/test-symlink.c (main): Likewise.
10067         * tests/test-symlinkat.c (main): Likewise.
10068         * tests/test-unlink.c (main): Likewise.
10069         * tests/test-unlinkat.c (main): Likewise.
10070         * tests/test-utimens.c (main): Likewise.
10071         * tests/test-utimensat.c (main): Likewise.
10072         * modules/areadlink-tests (Depends-on): Add ignore-value.
10073         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10074         * modules/areadlinkat-tests (Depends-on): Likewise.
10075         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10077         * modules/canonicalize-tests (Depends-on): Likewise.
10078         * modules/chown-tests (Depends-on): Likewise.
10079         * modules/fdutimensat-tests (Depends-on): Likewise.
10080         * modules/futimens-tests (Depends-on): Likewise.
10081         * modules/lchown-tests (Depends-on): Likewise.
10082         * modules/link-tests (Depends-on): Likewise.
10083         * modules/linkat-tests (Depends-on): Likewise.
10084         * modules/lstat-tests (Depends-on): Likewise.
10085         * modules/mkdir-tests (Depends-on): Likewise.
10086         * modules/mkfifo-tests (Depends-on): Likewise.
10087         * modules/mkfifoat-tests (Depends-on): Likewise.
10088         * modules/mknod-tests (Depends-on): Likewise.
10089         * modules/openat-tests (Depends-on): Likewise.
10090         * modules/readlink-tests (Depends-on): Likewise.
10091         * modules/remove-tests (Depends-on): Likewise.
10092         * modules/rename-tests (Depends-on): Likewise.
10093         * modules/renameat-tests (Depends-on): Likewise.
10094         * modules/rmdir-tests (Depends-on): Likewise.
10095         * modules/symlink-tests (Depends-on): Likewise.
10096         * modules/symlinkat-tests (Depends-on): Likewise.
10097         * modules/unlink-tests (Depends-on): Likewise.
10098         * modules/utimens-tests (Depends-on): Likewise.
10099         * modules/utimensat-tests (Depends-on): Likewise.
10100
10101 2010-01-31  Bruno Haible  <bruno@clisp.org>
10102
10103         Perform the same test for many <math.h> functions.
10104         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10105         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10106         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10107         of gl_MATHFUNC.
10108         * modules/acos (configure.ac): Likewise.
10109         * modules/asin (configure.ac): Likewise.
10110         * modules/atan (configure.ac): Likewise.
10111         * modules/atan2 (configure.ac): Likewise.
10112         * modules/cbrt (configure.ac): Likewise.
10113         * modules/copysign (configure.ac): Likewise.
10114         * modules/cos (configure.ac): Likewise.
10115         * modules/cosh (configure.ac): Likewise.
10116         * modules/erf (configure.ac): Likewise.
10117         * modules/erfc (configure.ac): Likewise.
10118         * modules/exp (configure.ac): Likewise.
10119         * modules/fmod (configure.ac): Likewise.
10120         * modules/hypot (configure.ac): Likewise.
10121         * modules/j0 (configure.ac): Likewise.
10122         * modules/j1 (configure.ac): Likewise.
10123         * modules/jn (configure.ac): Likewise.
10124         * modules/lgamma (configure.ac): Likewise.
10125         * modules/log (configure.ac): Likewise.
10126         * modules/log10 (configure.ac): Likewise.
10127         * modules/log1p (configure.ac): Likewise.
10128         * modules/pow (configure.ac): Likewise.
10129         * modules/remainder (configure.ac): Likewise.
10130         * modules/sin (configure.ac): Likewise.
10131         * modules/sinh (configure.ac): Likewise.
10132         * modules/tan (configure.ac): Likewise.
10133         * modules/tanh (configure.ac): Likewise.
10134         * modules/y0 (configure.ac): Likewise.
10135         * modules/y1 (configure.ac): Likewise.
10136         * modules/yn (configure.ac): Likewise.
10137         Suggested by Paolo Bonzini.
10138
10139 2010-01-31  Bruno Haible  <bruno@clisp.org>
10140
10141         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10142
10143 2010-01-31  Bruno Haible  <bruno@clisp.org>
10144
10145         Work around getdelim() bug on FreeBSD 8.0.
10146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10147         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10148         not work.
10149         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10150         is 1.
10151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10152         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10153         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10154         a non-zero size.
10155         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10156
10157 2010-01-31  Bruno Haible  <bruno@clisp.org>
10158
10159         Work around getline() bug on FreeBSD 8.0.
10160         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10161         and a non-zero size.
10162         * tests/test-getline.c (main): Likewise.
10163         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10164         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10165
10166 2010-01-28  Eric Blake  <ebb9@byu.net>
10167
10168         regex: fix build failure
10169         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10170         platforms.
10171
10172 2010-01-28  Jim Meyering  <meyering@redhat.com>
10173
10174         regex: do not ignore memory allocation failure
10175         * lib/regex_internal.c (create_cd_newstate): Detect
10176         re_node_set_init_copy failure.   Extracted from glibc commit
10177         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10178
10179         regex: sync more white-space changes from libc
10180         * lib/regex_internal.c: White-space only changes.
10181         * lib/regexec.c: Likewise.
10182
10183         regex: add many uses of __attribute_warn_unused_result__
10184         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10185         * lib/regexec.c: Likewise.
10186         Extracted from a messy glibc commit.
10187
10188         regcomp.c: spelling and merge-artifact from glibc
10189         * lib/regcomp.c: Merge remainder of glibc's
10190         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10191
10192         regcomp.c: sync white-space changes from glibc
10193         * lib/regcomp.c: Merge to accommodate white space
10194         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10195
10196         regcomp.c: do not ignore internal return values
10197         * lib/regcomp.c: Do not ignore internal return values.
10198         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10199         but without its white-space changes and spelling fixes.
10200
10201         regex_internal.h: define __attribute_warn_unused_result__
10202         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10203
10204         maint: add a syntax-check rule to check for vulnerable Makefile.in
10205         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10206
10207 2010-01-27  Jim Meyering  <meyering@redhat.com>
10208
10209         ncftpput-ftp: clean up spaces
10210         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10211         Remove trailing blanks.
10212
10213 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10214
10215         * build-aux/git-version-gen: Fix copyright statement.
10216         * build-aux/gnupload: Likewise.
10217         * tests/test-arcfour.c: Likewise.
10218         * tests/test-arctwo.c: Likewise.
10219         * tests/test-count-one-bits.c: Likewise.
10220         * tests/test-crc.c: Likewise.
10221         * tests/test-des.c: Likewise.
10222         * tests/test-gc-arcfour.c: Likewise.
10223         * tests/test-gc-arctwo.c: Likewise.
10224         * tests/test-gc-des.c: Likewise.
10225         * tests/test-gc-hmac-md5.c: Likewise.
10226         * tests/test-gc-hmac-sha1.c: Likewise.
10227         * tests/test-gc-md2.c: Likewise.
10228         * tests/test-gc-md4.c: Likewise.
10229         * tests/test-gc-md5.c: Likewise.
10230         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10231         * tests/test-gc-rijndael.c: Likewise.
10232         * tests/test-gc-sha1.c: Likewise.
10233         * tests/test-gc.c: Likewise.
10234         * tests/test-gethostname.c: Likewise.
10235         * tests/test-gettimeofday.c: Likewise.
10236         * tests/test-hash.c: Likewise.
10237         * tests/test-hmac-md5.c: Likewise.
10238         * tests/test-hmac-sha1.c: Likewise.
10239         * tests/test-md2.c: Likewise.
10240         * tests/test-md4.c: Likewise.
10241         * tests/test-md5.c: Likewise.
10242         * tests/test-memchr.c: Likewise.
10243         * tests/test-memchr2.c: Likewise.
10244         * tests/test-memcmp.c: Likewise.
10245         * tests/test-memmem.c: Likewise.
10246         * tests/test-memrchr.c: Likewise.
10247         * tests/test-rawmemchr.c: Likewise.
10248         * tests/test-read-file.c: Likewise.
10249         * tests/test-rijndael.c: Likewise.
10250         * tests/test-sockets.c: Likewise.
10251         * tests/test-strchrnul.c: Likewise.
10252         * tests/test-strstr.c: Likewise.
10253         * tests/test-strtod.c: Likewise.
10254         * build-aux/ncftpput-ftp: Likewise.
10255
10256 2010-01-26  Eric Blake  <ebb9@byu.net>
10257
10258         ignore-value: update recommended header name
10259         * modules/ignore-value (Include): Only use <> for headers that
10260         exist in glibc.
10261
10262 2010-01-26  Jim Meyering  <meyering@redhat.com>
10263
10264         test-userspec.c: avoid compiler warnings
10265         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10266         and "initialization discards qualifiers..." warnings.
10267         Put the first "uid" in its own scope, and make char* members "const".
10268
10269 2010-01-25  Bruno Haible  <bruno@clisp.org>
10270
10271         gnulib-tool: Make warning diagnostics consistent.
10272         * gnulib-tool (func_warning): New function.
10273         Use it everywhere where gnulib-tool produces output to stderr and it is
10274         not a fatal error.
10275
10276 2010-01-25  Bruno Haible  <bruno@clisp.org>
10277
10278         Fix test dependencies.
10279         * modules/xstrtol-tests (Depends-on): Add inttypes.
10280         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10281
10282 2010-01-25 Pádraig Brady <P@draigBrady.com>
10283
10284         syntax-check: detect incorrect boolean macro values in config.h
10285         * modules/maintainer-makefile (configure.ac): Parameterize the location
10286         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10287         The logic is from Eric Blake and the location indicated by Jim Meyering.
10288         Note the more natural CONFIG_HEADER name is prohibited by automake
10289         for backwards compatibility reasons.
10290         * top/maint.mk (sc_Wundef_boolean): New rule.
10291
10292 2010-01-25  Jim Meyering  <meyering@redhat.com>
10293
10294         bootstrap: detect MacOS 10.6's shasum, too
10295         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10296         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10297
10298 2010-01-23  Jim Meyering  <meyering@redhat.com>
10299
10300         xstrtoll: new module
10301         * modules/xstrtoll: New file.
10302         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10303         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10304         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10305         ./configure fails if you use this module and lack "long long".
10306         * modules/xstrtoll-tests: New module.
10307         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10308         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10309         new init.sh-based test framework.
10310
10311 2010-01-24  Bruno Haible  <bruno@clisp.org>
10312
10313         Tests for module 'yn'.
10314         * modules/yn-tests: New file.
10315         * tests/test-yn.c: New file.
10316
10317         Tests for module 'y1'.
10318         * modules/y1-tests: New file.
10319         * tests/test-y1.c: New file.
10320
10321         Tests for module 'y0'.
10322         * modules/y0-tests: New file.
10323         * tests/test-y0.c: New file.
10324
10325         Tests for module 'tanh'.
10326         * modules/tanh-tests: New file.
10327         * tests/test-tanh.c: New file.
10328
10329         Tests for module 'tan'.
10330         * modules/tan-tests: New file.
10331         * tests/test-tan.c: New file.
10332
10333         Tests for module 'sqrt'.
10334         * modules/sqrt-tests: New file.
10335         * tests/test-sqrt.c: New file.
10336
10337         Tests for module 'sinh'.
10338         * modules/sinh-tests: New file.
10339         * tests/test-sinh.c: New file.
10340
10341         Tests for module 'sin'.
10342         * modules/sin-tests: New file.
10343         * tests/test-sin.c: New file.
10344
10345         Tests for module 'rint'.
10346         * modules/rint-tests: New file.
10347         * tests/test-rint.c: New file.
10348
10349         Tests for module 'remainder'.
10350         * modules/remainder-tests: New file.
10351         * tests/test-remainder.c: New file.
10352
10353         Tests for module 'pow'.
10354         * modules/pow-tests: New file.
10355         * tests/test-pow.c: New file.
10356
10357         Tests for module 'nextafter'.
10358         * modules/nextafter-tests: New file.
10359         * tests/test-nextafter.c: New file.
10360
10361         Tests for module 'modf'.
10362         * modules/modf-tests: New file.
10363         * tests/test-modf.c: New file.
10364
10365         Tests for module 'logb'.
10366         * modules/logb-tests: New file.
10367         * tests/test-logb.c: New file.
10368
10369         Tests for module 'log1p'.
10370         * modules/log1p-tests: New file.
10371         * tests/test-log1p.c: New file.
10372
10373         Tests for module 'log10'.
10374         * modules/log10-tests: New file.
10375         * tests/test-log10.c: New file.
10376
10377         Tests for module 'log'.
10378         * modules/log-tests: New file.
10379         * tests/test-log.c: New file.
10380
10381         Tests for module 'lgamma'.
10382         * modules/lgamma-tests: New file.
10383         * tests/test-lgamma.c: New file.
10384
10385         Tests for module 'ldexp'.
10386         * modules/ldexp-tests: New file.
10387         * tests/test-ldexp.c: New file.
10388
10389         Tests for module 'jn'.
10390         * modules/jn-tests: New file.
10391         * tests/test-jn.c: New file.
10392
10393         Tests for module 'j1'.
10394         * modules/j1-tests: New file.
10395         * tests/test-j1.c: New file.
10396
10397         Tests for module 'j0'.
10398         * modules/j0-tests: New file.
10399         * tests/test-j0.c: New file.
10400
10401         Tests for module 'hypot'.
10402         * modules/hypot-tests: New file.
10403         * tests/test-hypot.c: New file.
10404
10405         Tests for module 'fmod'.
10406         * modules/fmod-tests: New file.
10407         * tests/test-fmod.c: New file.
10408
10409         Tests for module 'fabs'.
10410         * modules/fabs-tests: New file.
10411         * tests/test-fabs.c: New file.
10412
10413         Tests for module 'exp'.
10414         * modules/exp-tests: New file.
10415         * tests/test-exp.c: New file.
10416
10417         Tests for module 'erfc'.
10418         * modules/erfc-tests: New file.
10419         * tests/test-erfc.c: New file.
10420
10421         Tests for module 'erf'.
10422         * modules/erf-tests: New file.
10423         * tests/test-erf.c: New file.
10424
10425         Tests for module 'cosh'.
10426         * modules/cosh-tests: New file.
10427         * tests/test-cosh.c: New file.
10428
10429         Tests for module 'cos'.
10430         * modules/cos-tests: New file.
10431         * tests/test-cos.c: New file.
10432
10433         Tests for module 'copysign'.
10434         * modules/copysign-tests: New file.
10435         * tests/test-copysign.c: New file.
10436
10437         Tests for module 'cbrt'.
10438         * modules/cbrt-tests: New file.
10439         * tests/test-cbrt.c: New file.
10440
10441         Tests for module 'atan2'.
10442         * modules/atan2-tests: New file.
10443         * tests/test-atan2.c: New file.
10444
10445         Tests for module 'atan'.
10446         * modules/atan-tests: New file.
10447         * tests/test-atan.c: New file.
10448
10449         Tests for module 'asin'.
10450         * modules/asin-tests: New file.
10451         * tests/test-asin.c: New file.
10452
10453         Tests for module 'acos'.
10454         * modules/acos-tests: New file.
10455         * tests/test-acos.c: New file.
10456
10457 2010-01-24  Bruno Haible  <bruno@clisp.org>
10458
10459         Fix tests for common <math.h> functions.
10460         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10461         code snippet that references the function pointer, rather than merely
10462         calling the function. Substitute the FUNC_LIBM variable.
10463         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10464         * modules/acos (configure.ac): Likewise.
10465         * modules/asin (configure.ac): Likewise.
10466         * modules/atan (configure.ac): Likewise.
10467         * modules/atan2 (configure.ac): Likewise.
10468         * modules/cbrt (configure.ac): Likewise.
10469         * modules/copysign (configure.ac): Likewise.
10470         * modules/cos (configure.ac): Likewise.
10471         * modules/cosh (configure.ac): Likewise.
10472         * modules/erf (configure.ac): Likewise.
10473         * modules/erfc (configure.ac): Likewise.
10474         * modules/exp (configure.ac): Likewise.
10475         * modules/fabs (configure.ac): Likewise.
10476         * modules/fmod (configure.ac): Likewise.
10477         * modules/hypot (configure.ac): Likewise.
10478         * modules/j0 (configure.ac): Likewise.
10479         * modules/j1 (configure.ac): Likewise.
10480         * modules/jn (configure.ac): Likewise.
10481         * modules/ldexp (configure.ac): Likewise.
10482         * modules/lgamma (configure.ac): Likewise.
10483         * modules/log (configure.ac): Likewise.
10484         * modules/log10 (configure.ac): Likewise.
10485         * modules/log1p (configure.ac): Likewise.
10486         * modules/logb (configure.ac): Likewise.
10487         * modules/modf (configure.ac): Likewise.
10488         * modules/nextafter (configure.ac): Likewise.
10489         * modules/pow (configure.ac): Likewise.
10490         * modules/remainder (configure.ac): Likewise.
10491         * modules/rint (configure.ac): Likewise.
10492         * modules/sin (configure.ac): Likewise.
10493         * modules/sinh (configure.ac): Likewise.
10494         * modules/tan (configure.ac): Likewise.
10495         * modules/tanh (configure.ac): Likewise.
10496         * modules/y0 (configure.ac): Likewise.
10497         * modules/y1 (configure.ac): Likewise.
10498         * modules/yn (configure.ac): Likewise.
10499
10500 2010-01-24  Bruno Haible  <bruno@clisp.org>
10501
10502         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10503         * tests/test-acosl.c (x): New variable.
10504         (main): Store argument in x and fetch it from x.
10505         * tests/test-asinl.c (x): New variable.
10506         (main): Store argument in x and fetch it from x.
10507         * tests/test-atanl.c (x): New variable.
10508         (main): Store argument in x and fetch it from x.
10509         * tests/test-cosl.c (x): New variable.
10510         (main): Store argument in x and fetch it from x.
10511         * tests/test-expl.c (x): New variable.
10512         (main): Store argument in x and fetch it from x.
10513         * tests/test-logl.c (x): New variable.
10514         (main): Store argument in x and fetch it from x.
10515         * tests/test-sinl.c (x): New variable.
10516         (main): Store argument in x and fetch it from x.
10517         * tests/test-sqrtl.c (x): New variable.
10518         (main): Store argument in x and fetch it from x.
10519         * tests/test-tanl.c (x): New variable.
10520         (main): Store argument in x and fetch it from x.
10521
10522 2010-01-24  Bruno Haible  <bruno@clisp.org>
10523
10524         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10525         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10526         assignments to the initial TESTS_ENVIRONMENT.
10527         * doc/gnulib.texi (Unit test modules): Document it.
10528         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10529         TESTS_ENVIRONMENT.
10530         * modules/btowc-tests (Makefile.am): Likewise.
10531         * modules/c-stack-tests (Makefile.am): Likewise.
10532         * modules/c-strcase-tests (Makefile.am): Likewise.
10533         * modules/copy-file-tests (Makefile.am): Likewise.
10534         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10535         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10536         * modules/mbrtowc-tests (Makefile.am): Likewise.
10537         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10538         * modules/mbscasestr-tests (Makefile.am): Likewise.
10539         * modules/mbschr-tests (Makefile.am): Likewise.
10540         * modules/mbscspn-tests (Makefile.am): Likewise.
10541         * modules/mbsinit-tests (Makefile.am): Likewise.
10542         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10543         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10544         * modules/mbspbrk-tests (Makefile.am): Likewise.
10545         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10546         * modules/mbsrchr-tests (Makefile.am): Likewise.
10547         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10548         * modules/mbsspn-tests (Makefile.am): Likewise.
10549         * modules/mbsstr-tests (Makefile.am): Likewise.
10550         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10551         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10552         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10553         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10554         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10555         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10556         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10557         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10558         * modules/wcrtomb-tests (Makefile.am): Likewise.
10559         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10560         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10561         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10562         assignments from TESTS_ENVIRONMENT.
10563         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10564         augmentation.
10565         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10566         * modules/atexit-tests (Makefile.am): Likewise.
10567         * modules/binary-io-tests (Makefile.am): Likewise.
10568         * modules/closein-tests (Makefile.am): Likewise.
10569         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10570         * modules/exclude-tests (Makefile.am): Likewise.
10571         * modules/fflush-tests (Makefile.am): Likewise.
10572         * modules/fpending-tests (Makefile.am): Likewise.
10573         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10574         * modules/freadahead-tests (Makefile.am): Likewise.
10575         * modules/freadptr-tests (Makefile.am): Likewise.
10576         * modules/freadseek-tests (Makefile.am): Likewise.
10577         * modules/fseek-tests (Makefile.am): Likewise.
10578         * modules/fseeko-tests (Makefile.am): Likewise.
10579         * modules/ftell-tests (Makefile.am): Likewise.
10580         * modules/ftello-tests (Makefile.am): Likewise.
10581         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10582         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10583         * modules/lseek-tests (Makefile.am): Likewise.
10584         * modules/parse-duration-tests (Makefile.am): Likewise.
10585         * modules/perror-tests (Makefile.am): Likewise.
10586         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10587         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10588         * modules/pipe-tests (Makefile.am): Likewise.
10589         * modules/pread-tests (Makefile.am): Likewise.
10590         * modules/printf-posix-tests (Makefile.am): Likewise.
10591         * modules/select-tests (Makefile.am): Likewise.
10592         * modules/sigpipe-tests (Makefile.am): Likewise.
10593         * modules/tsearch-tests (Makefile.am): Likewise.
10594         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10595         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10596         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10597         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10598         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10599         * modules/version-etc-tests (Makefile.am): Likewise.
10600         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10601         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10602         * modules/xalloc-die-tests (Makefile.am): Likewise.
10603         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10604         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10605         * modules/xstrtol-tests (Makefile.am): Likewise.
10606         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10607         * modules/yesno-tests (Makefile.am): Likewise.
10608         Suggested by Jim Meyering.
10609
10610 2010-01-24  Bruno Haible  <bruno@clisp.org>
10611
10612         More documentation.
10613         * doc/gnulib.texi (Writing modules): New chapter.
10614         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10615         the new chapter.
10616
10617 2010-01-24  Jim Meyering  <meyering@redhat.com>
10618
10619         maint.mk: do not prepend "./" after filtering
10620         * top/maint.mk (_prepend_srcdir_prefix): New variable
10621         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10622         "./" when $(srcdir) is ".".
10623
10624         define STREQ(a,b) consistently, removing useless parentheses
10625         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10626         since the only risk is that "a" or "b" contains an unparenthesized
10627         comma, but if either did that, STREQ would have 3 or more arguments.
10628         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10629         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10630         * lib/hash-triple.c (STREQ): Likewise.
10631         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10632         * lib/getugroups.c (STREQ): Likewise.
10633
10634 2010-01-23  Jim Meyering  <meyering@redhat.com>
10635
10636         maint.mk: fix syntax-check in a non-srcdir build directory
10637         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10638         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10639
10640 2010-01-22  Jim Meyering  <meyering@redhat.com>
10641
10642         userspec: add unit tests
10643         * tests/test-userspec.c: New file.
10644         * modules/userspec-tests: Likewise.
10645
10646 2010-01-21  Jim Meyering  <meyering@redhat.com>
10647
10648         maint.mk: handle source file names containing "." robustly
10649         * top/maint.mk (_dot_escaped_srcdir): Define.
10650         (VC_LIST): Use it in LHS of sed substitution.
10651
10652 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10653
10654         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10655         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10656         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10657         from a non-srcdir build.
10658
10659 2010-01-20  Eric Blake  <ebb9@byu.net>
10660
10661         warn-on-use: use instead of link-warning
10662         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10663         * modules/unistd (Depends-on, Makefile.am): Likewise.
10664         * modules/arpa_inet (Depends-on): Replace link-warning with
10665         warn-on-use.
10666         (Makefile.am): Update rules accordingly.
10667         * modules/ctype (Depends-on, Makefile.am): Likewise.
10668         * modules/dirent (Depends-on, Makefile.am): Likewise.
10669         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10670         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10671         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10672         * modules/locale (Depends-on, Makefile.am): Likewise.
10673         * modules/math (Depends-on, Makefile.am): Likewise.
10674         * modules/search (Depends-on, Makefile.am): Likewise.
10675         * modules/signal (Depends-on, Makefile.am): Likewise.
10676         * modules/spawn (Depends-on, Makefile.am): Likewise.
10677         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10678         * modules/string (Depends-on, Makefile.am): Likewise.
10679         * modules/strings (Depends-on, Makefile.am): Likewise.
10680         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10681         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10682         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10683         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10684         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10685         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10686         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10687         * modules/wchar (Depends-on, Makefile.am): Likewise.
10688         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10689         should be poisoned.
10690         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10691         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10692         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10695         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10696         * m4/math_h.m4 (gl_MATH_H): Likewise.
10697         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10698         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10699         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10700         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10701         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10703         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10711         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10712         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10713         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10714         GL_LINK_WARNING.
10715         * lib/ctype.in.h: Likewise.
10716         * lib/dirent.in.h: Likewise.
10717         * lib/fcntl.in.h: Likewise.
10718         * lib/inttypes.in.h: Likewise.
10719         * lib/langinfo.in.h: Likewise.
10720         * lib/locale.in.h: Likewise.
10721         * lib/math.in.h: Likewise.
10722         * lib/search.in.h: Likewise.
10723         * lib/signal.in.h: Likewise.
10724         * lib/spawn.in.h: Likewise.
10725         * lib/stdio.in.h: Likewise.
10726         * lib/stdlib.in.h: Likewise.
10727         * lib/string.in.h: Likewise.
10728         * lib/strings.in.h: Likewise.
10729         * lib/sys_file.in.h: Likewise.
10730         * lib/sys_ioctl.in.h: Likewise.
10731         * lib/sys_select.in.h: Likewise.
10732         * lib/sys_socket.in.h: Likewise.
10733         * lib/sys_stat.in.h: Likewise.
10734         * lib/sys_times.in.h: Likewise.
10735         * lib/sys_utsname.in.h: Likewise.
10736         * lib/unistd.in.h: Likewise.
10737         * lib/wchar.in.h: Likewise.
10738
10739 2010-01-20  Bruno Haible  <bruno@clisp.org>
10740
10741         Avoid duplicate -lm.
10742         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10743         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10745         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10746         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10747         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10748         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10749         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10750         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10751         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10752         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10753         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10754         Reported by Paolo Bonzini.
10755
10756 2010-01-19  Bruno Haible  <bruno@clisp.org>
10757
10758         langinfo, nl_langinfo: Relicense under LGPLv2+.
10759         * modules/langinfo (License): Change to LGPLv2+.
10760         * modules/nl_langinfo (License): Likewise.
10761         Patch by David Lutterkort <lutter@redhat.com>.
10762
10763 2010-01-19  Bruno Haible  <bruno@clisp.org>
10764
10765         Avoid compilation error with cc on OSF/1 5.1.
10766         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10767         statement, not before.
10768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10769
10770 2010-01-18  Bruno Haible  <bruno@clisp.org>
10771
10772         Avoid a link error due to the __printf__ symbol.
10773         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10774         and 2.6.x.
10775         (__format__, __printf__): Remove definitions.
10776         * lib/argp-fmtstream.h: Likewise.
10777         * lib/argp.h: Likewise.
10778         * lib/error.h: Likewise.
10779         * lib/vasnprintf.h: Likewise.
10780         * lib/xprintf.h: Likewise.
10781         * lib/xvasprintf.h: Likewise.
10782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10783
10784 2010-01-18  Bruno Haible  <bruno@clisp.org>
10785
10786         Tests for module 'tanl'.
10787         * modules/tanl-tests: New file.
10788         * tests/test-tanl.c: New file.
10789
10790         Tests for module 'sqrtl'.
10791         * modules/sqrtl-tests: New file.
10792         * tests/test-sqrtl.c: New file.
10793
10794         Tests for module 'sinl'.
10795         * modules/sinl-tests: New file.
10796         * tests/test-sinl.c: New file.
10797
10798         Tests for module 'logl'.
10799         * modules/logl-tests: New file.
10800         * tests/test-logl.c: New file.
10801
10802         Tests for module 'expl'.
10803         * modules/expl-tests: New file.
10804         * tests/test-expl.c: New file.
10805
10806         Tests for module 'cosl'.
10807         * modules/cosl-tests: New file.
10808         * tests/test-cosl.c: New file.
10809
10810         Tests for module 'atanl'.
10811         * modules/atanl-tests: New file.
10812         * tests/test-atanl.c: New file.
10813
10814         Tests for module 'asinl'.
10815         * modules/asinl-tests: New file.
10816         * tests/test-asinl.c: New file.
10817
10818         Tests for module 'acosl'.
10819         * modules/acosl-tests: New file.
10820         * tests/test-acosl.c: New file.
10821
10822         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10823         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10824         tanl): Use the standard gnulib idiom.
10825         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10826         * lib/sinl.c: Likewise.
10827         * lib/tanl.c: Don't include trigl.c.
10828         (kernel_tanl): Make static.
10829         * lib/sincosl.c: Include trigl.h first.
10830         * lib/trigl.c: Likewise.
10831         * m4/acosl.m4: New file.
10832         * m4/asinl.m4: New file.
10833         * m4/atanl.m4: New file.
10834         * m4/cosl.m4: New file.
10835         * m4/expl.m4: New file.
10836         * m4/logl.m4: New file.
10837         * m4/sinl.m4: New file.
10838         * m4/sqrtl.m4: New file.
10839         * m4/tanl.m4: New file.
10840         * m4/mathl.m4: Remove file.
10841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10842         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10843         Don't initialize GNULIB_MATHL.
10844         * modules/acosl: New file.
10845         * modules/asinl: New file.
10846         * modules/atanl: New file.
10847         * modules/cosl: New file.
10848         * modules/expl: New file.
10849         * modules/logl: New file.
10850         * modules/sinl: New file.
10851         * modules/sqrtl: New file.
10852         * modules/tanl: New file.
10853         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10854         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10855         substitute GNULIB_MATHL.
10856         * modules/mathl: Rewritten.
10857         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10858         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10859         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10860         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10861         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10862         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10863         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10864         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10865         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10866
10867 2010-01-18  Bruno Haible  <bruno@clisp.org>
10868
10869         sqrt: Make gl_FUNC_SQRT requirable.
10870         * m4/sqrt.m4: New file.
10871         * modules/sqrt (Files): Add it.
10872         (configure.ac): Invoke gl_FUNC_SQRT.
10873
10874 2010-01-18  Bruno Haible  <bruno@clisp.org>
10875
10876         New modules for common <math.h> functions.
10877         * m4/mathfunc.m4: New file.
10878         * modules/acos: New file.
10879         * modules/asin: New file.
10880         * modules/atan: New file.
10881         * modules/atan2: New file.
10882         * modules/cbrt: New file.
10883         * modules/copysign: New file.
10884         * modules/cos: New file.
10885         * modules/cosh: New file.
10886         * modules/erf: New file.
10887         * modules/erfc: New file.
10888         * modules/exp: New file.
10889         * modules/fabs: New file.
10890         * modules/fmod: New file.
10891         * modules/hypot: New file.
10892         * modules/j0: New file.
10893         * modules/j1: New file.
10894         * modules/jn: New file.
10895         * modules/ldexp: New file.
10896         * modules/lgamma: New file.
10897         * modules/log: New file.
10898         * modules/log10: New file.
10899         * modules/log1p: New file.
10900         * modules/logb: New file.
10901         * modules/modf: New file.
10902         * modules/nextafter: New file.
10903         * modules/pow: New file.
10904         * modules/remainder: New file.
10905         * modules/rint: New file.
10906         * modules/sin: New file.
10907         * modules/sinh: New file.
10908         * modules/sqrt: New file.
10909         * modules/tan: New file.
10910         * modules/tanh: New file.
10911         * modules/y0: New file.
10912         * modules/y1: New file.
10913         * modules/yn: New file.
10914         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10915         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10916         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10917         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10918         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10919         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10920         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10921         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10922         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10923         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10924         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10925         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10926         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10927         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10928         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10929         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10930         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10931         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10932         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10933         * doc/posix-functions/log.texi: Mention the 'log' module.
10934         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10935         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10936         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10937         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10938         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10939         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10940         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10941         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10942         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10943         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10944         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10945         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10946         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10947         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10948         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10949         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10950
10951 2010-01-18  Jim Meyering  <meyering@redhat.com>
10952
10953         ignore-value: relax license to LGPLv2+
10954         * modules/ignore-value (License): Relax to LGPLv2+.
10955
10956         getdate: don't leak when TZ contains two or more '"'s
10957         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10958         double quote in TZ after the first one.
10959
10960         readtokens: do not leak internal token_lengths buffer
10961         * lib/readtokens.c (readtokens): Free the local, lengths,
10962         when the supplied "token_lengths" parameter is NULL.
10963
10964 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10965
10966         Fix a couple of missing LIBTHREAD link failures on AIX.
10967         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10968         $(LIBTHREAD).
10969         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10970
10971         Link test-poll against INET_PTON_LIB.
10972         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10973         for inet_pton on Solaris 10.
10974
10975 2010-01-17  Bruno Haible  <bruno@clisp.org>
10976
10977         unistdio/*-sprintf: Fix typo in module description.
10978         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10979         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10980         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10981         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10982         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10983         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10984         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10986
10987 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10988
10989         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10990         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10991         variables in shell case patterns, for AIX and HP-UX ksh.
10992
10993         Split large sed scripts, for HP-UX sed.
10994         * modules/stdio: Split sed scripts around 50 sed commands,
10995         to avoid HP-UX limit of 99 commands, in the near future.
10996         * modules/string: Likewise.
10997         * modules/unistd: Likewise.
10998
10999         gnulib-tool: avoid writing in the current directory.
11000         * gnulib-tool (func_emit_lib_Makefile_am)
11001         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11002         not in the current directory, so concurrent gnulib-tool
11003         instances do not interfere.
11004
11005 2010-01-16  Jim Meyering  <meyering@redhat.com>
11006
11007         doc: update users.txt
11008         * users.txt: Add grep.
11009         (diffutils, gzip): Update URLs.
11010
11011 2010-01-12  Bruno Haible  <bruno@clisp.org>
11012
11013         posix_spawn: Avoid test failure on Cygwin.
11014         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11015         characters.
11016         Reported by Simon Josefsson.
11017
11018 2010-01-12  Bruno Haible  <bruno@clisp.org>
11019
11020         * tests/test-cond.c (main): When skipping the test, show the reason.
11021
11022 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11023
11024         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11025
11026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11027
11028         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11029         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11030
11031 2010-01-12  Eric Blake  <ebb9@byu.net>
11032
11033         build: guarantee AS_VAR_IF
11034         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11035         (gl_AS_VAR_IF): Move...
11036         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11037         Reported by Simon Josefsson.
11038
11039 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11040
11041         * lib/stdio.in.h: Fix typo.
11042
11043 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11044
11045         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11046         libgpg-error.
11047
11048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11049
11050         * tests/test-xalloc-die.sh: Use $EXEEXT.
11051
11052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11053             Bruno Haible  <bruno@clisp.org>
11054
11055         getlogin, getlogin_r: Avoid test failure.
11056         * tests/test-getlogin.c: Include <stdio.h>.
11057         (main): Skip the test when the function fails because stdin is not a
11058         tty.
11059         * tests/test-getlogin_r.c: Include <stdio.h>.
11060         (main): Skip the test when the function fails because stdin is not a
11061         tty.
11062
11063 2010-01-11  Eric Blake  <ebb9@byu.net>
11064
11065         tests: avoid more large file warnings
11066         * tests/test-fflush.c: Avoid warning about ftell use.
11067         * tests/test-fseek.c: Avoid warning about fseek use.
11068
11069 2010-01-10  Bruno Haible  <bruno@clisp.org>
11070
11071         nproc: Work better on Linux when /proc and /sys are not mounted.
11072         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11073         as lower bound when, on glibc/Linux systems,
11074         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11075         Suggested by Pádraig Brady <P@draigbrady.com>.
11076         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11077
11078         nproc: Refactor.
11079         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11080         extracted from num_processors.
11081         (num_processors): Call it.
11082
11083 2010-01-11  Jim Meyering  <meyering@redhat.com>
11084
11085         utimecmp: avoid new warning from upcoming gcc-4.5.0
11086         * lib/utimecmp.c (BILLION): Define using #define rather than an
11087         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11088
11089 2010-01-11  Eric Blake  <ebb9@byu.net>
11090
11091         math: add portability warnings for classification macros
11092         * modules/math (Depends-on): Add warn-on-use.
11093         (Makefile.am): Provide new substitutions.
11094         * m4/math_h.m4 (gl_MATH_H): Require inline.
11095         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11096         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11097         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11098         implement warnings.
11099
11100         unistd: warn on use of environ without module
11101         * modules/unistd (Depends-on): Add warn-on-use.
11102         (Makefile.am): Provide new substitutions.
11103         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11104         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11105
11106         stdio: warn on suspicious uses
11107         * modules/stdio (Depends-on): Add warn-on-use.
11108         (Makefile.am): Provide new substitutions.
11109         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11110         fseeko.
11111         * lib/stdio.in.h (gets): Always warn on use.
11112         (fseek, ftell): Adjust when warnings are issued, and honor
11113         _GL_NO_LARGE_FILES as a way to silence the warning.
11114         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11115         any warning about large file offsets.
11116         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11117         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11118         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11119         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11120         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11121         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11122         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11123         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11124
11125         warn-on-use: new module
11126         * modules/warn-on-use: New file.
11127         * build-aux/warn-on-use.h: Likewise.
11128         * m4/warn-on-use.m4: Likewise.
11129         * MODULES.html.sh (Support for building): Mention it.
11130
11131 2010-01-10  Bruno Haible  <bruno@clisp.org>
11132
11133         Tests for module 'unistr/u32-strdup'.
11134         * modules/unistr/u32-strdup-tests: New file.
11135         * tests/unistr/test-u32-strdup.c: New file.
11136
11137         Tests for module 'unistr/u16-strdup'.
11138         * modules/unistr/u16-strdup-tests: New file.
11139         * tests/unistr/test-u16-strdup.c: New file.
11140
11141         Tests for module 'unistr/u8-strdup'.
11142         * modules/unistr/u8-strdup-tests: New file.
11143         * tests/unistr/test-u8-strdup.c: New file.
11144         * tests/unistr/test-strdup.h: New file.
11145
11146         Tests for module 'unistr/u32-strncmp'.
11147         * modules/unistr/u32-strncmp-tests: New file.
11148         * tests/unistr/test-u32-strncmp.c: New file.
11149
11150         Tests for module 'unistr/u16-strncmp'.
11151         * modules/unistr/u16-strncmp-tests: New file.
11152         * tests/unistr/test-u16-strncmp.c: New file.
11153
11154         Tests for module 'unistr/u8-strncmp'.
11155         * modules/unistr/u8-strncmp-tests: New file.
11156         * tests/unistr/test-u8-strncmp.c: New file.
11157         * tests/unistr/test-strncmp.h: New file.
11158
11159         Tests for module 'unistr/u32-strcoll'.
11160         * modules/unistr/u32-strcoll-tests: New file.
11161         * tests/unistr/test-u32-strcoll.c: New file.
11162
11163         Tests for module 'unistr/u16-strcoll'.
11164         * modules/unistr/u16-strcoll-tests: New file.
11165         * tests/unistr/test-u16-strcoll.c: New file.
11166
11167         Tests for module 'unistr/u8-strcoll'.
11168         * modules/unistr/u8-strcoll-tests: New file.
11169         * tests/unistr/test-u8-strcoll.c: New file.
11170
11171         Tests for module 'unistr/u32-strcmp'.
11172         * modules/unistr/u32-strcmp-tests: New file.
11173         * tests/unistr/test-u32-strcmp.c: New file.
11174         * tests/unistr/test-u32-strcmp.h: New file.
11175
11176         Tests for module 'unistr/u16-strcmp'.
11177         * modules/unistr/u16-strcmp-tests: New file.
11178         * tests/unistr/test-u16-strcmp.c: New file.
11179         * tests/unistr/test-u16-strcmp.h: New file.
11180
11181         Tests for module 'unistr/u8-strcmp'.
11182         * modules/unistr/u8-strcmp-tests: New file.
11183         * tests/unistr/test-u8-strcmp.c: New file.
11184         * tests/unistr/test-u8-strcmp.h: New file.
11185         * tests/unistr/test-strcmp.h: New file.
11186
11187         Tests for module 'unistr/u32-strncat'.
11188         * modules/unistr/u32-strncat-tests: New file.
11189         * tests/unistr/test-u32-strncat.c: New file.
11190
11191         Tests for module 'unistr/u16-strncat'.
11192         * modules/unistr/u16-strncat-tests: New file.
11193         * tests/unistr/test-u16-strncat.c: New file.
11194
11195         Tests for module 'unistr/u8-strncat'.
11196         * modules/unistr/u8-strncat-tests: New file.
11197         * tests/unistr/test-u8-strncat.c: New file.
11198         * tests/unistr/test-strncat.h: New file.
11199
11200         Tests for module 'unistr/u32-strcat'.
11201         * modules/unistr/u32-strcat-tests: New file.
11202         * tests/unistr/test-u32-strcat.c: New file.
11203
11204         Tests for module 'unistr/u16-strcat'.
11205         * modules/unistr/u16-strcat-tests: New file.
11206         * tests/unistr/test-u16-strcat.c: New file.
11207
11208         Tests for module 'unistr/u8-strcat'.
11209         * modules/unistr/u8-strcat-tests: New file.
11210         * tests/unistr/test-u8-strcat.c: New file.
11211         * tests/unistr/test-strcat.h: New file.
11212
11213         Tests for module 'unistr/u32-stpncpy'.
11214         * modules/unistr/u32-stpncpy-tests: New file.
11215         * tests/unistr/test-u32-stpncpy.c: New file.
11216
11217         Tests for module 'unistr/u16-stpncpy'.
11218         * modules/unistr/u16-stpncpy-tests: New file.
11219         * tests/unistr/test-u16-stpncpy.c: New file.
11220
11221         Tests for module 'unistr/u8-stpncpy'.
11222         * modules/unistr/u8-stpncpy-tests: New file.
11223         * tests/unistr/test-u8-stpncpy.c: New file.
11224         * tests/unistr/test-stpncpy.h: New file.
11225
11226         Tests for module 'unistr/u32-strncpy'.
11227         * modules/unistr/u32-strncpy-tests: New file.
11228         * tests/unistr/test-u32-strncpy.c: New file.
11229
11230         Tests for module 'unistr/u16-strncpy'.
11231         * modules/unistr/u16-strncpy-tests: New file.
11232         * tests/unistr/test-u16-strncpy.c: New file.
11233
11234         Tests for module 'unistr/u8-strncpy'.
11235         * modules/unistr/u8-strncpy-tests: New file.
11236         * tests/unistr/test-u8-strncpy.c: New file.
11237         * tests/unistr/test-strncpy.h: New file.
11238
11239         Tests for module 'unistr/u32-stpcpy'.
11240         * modules/unistr/u32-stpcpy-tests: New file.
11241         * tests/unistr/test-u32-stpcpy.c: New file.
11242
11243         Tests for module 'unistr/u16-stpcpy'.
11244         * modules/unistr/u16-stpcpy-tests: New file.
11245         * tests/unistr/test-u16-stpcpy.c: New file.
11246
11247         Tests for module 'unistr/u8-stpcpy'.
11248         * modules/unistr/u8-stpcpy-tests: New file.
11249         * tests/unistr/test-u8-stpcpy.c: New file.
11250         * tests/unistr/test-stpcpy.h: New file.
11251
11252         Tests for module 'unistr/u32-strcpy'.
11253         * modules/unistr/u32-strcpy-tests: New file.
11254         * tests/unistr/test-u32-strcpy.c: New file.
11255
11256         Tests for module 'unistr/u16-strcpy'.
11257         * modules/unistr/u16-strcpy-tests: New file.
11258         * tests/unistr/test-u16-strcpy.c: New file.
11259
11260         Tests for module 'unistr/u8-strcpy'.
11261         * modules/unistr/u8-strcpy-tests: New file.
11262         * tests/unistr/test-u8-strcpy.c: New file.
11263         * tests/unistr/test-strcpy.h: New file.
11264
11265         Tests for module 'unistr/u32-strnlen'.
11266         * modules/unistr/u32-strnlen-tests: New file.
11267         * tests/unistr/test-u32-strnlen.c: New file.
11268
11269         Tests for module 'unistr/u16-strnlen'.
11270         * modules/unistr/u16-strnlen-tests: New file.
11271         * tests/unistr/test-u16-strnlen.c: New file.
11272
11273         Tests for module 'unistr/u8-strnlen'.
11274         * modules/unistr/u8-strnlen-tests: New file.
11275         * tests/unistr/test-u8-strnlen.c: New file.
11276         * tests/unistr/test-strnlen.h: New file.
11277
11278         Tests for module 'unistr/u32-strlen'.
11279         * modules/unistr/u32-strlen-tests: New file.
11280         * tests/unistr/test-u32-strlen.c: New file.
11281
11282         Tests for module 'unistr/u16-strlen'.
11283         * modules/unistr/u16-strlen-tests: New file.
11284         * tests/unistr/test-u16-strlen.c: New file.
11285
11286         Tests for module 'unistr/u8-strlen'.
11287         * modules/unistr/u8-strlen-tests: New file.
11288         * tests/unistr/test-u8-strlen.c: New file.
11289
11290         Tests for module 'unistr/u32-prev'.
11291         * modules/unistr/u32-prev-tests: New file.
11292         * tests/unistr/test-u32-prev.c: New file.
11293
11294         Tests for module 'unistr/u16-prev'.
11295         * modules/unistr/u16-prev-tests: New file.
11296         * tests/unistr/test-u16-prev.c: New file.
11297
11298         Tests for module 'unistr/u8-prev'.
11299         * modules/unistr/u8-prev-tests: New file.
11300         * tests/unistr/test-u8-prev.c: New file.
11301
11302         Tests for module 'unistr/u32-next'.
11303         * modules/unistr/u32-next-tests: New file.
11304         * tests/unistr/test-u32-next.c: New file.
11305
11306         Tests for module 'unistr/u16-next'.
11307         * modules/unistr/u16-next-tests: New file.
11308         * tests/unistr/test-u16-next.c: New file.
11309
11310         Tests for module 'unistr/u8-next'.
11311         * modules/unistr/u8-next-tests: New file.
11312         * tests/unistr/test-u8-next.c: New file.
11313
11314         Tests for module 'unistr/u32-strmbtouc'.
11315         * modules/unistr/u32-strmbtouc-tests: New file.
11316         * tests/unistr/test-u32-strmbtouc.c: New file.
11317
11318         Tests for module 'unistr/u16-strmbtouc'.
11319         * modules/unistr/u16-strmbtouc-tests: New file.
11320         * tests/unistr/test-u16-strmbtouc.c: New file.
11321
11322         Tests for module 'unistr/u8-strmbtouc'.
11323         * modules/unistr/u8-strmbtouc-tests: New file.
11324         * tests/unistr/test-u8-strmbtouc.c: New file.
11325
11326         Tests for module 'unistr/u32-strmblen'.
11327         * modules/unistr/u32-strmblen-tests: New file.
11328         * tests/unistr/test-u32-strmblen.c: New file.
11329
11330         Tests for module 'unistr/u16-strmblen'.
11331         * modules/unistr/u16-strmblen-tests: New file.
11332         * tests/unistr/test-u16-strmblen.c: New file.
11333
11334         Tests for module 'unistr/u8-strmblen'.
11335         * modules/unistr/u8-strmblen-tests: New file.
11336         * tests/unistr/test-u8-strmblen.c: New file.
11337
11338         Tests for module 'unistr/u32-cpy-alloc'.
11339         * modules/unistr/u32-cpy-alloc-tests: New file.
11340         * tests/unistr/test-u32-cpy-alloc.c: New file.
11341
11342         Tests for module 'unistr/u16-cpy-alloc'.
11343         * modules/unistr/u16-cpy-alloc-tests: New file.
11344         * tests/unistr/test-u16-cpy-alloc.c: New file.
11345
11346         Tests for module 'unistr/u8-cpy-alloc'.
11347         * modules/unistr/u8-cpy-alloc-tests: New file.
11348         * tests/unistr/test-u8-cpy-alloc.c: New file.
11349         * tests/unistr/test-cpy-alloc.h: New file.
11350
11351         Tests for module 'unistr/u32-mbsnlen'.
11352         * modules/unistr/u32-mbsnlen-tests: New file.
11353         * tests/unistr/test-u32-mbsnlen.c: New file.
11354
11355         Tests for module 'unistr/u16-mbsnlen'.
11356         * modules/unistr/u16-mbsnlen-tests: New file.
11357         * tests/unistr/test-u16-mbsnlen.c: New file.
11358
11359         Tests for module 'unistr/u8-mbsnlen'.
11360         * modules/unistr/u8-mbsnlen-tests: New file.
11361         * tests/unistr/test-u8-mbsnlen.c: New file.
11362
11363         Tests for module 'unistr/u32-chr'.
11364         * modules/unistr/u32-chr-tests: New file.
11365         * tests/unistr/test-u32-chr.c: New file.
11366
11367         Tests for module 'unistr/u16-chr'.
11368         * modules/unistr/u16-chr-tests: New file.
11369         * tests/unistr/test-u16-chr.c: New file.
11370
11371         Tests for module 'unistr/u8-chr'.
11372         * modules/unistr/u8-chr-tests: New file.
11373         * tests/unistr/test-u8-chr.c: New file.
11374         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11375
11376         Tests for module 'unistr/u32-cmp2'.
11377         * modules/unistr/u32-cmp2-tests: New file.
11378         * tests/unistr/test-u32-cmp2.c: New file.
11379
11380         Tests for module 'unistr/u16-cmp2'.
11381         * modules/unistr/u16-cmp2-tests: New file.
11382         * tests/unistr/test-u16-cmp2.c: New file.
11383
11384         Tests for module 'unistr/u8-cmp2'.
11385         * modules/unistr/u8-cmp2-tests: New file.
11386         * tests/unistr/test-u8-cmp2.c: New file.
11387         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11388
11389         Tests for module 'unistr/u32-cmp'.
11390         * modules/unistr/u32-cmp-tests: New file.
11391         * tests/unistr/test-u32-cmp.c: New file.
11392
11393         Tests for module 'unistr/u16-cmp'.
11394         * modules/unistr/u16-cmp-tests: New file.
11395         * tests/unistr/test-u16-cmp.c: New file.
11396
11397         Tests for module 'unistr/u8-cmp'.
11398         * modules/unistr/u8-cmp-tests: New file.
11399         * tests/unistr/test-u8-cmp.c: New file.
11400         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11401
11402         Tests for module 'unistr/u32-set'.
11403         * modules/unistr/u32-set-tests: New file.
11404         * tests/unistr/test-u32-set.c: New file.
11405
11406         Tests for module 'unistr/u16-set'.
11407         * modules/unistr/u16-set-tests: New file.
11408         * tests/unistr/test-u16-set.c: New file.
11409
11410         Tests for module 'unistr/u8-set'.
11411         * modules/unistr/u8-set-tests: New file.
11412         * tests/unistr/test-u8-set.c: New file.
11413         * tests/unistr/test-set.h: New file.
11414
11415         Tests for module 'unistr/u32-move'.
11416         * modules/unistr/u32-move-tests: New file.
11417         * tests/unistr/test-u32-move.c: New file.
11418
11419         Tests for module 'unistr/u16-move'.
11420         * modules/unistr/u16-move-tests: New file.
11421         * tests/unistr/test-u16-move.c: New file.
11422
11423         Tests for module 'unistr/u8-move'.
11424         * modules/unistr/u8-move-tests: New file.
11425         * tests/unistr/test-u8-move.c: New file.
11426         * tests/unistr/test-move.h: New file.
11427
11428         Tests for module 'unistr/u32-cpy'.
11429         * modules/unistr/u32-cpy-tests: New file.
11430         * tests/unistr/test-u32-cpy.c: New file.
11431
11432         Tests for module 'unistr/u16-cpy'.
11433         * modules/unistr/u16-cpy-tests: New file.
11434         * tests/unistr/test-u16-cpy.c: New file.
11435
11436         Tests for module 'unistr/u8-cpy'.
11437         * modules/unistr/u8-cpy-tests: New file.
11438         * tests/unistr/test-u8-cpy.c: New file.
11439         * tests/unistr/test-cpy.h: New file.
11440
11441 2010-01-09  Bruno Haible  <bruno@clisp.org>
11442
11443         Tests for module 'unistr/u32-uctomb'.
11444         * modules/unistr/u32-uctomb-tests: New file.
11445         * tests/unistr/test-u32-uctomb.c: New file.
11446
11447         Tests for module 'unistr/u16-uctomb'.
11448         * modules/unistr/u16-uctomb-tests: New file.
11449         * tests/unistr/test-u16-uctomb.c: New file.
11450
11451         Tests for module 'unistr/u8-uctomb'.
11452         * modules/unistr/u8-uctomb-tests: New file.
11453         * tests/unistr/test-u8-uctomb.c: New file.
11454
11455         Tests for module 'unistr/u32-mbtoucr'.
11456         * modules/unistr/u32-mbtoucr-tests: New file.
11457         * tests/unistr/test-u32-mbtoucr.c: New file.
11458
11459         Tests for module 'unistr/u16-mbtoucr'.
11460         * modules/unistr/u16-mbtoucr-tests: New file.
11461         * tests/unistr/test-u16-mbtoucr.c: New file.
11462
11463         Tests for module 'unistr/u8-mbtoucr'.
11464         * modules/unistr/u8-mbtoucr-tests: New file.
11465         * tests/unistr/test-u8-mbtoucr.c: New file.
11466
11467         Tests for module 'unistr/u32-mbtouc'.
11468         * modules/unistr/u32-mbtouc-tests: New file.
11469         * tests/unistr/test-u32-mbtouc.c: New file.
11470
11471         Tests for module 'unistr/u16-mbtouc'.
11472         * modules/unistr/u16-mbtouc-tests: New file.
11473         * tests/unistr/test-u16-mbtouc.c: New file.
11474
11475         Tests for module 'unistr/u8-mbtouc'.
11476         * modules/unistr/u8-mbtouc-tests: New file.
11477         * tests/unistr/test-u8-mbtouc.c: New file.
11478
11479         Tests for module 'unistr/u32-mbtouc-unsafe'.
11480         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11481         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11482         * tests/unistr/test-u32-mbtouc.h: New file.
11483
11484         Tests for module 'unistr/u16-mbtouc-unsafe'.
11485         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11486         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11487         * tests/unistr/test-u16-mbtouc.h: New file.
11488
11489         Tests for module 'unistr/u8-mbtouc-unsafe'.
11490         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11491         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11492         * tests/unistr/test-u8-mbtouc.h: New file.
11493
11494         Tests for module 'unistr/u32-mblen'.
11495         * modules/unistr/u32-mblen-tests: New file.
11496         * tests/unistr/test-u32-mblen.c: New file.
11497
11498         Tests for module 'unistr/u16-mblen'.
11499         * modules/unistr/u16-mblen-tests: New file.
11500         * tests/unistr/test-u16-mblen.c: New file.
11501
11502         Tests for module 'unistr/u8-mblen'.
11503         * modules/unistr/u8-mblen-tests: New file.
11504         * tests/unistr/test-u8-mblen.c: New file.
11505
11506         Tests for module 'unistr/u32-to-u16'.
11507         * modules/unistr/u32-to-u16-tests: New file.
11508         * tests/unistr/test-u32-to-u16.c: New file.
11509
11510         Tests for module 'unistr/u32-to-u8'.
11511         * modules/unistr/u32-to-u8-tests: New file.
11512         * tests/unistr/test-u32-to-u8.c: New file.
11513
11514         Tests for module 'unistr/u16-to-u32'.
11515         * modules/unistr/u16-to-u32-tests: New file.
11516         * tests/unistr/test-u16-to-u32.c: New file.
11517
11518         Tests for module 'unistr/u16-to-u8'.
11519         * modules/unistr/u16-to-u8-tests: New file.
11520         * tests/unistr/test-u16-to-u8.c: New file.
11521
11522         Tests for module 'unistr/u8-to-u32'.
11523         * modules/unistr/u8-to-u32-tests: New file.
11524         * tests/unistr/test-u8-to-u32.c: New file.
11525
11526         Tests for module 'unistr/u8-to-u16'.
11527         * modules/unistr/u8-to-u16-tests: New file.
11528         * tests/unistr/test-u8-to-u16.c: New file.
11529
11530         Tests for module 'unistr/u32-check'.
11531         * modules/unistr/u32-check-tests: New file.
11532         * tests/unistr/test-u32-check.c: New file.
11533
11534         Tests for module 'unistr/u16-check'.
11535         * modules/unistr/u16-check-tests: New file.
11536         * tests/unistr/test-u16-check.c: New file.
11537
11538         Tests for module 'unistr/u8-check'.
11539         * modules/unistr/u8-check-tests: New file.
11540         * tests/unistr/test-u8-check.c: New file.
11541
11542         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11543         (category_equals): New function.
11544         (main): Add more tests.
11545         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11546
11547         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11548
11549 2010-01-10  Bruno Haible  <bruno@clisp.org>
11550
11551         unistr/u*-strcoll: Try harder to distinguish different strings.
11552         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11553         compare s1 and s2 to see if they are different.
11554
11555 2010-01-10  Bruno Haible  <bruno@clisp.org>
11556
11557         unistr/u*-stpncpy: Fix the return value.
11558         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11559         description of the return value consistent with stpncpy in glibc.
11560         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11561         written non-NUL unit.
11562
11563 2010-01-10  Bruno Haible  <bruno@clisp.org>
11564
11565         unistr/u*-next: Add missing dependencies.
11566         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11567         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11568         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11569
11570 2010-01-10  Bruno Haible  <bruno@clisp.org>
11571
11572         unistr/u8-mbsnlen: Fix return value for incomplete character.
11573         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11574         u8_mblen.
11575         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11576         Remove unistr/u8-mblen.
11577         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11578         u16_mblen.
11579         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11580         Remove unistr/u16-mblen.
11581
11582 2010-01-10  Bruno Haible  <bruno@clisp.org>
11583
11584         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11585         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11586         Reported by Brian Gough <bjg@gnu.org> and
11587         Chris Clayton <chris2553@googlemail.com> via
11588         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11589
11590 2010-01-09  Bruno Haible  <bruno@clisp.org>
11591
11592         unistr/u16-to-u32: Reject invalid input.
11593         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11594         u16_mbtouc.
11595         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11596         Remove unistr/u16-mbtouc.
11597
11598         unistr/u16-to-u8: Reject invalid input.
11599         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11600         u16_mbtouc.
11601         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11602         Remove unistr/u16-mbtouc.
11603
11604         unistr/u8-to-u32: Reject invalid input.
11605         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11606         u8_mbtouc.
11607         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11608         Remove unistr/u8-mbtouc.
11609
11610         unistr/u8-to-u16: Reject invalid input.
11611         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11612         u8_mbtouc.
11613         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11614         Remove unistr/u8-mbtouc.
11615
11616 2010-01-09  Bruno Haible  <bruno@clisp.org>
11617
11618         Tests for module 'getlogin'.
11619         * modules/getlogin-tests: New file.
11620         * tests/test-getlogin.c: New file.
11621
11622         New module 'getlogin'.
11623         * lib/unistd.in.h (getlogin): New declaration.
11624         * lib/getlogin.c: New file.
11625         * m4/getlogin.m4: New file.
11626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11627         HAVE_GETLOGIN.
11628         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11629         HAVE_GETLOGIN.
11630         * modules/getlogin: New file.
11631         * doc/posix-functions/getlogin.texi: Mention the new module.
11632         Reported by John W. Eaton <jwe@gnu.org>.
11633
11634 2010-01-09  Bruno Haible  <bruno@clisp.org>
11635
11636         getlogin_r: Support for native Windows.
11637         * lib/getlogin_r.c: Include <windows.h>
11638         (getlogin_r): Implement for native Windows.
11639         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11640         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11641         via John W. Eaton <jwe@gnu.org>.
11642
11643 2010-01-09  Bruno Haible  <bruno@clisp.org>
11644
11645         getlogin_r: Small fixes.
11646         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11647         succeeds.
11648         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11649         before testing whether getlogin_r is declared. No need to set
11650         HAVE_DECL_GETLOGIN_R to 1.
11651         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11652
11653 2010-01-09  Bruno Haible  <bruno@clisp.org>
11654
11655         * lib/unistd.in.h (getlogin_r): Add comment.
11656
11657 2010-01-09  Bruno Haible  <bruno@clisp.org>
11658
11659         Tests for module 'getlogin_r'.
11660         * modules/getlogin_r-tests: New file.
11661         * tests/test-getlogin_r.c: New file.
11662
11663 2010-01-09  Jim Meyering  <meyering@redhat.com>
11664
11665         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11666         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11667         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11668
11669 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11670
11671         * lib/dup2.c (rpl_dup2): Improve comment.
11672
11673 2010-01-08  Eric Blake  <ebb9@byu.net>
11674
11675         maint.mk: allow packages to add makefile @@ exceptions
11676         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11677         (sc_makefile_check): Rename...
11678         (sc_makefile_at_at_check): ...to this, and use hook.
11679
11680         dup2: work around mingw bug
11681         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11682         Reported by Simon Josefsson.
11683
11684 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11685
11686         glob: Fix C++ compilation.
11687         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11688         C++.
11689
11690 2010-01-07  Bruno Haible  <bruno@clisp.org>
11691
11692         Fix indentation of wctype.in.h, broken since 2007-01-06.
11693         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11694
11695 2010-01-07  Bruno Haible  <bruno@clisp.org>
11696
11697         mbslen: Avoid collision with system function.
11698         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11699         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11700         * m4/mbslen.m4: New file.
11701         * modules/mbslen (Files): Add it.
11702         (configure.ac): Invoke gl_MBSLEN.
11703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11704         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11706         via Ian Beckwith <ianb@erislabs.net>.
11707
11708 2010-01-07  Bruno Haible  <bruno@clisp.org>
11709
11710         dirent: Document the last fix.
11711         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11712
11713 2010-01-07  Bruno Haible  <bruno@clisp.org>
11714
11715         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11716         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11717         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11718         va_list are defined.
11719         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11720         Reported by Eric Blake.
11721
11722 2010-01-07  Bruno Haible  <bruno@clisp.org>
11723
11724         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11725         * modules/xlist (Depends-on): Add 'list',
11726         * modules/xoset (Depends-on): Add 'oset'.
11727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11728
11729 2010-01-07  Bruno Haible  <bruno@clisp.org>
11730
11731         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11732         * doc/posix-functions/strncasecmp.texi: Likewise.
11733
11734 2010-01-07  Bruno Haible  <bruno@clisp.org>
11735
11736         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11737
11738 2010-01-07  John W. Eaton  <jwe@octave.org>
11739
11740         wctype: allow C++ use
11741         * lib/wctype.in.h: Add extern "C" block for C++.
11742
11743 2010-01-06  Eric Blake  <ebb9@byu.net>
11744
11745         maint.mk: detect incorrect GFDL usage
11746         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11747
11748 2010-01-06  Jim Meyering  <meyering@redhat.com>
11749         and Eric Blake  <ebb9@byu.net>
11750
11751         maint.mk: ignore multi-line copyright in NEWS
11752         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11753
11754 2010-01-06  Eric Blake  <ebb9@byu.net>
11755
11756         select: add missing dependency
11757         * modules/select-tests (Depends-on): Move sockets dependency...
11758         * modules/select (Depends-on): ...here.
11759         Reported by Ian Beckwith.
11760
11761         doc: regenerate INSTALL
11762         * doc/INSTALL: Reflect recent autoconf update.
11763         * doc/INSTALL.ISO: Likewise.
11764         * doc/INSTALL.UTF-8: Likewise.
11765
11766         pread: fix compilation on glibc
11767         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11768         Reported by Ralf Wildenhues.
11769
11770         dirent: fix test failure
11771         * lib/dirent.in.h (includes): Guarantee ino_t.
11772         Reported by Ralf Wildenhues.
11773
11774 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11775
11776         linkat, renameat: avoid bad free
11777         * lib/at-func2.c (at_func2): Fix typo.
11778         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11779
11780 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11781
11782         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11783         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11784         to avoid failure of symlink test later.
11785
11786 2010-01-06  Eric Blake  <ebb9@byu.net>
11787
11788         stdio, unistd: guarantee ssize_t
11789         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11790         2008 are exposed when needed.
11791         * lib/stdio.in.h (includes): Likewise.
11792         Reported by Ralf Wildenhues.
11793
11794 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11795
11796         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11797         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11798         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11799
11800 2010-01-06  Jim Meyering  <meyering@redhat.com>
11801
11802         readtokens: this module *does* require xalloc.h
11803         It uses only functions that were omitted by the old syntax-check rule.
11804         * lib/readtokens.c: Include "xalloc.h" once again.
11805         * modules/readtokens (Depends-on): Add xalloc.
11806         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11807
11808 2010-01-05  Eric Blake  <ebb9@byu.net>
11809
11810         maint: support 'make announcement' from a VPATH build
11811         * top/maint.mk (announcement): Look for correct NEWS file.
11812
11813 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11814
11815         utimens (fdutimens): ignore a negative FD, per contract
11816         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11817         when we have a valid file descriptor.  Otherwise, using a brand
11818         new glibc (with just-patched futimens that now fails with EBADF)
11819         would cause this function to fail with ENOSYS.
11820         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11821         See also http://bugzilla.redhat.com/552320.
11822
11823 2010-01-05  Eric Blake  <ebb9@byu.net>
11824
11825         strcase: document what it provides
11826         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11827         gnulib module.
11828         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11829         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11830
11831 2010-01-05  Jim Meyering  <meyering@redhat.com>
11832
11833         maint: remove useless inclusions of "xalloc.h"
11834         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11835         * lib/readtokens.c: Likewise.
11836         * lib/same.c: Likewise.
11837         * modules/getloadavg (Depends-on): Remove xalloc.
11838         * modules/readtokens: Likewise.
11839         * modules/same: Likewise.
11840
11841         maint.mk: include 4 more function names in alloca.h-checking regexp
11842         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11843         regexp.  Before, we would give a false-positive (saying alloca.h
11844         is included unnecessarily) when the only uses involved omitted symbols.
11845
11846         xalloc.h: use consistent formatting
11847         * lib/xalloc.h: Move declarations to start in the first column.
11848
11849 2010-01-05  Eric Blake  <ebb9@byu.net>
11850
11851         mkdir: avoid xalloc
11852         * lib/mkdir.c (includes): Drop unused header.
11853         Reported by John W. Eaton.
11854
11855 2010-01-04  Jim Meyering  <meyering@redhat.com>
11856
11857         nl_langinfo: avoid configure-time syntax error
11858         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11859         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11860         the empty string.  Don't let that provoke a shell syntax error.
11861
11862         regcomp, regexec, fnmatch: avoid array bounds read error
11863         * lib/regcomp.c (build_equiv_class): From glibc:
11864         Use only the low 24 bits of a findidx return value as an index
11865         into the weights array.  Patch by Ulrich Drepper:
11866         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11867         * lib/regexec.c (check_node_accept_bytes): Likewise.
11868         * lib/fnmatch_loop.c (FCT): Likewise.
11869
11870         regcomp: skip collseq lookup when there are no rules
11871         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11872         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11873
11874         regcomp: recognize ill-formed { } expressions
11875         * lib/regcomp.c (parse_dup_op): From glibc:
11876         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11877
11878         regcomp: fix typo in comment
11879         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11880         s/satisfy/satisfies/.
11881
11882         regcomp: sync from glibc: remove dead store
11883         * lib/regcomp.c (duplicate_node_closure): Remove useless
11884         search_duplicated_node call and dead store.
11885
11886         regcomp: sync from glibc; always use nl_langinfo
11887         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11888         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11889         * modules/regex (Depends-on): Add nl_langinfo.
11890
11891 2010-01-04  Eric Blake  <ebb9@byu.net>
11892
11893         fdopendir: fix configure test
11894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11895
11896 2010-01-01  Bruno Haible  <bruno@clisp.org>
11897
11898         wchar: Remove unused configure check.
11899         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11900
11901 2010-01-01  Eric Blake  <ebb9@byu.net>
11902
11903         headers: make check of system header explicit
11904         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11905         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11906         ourselves.
11907         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11911         internals.
11912         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11913         missing.
11914         Suggested by Bruno Haible.
11915
11916 2010-01-01  Jim Meyering  <meyering@redhat.com>
11917
11918         ChangeLog: tweak to eliminate unnecessary copyright line
11919         * ChangeLog: Remove a copyright line that was mistakenly updated
11920         by today's update-copyright run.  Reported by Eric Blake.
11921
11922         test-update-copyright: don't let envvar setting cause test failure
11923         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11924
11925 2010-01-01  Bruno Haible  <bruno@clisp.org>
11926
11927         localename: Avoid gcc warning.
11928         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11929         function if it is not used.
11930
11931 2010-01-01  Jim Meyering  <meyering@redhat.com>
11932
11933         update nearly all FSF copyright year lists to include 2010
11934         Use the same procedure as for 2009, outlined in
11935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11936
11937         version-etc: set COPYRIGHT_YEAR to 2010
11938         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11939
11940 2009-12-31  Eric Blake  <ebb9@byu.net>
11941
11942         doc: correct availability of cygwin 1.5.x getopt
11943         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11944         variables.
11945         * doc/posix-functions/opterr.texi (opterr): Likewise.
11946         * doc/posix-functions/optind.texi (optind): Likewise.
11947         * doc/posix-functions/optopt.texi (optopt): Likewise.
11948         * doc/posix-functions/tzname.texi (tzname): Likewise.
11949
11950         openat: update maintainer
11951         * modules/openat (Maintainer): Add myself.
11952
11953         utimens: avoid shadowing warning
11954         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11955         buffers into one, to avoid shadowing, as well as avoiding a
11956         redundant stat.
11957         Reported by Jim Meyering.
11958
11959         test-dup2: avoid compiler warning
11960         * tests/test-dup2.c (is_inheritable): Only define if used.
11961
11962 2010-01-01  Bruno Haible  <bruno@clisp.org>
11963
11964         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11965         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11966         defined, use wctomb instead of wcrtomb.
11967
11968 2010-01-01  Bruno Haible  <bruno@clisp.org>
11969
11970         iconv: Reject native Solaris iconv.
11971         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11972         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11973
11974 2009-12-31  Bruno Haible  <bruno@clisp.org>
11975
11976         * tests/test-signal.c (main): Remove test of 'SIG'.
11977
11978 2009-12-31  Bruno Haible  <bruno@clisp.org>
11979
11980         spawn: Fix incomplete fix.
11981         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11982         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11983         warnings for GNULIB_POSIXCHECK again.
11984         Reported by Eric Blake.
11985
11986 2009-12-31  Bruno Haible  <bruno@clisp.org>
11987
11988         Avoid namespace pollution on glibc systems.
11989         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11990         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11991         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11992         glibc systems.
11993
11994 2009-12-31  Bruno Haible  <bruno@clisp.org>
11995
11996         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11997         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11999         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12000         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12001         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12002         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12003
12004 2009-12-31  Bruno Haible  <bruno@clisp.org>
12005
12006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12007         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12008         afterwards.
12009
12010 2009-12-31  Bruno Haible  <bruno@clisp.org>
12011
12012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12013         SYS_UTSNAME_H.
12014
12015 2009-12-31  Bruno Haible  <bruno@clisp.org>
12016
12017         spawn: Fix misapplied patch.
12018         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12019         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12020         warnings for GNULIB_POSIXCHECK.
12021
12022 2009-12-31  Bruno Haible  <bruno@clisp.org>
12023
12024         times: Update after sys_times changed.
12025         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12026         * modules/times (Files): Add it.
12027         (configure.ac): Invoke gl_FUNC_TIMES.
12028
12029 2009-12-31  Bruno Haible  <bruno@clisp.org>
12030
12031         Use AC_C_INLINE where necessary.
12032         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12033         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12035         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12036         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12037         * m4/mbiter.m4 (gl_MBITER): Likewise.
12038         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12039         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12040         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12041         * modules/u64 (configure.ac): Likewise.
12042
12043 2009-12-31  Bruno Haible  <bruno@clisp.org>
12044
12045         Use AC_C_INLINE instead of module 'inline' where possible.
12046         * modules/inline (Description): Clarify purpose.
12047         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12048         * modules/count-one-bits (Depends-on): Remove inline.
12049         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12050         * modules/openat (Depends-on): Remove inline.
12051         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12052         instead of depending on module 'inline'.
12053         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12054         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12055         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12056         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12057         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12058         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12059         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12060         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12061         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12062         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12063         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12064         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12065         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12066         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12067         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12068         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12069         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12070         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12071         Likewise.
12072         * modules/unictype/property-ascii-hex-digit (Depends-on,
12073         configure.ac): Likewise.
12074         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12075         configure.ac): Likewise.
12076         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12077         configure.ac): Likewise.
12078         * modules/unictype/property-bidi-block-separator (Depends-on,
12079         configure.ac): Likewise.
12080         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12081         configure.ac): Likewise.
12082         * modules/unictype/property-bidi-common-separator (Depends-on,
12083         configure.ac): Likewise.
12084         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12085         Likewise.
12086         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12087         configure.ac): Likewise.
12088         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12089         configure.ac): Likewise.
12090         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12091         configure.ac): Likewise.
12092         * modules/unictype/property-bidi-european-digit (Depends-on,
12093         configure.ac): Likewise.
12094         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12095         configure.ac): Likewise.
12096         * modules/unictype/property-bidi-left-to-right (Depends-on,
12097         configure.ac): Likewise.
12098         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12099         configure.ac): Likewise.
12100         * modules/unictype/property-bidi-other-neutral (Depends-on,
12101         configure.ac): Likewise.
12102         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12103         Likewise.
12104         * modules/unictype/property-bidi-segment-separator (Depends-on,
12105         configure.ac): Likewise.
12106         * modules/unictype/property-bidi-whitespace (Depends-on,
12107         configure.ac): Likewise.
12108         * modules/unictype/property-combining (Depends-on, configure.ac):
12109         Likewise.
12110         * modules/unictype/property-composite (Depends-on, configure.ac):
12111         Likewise.
12112         * modules/unictype/property-currency-symbol (Depends-on,
12113         configure.ac): Likewise.
12114         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12115         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12116         Likewise.
12117         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12118         configure.ac): Likewise.
12119         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12120         Likewise.
12121         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12122         Likewise.
12123         * modules/unictype/property-extender (Depends-on, configure.ac):
12124         Likewise.
12125         * modules/unictype/property-format-control (Depends-on, configure.ac):
12126         Likewise.
12127         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12128         Likewise.
12129         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12130         Likewise.
12131         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12132         Likewise.
12133         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12134         Likewise.
12135         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12136         Likewise.
12137         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12138         Likewise.
12139         * modules/unictype/property-id-start (Depends-on, configure.ac):
12140         Likewise.
12141         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12142         Likewise.
12143         * modules/unictype/property-ids-binary-operator (Depends-on,
12144         configure.ac): Likewise.
12145         * modules/unictype/property-ids-trinary-operator (Depends-on,
12146         configure.ac): Likewise.
12147         * modules/unictype/property-ignorable-control (Depends-on,
12148         configure.ac): Likewise.
12149         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12150         Likewise.
12151         * modules/unictype/property-join-control (Depends-on, configure.ac):
12152         Likewise.
12153         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12154         Likewise.
12155         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12156         Likewise.
12157         * modules/unictype/property-logical-order-exception (Depends-on,
12158         configure.ac): Likewise.
12159         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12160         Likewise.
12161         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12162         * modules/unictype/property-non-break (Depends-on, configure.ac):
12163         Likewise.
12164         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12165         Likewise.
12166         * modules/unictype/property-numeric (Depends-on, configure.ac):
12167         Likewise.
12168         * modules/unictype/property-other-alphabetic (Depends-on,
12169         configure.ac): Likewise.
12170         * modules/unictype/property-other-default-ignorable-code-point
12171         (Depends-on, configure.ac): Likewise.
12172         * modules/unictype/property-other-grapheme-extend (Depends-on,
12173         configure.ac): Likewise.
12174         * modules/unictype/property-other-id-continue (Depends-on,
12175         configure.ac): Likewise.
12176         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12177         Likewise.
12178         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12179         Likewise.
12180         * modules/unictype/property-other-math (Depends-on, configure.ac):
12181         Likewise.
12182         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12183         Likewise.
12184         * modules/unictype/property-paired-punctuation (Depends-on,
12185         configure.ac): Likewise.
12186         * modules/unictype/property-paragraph-separator (Depends-on,
12187         configure.ac): Likewise.
12188         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12189         Likewise.
12190         * modules/unictype/property-pattern-white-space (Depends-on,
12191         configure.ac): Likewise.
12192         * modules/unictype/property-private-use (Depends-on, configure.ac):
12193         Likewise.
12194         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12195         Likewise.
12196         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12197         Likewise.
12198         * modules/unictype/property-radical (Depends-on, configure.ac):
12199         Likewise.
12200         * modules/unictype/property-sentence-terminal (Depends-on,
12201         configure.ac): Likewise.
12202         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12203         Likewise.
12204         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12205         * modules/unictype/property-terminal-punctuation (Depends-on,
12206         configure.ac): Likewise.
12207         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12208         Likewise.
12209         * modules/unictype/property-unassigned-code-value (Depends-on,
12210         configure.ac): Likewise.
12211         * modules/unictype/property-unified-ideograph (Depends-on,
12212         configure.ac): Likewise.
12213         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12214         Likewise.
12215         * modules/unictype/property-variation-selector (Depends-on,
12216         configure.ac): Likewise.
12217         * modules/unictype/property-white-space (Depends-on, configure.ac):
12218         Likewise.
12219         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12220         Likewise.
12221         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12222         Likewise.
12223         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12224         Likewise.
12225         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12226         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12227         Likewise.
12228
12229 2009-12-31  Bruno Haible  <bruno@clisp.org>
12230
12231         Remove unnecessary AC_C_INLINE invocation.
12232         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12233         since 2009-08-21.
12234
12235 2009-12-31  Jim Meyering  <meyering@redhat.com>
12236
12237         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12238         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12239         With this change, we can all remove the gpg_key_ID = ... definition
12240         from our respective cfg.mk files.
12241
12242         maint.mk: create announcement template in ~/, not in /tmp
12243         * top/maint.mk (emit_upload_commands): Adjust.
12244         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12245         Remove temporary file, .ci-msg.
12246
12247 2009-12-31  Eric Blake  <ebb9@byu.net>
12248
12249         link-warning: always build headers with link warnings
12250         * modules/arpa_inet (Makefile.am): Always build replacement
12251         header.
12252         * modules/ctype (Makefile.am): Likewise.
12253         * modules/dirent (Makefile.am): Likewise.
12254         * modules/inttypes (Makefile.am): Likewise.
12255         * modules/langinfo (Makefile.am): Likewise.
12256         * modules/locale (Makefile.am): Likewise.
12257         * modules/spawn (Makefile.am): Likewise.
12258         * modules/sys_file (Makefile.am): Likewise.
12259         * modules/sys_ioctl (Makefile.am): Likewise.
12260         * modules/sys_select (Makefile.am): Likewise.
12261         * modules/sys_socket (Makefile.am): Likewise.
12262         * modules/sys_times (Makefile.am): Likewise.
12263         * modules/sys_utsname (Makefile.am): Likewise.
12264         * modules/sys_wait (Makefile.am): Likewise.
12265         * modules/wchar (Makefile.am): Likewise.
12266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12267         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12268         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12269         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12270         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12271         Likewise.
12272         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12273         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12274         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12275         Likewise.
12276         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12277         Likewise.
12278         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12280         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12282         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12283         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12284         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12285         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12286         (gl_WCHAR_H_DEFAULTS): Likewise.
12287
12288 2009-12-31  Eric Blake  <ebb9@byu.net>
12289
12290         signal, spawn: use link warnings
12291         * lib/signal.in.h (sigset_t): Make unconditional.
12292         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12293         (sigpending, sigprocmask, sigaction): Add link warnings.
12294         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12295         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12296         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12297         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12298         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12299         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12300         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12301         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12302         (posix_spawn_file_actions_destroy)
12303         (posix_spawn_file_actions_addopen)
12304         (posix_spawn_file_actions_addclose)
12305         (posix_spawn_file_actions_adddup2): Likewise.
12306         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12307         * tests/test-signal.c (main): Enhance test.
12308
12309         spawn: improve wrapper support
12310         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12311         (gl_SPAWN_H_DEFAULTS): New defaults.
12312         * modules/spawn (Makefile.am): Substitute them.
12313         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12314         Only declare if missing or broken.
12315
12316         sys_times, sys_utsname: use include_next
12317         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12318         header.
12319         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12320         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12321         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12322         * modules/sys_times (Depends-on): Add include_next.
12323         (Makefile.am): Substitute additional values.
12324         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12325         * lib/sys_times.in.h (includes): Include native header, if
12326         available.
12327         * lib/sys_utsname.in.h (includes): Likewise.
12328         * tests/test-sys_times.c (main): Enhance test.
12329
12330         fdutimensat: revert prior patch
12331         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12332         utimens.h.
12333         Reported by Bruno Haible.
12334
12335 2009-12-30  Eric Blake  <ebb9@byu.net>
12336
12337         sys_wait: drop link-warning dependency
12338         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12339         link-warning efforts.
12340         * lib/sys_wait.in.h: Likewise.
12341
12342         fdutimensat: remove bogus dependency
12343         * modules/fdutimensat (Depends-on): Drop inline.
12344
12345         unistd: fix typo
12346         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12347
12348 2009-12-30  Bruno Haible  <bruno@clisp.org>
12349
12350         Fix compilation error with Solaris cc.
12351         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12352         * lib/unicase/u16-is-invariant.c: Likewise.
12353         * lib/unicase/u32-is-invariant.c: Likewise.
12354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12355
12356 2009-12-30  Bruno Haible  <bruno@clisp.org>
12357
12358         Fix test crash.
12359         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12360         locales.
12361         Reported by Simon Josefsson <simon@josefsson.org>.
12362
12363 2009-12-30  Bruno Haible  <bruno@clisp.org>
12364
12365         Fix compilation error on most platforms.
12366         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12367         Reported by Simon Josefsson <simon@josefsson.org>
12368         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12369
12370 2009-12-30  Eric Blake  <ebb9@byu.net>
12371
12372         futimens, utimensat: work around ntfs-3g bug
12373         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12374         a ctime bug is present, and expand workaround to cover ntfs-3g.
12375         * lib/utimens.c (fdutimens, lutimens): Likewise.
12376         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12377         (validate_timespec): Adjust return value.
12378         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12379         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12380         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12381
12382 2009-12-29  Eric Blake  <ebb9@byu.net>
12383
12384         link-warning: make usage consistent
12385         * modules/ctype (Depends-on): Add link-warning.
12386         (Makefile.am): Update rules accordingly.
12387         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12388         * modules/locale (Depends-on, Makefile.am): Likewise.
12389         * modules/sys_file (Makefile.am): Likewise.
12390         * modules/getopt-posix (Makefile.am): Delete unused link warning
12391         efforts.
12392         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12393         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12394         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12395         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12396
12397         stdio: remove unused variables
12398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12400         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12401
12402         tests: test more substitute headers
12403         * modules/ctype-tests: New file.
12404         * modules/dirent-tests: Likewise.
12405         * modules/spawn-tests: Likewise.
12406         * modules/sys_file-tests: Likewise.
12407         * modules/sys_ioctl-tests: Likewise.
12408         * modules/sys_wait-tests: Likewise.
12409         * tests/test-ctype.c: Likewise.
12410         * tests/test-dirent.c: Likewise.
12411         * tests/test-spawn.c: Likewise.
12412         * tests/test-sys_file.c: Likewise.
12413         * tests/test-sys_ioctl.c: Likewise.
12414         * tests/test-sys_wait.c: Likewise.
12415         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12416         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12417         whether or not flock is in use.
12418
12419         tests: remove License section from module
12420         * modules/arpa_inet-tests: Remove unneeded section.
12421         * modules/byteswap-tests: Likewise.
12422         * modules/ceilf-tests: Likewise.
12423         * modules/ceill-tests: Likewise.
12424         * modules/crypto/des-tests: Likewise.
12425         * modules/crypto/gc-arcfour-tests: Likewise.
12426         * modules/crypto/gc-arctwo-tests: Likewise.
12427         * modules/crypto/gc-des-tests: Likewise.
12428         * modules/crypto/gc-hmac-md5-tests: Likewise.
12429         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12430         * modules/crypto/gc-md2-tests: Likewise.
12431         * modules/crypto/gc-md4-tests: Likewise.
12432         * modules/crypto/gc-md5-tests: Likewise.
12433         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12434         * modules/crypto/gc-rijndael-tests: Likewise.
12435         * modules/crypto/gc-sha1-tests: Likewise.
12436         * modules/crypto/gc-tests: Likewise.
12437         * modules/crypto/md2-tests: Likewise.
12438         * modules/crypto/md4-tests: Likewise.
12439         * modules/fcntl-h-tests: Likewise.
12440         * modules/floorf-tests: Likewise.
12441         * modules/floorl-tests: Likewise.
12442         * modules/frexp-nolibm-tests: Likewise.
12443         * modules/frexp-tests: Likewise.
12444         * modules/frexpl-nolibm-tests: Likewise.
12445         * modules/frexpl-tests: Likewise.
12446         * modules/getaddrinfo-tests: Likewise.
12447         * modules/inttypes-tests: Likewise.
12448         * modules/isfinite-tests: Likewise.
12449         * modules/isinf-tests: Likewise.
12450         * modules/ldexpl-tests: Likewise.
12451         * modules/locale-tests: Likewise.
12452         * modules/math-tests: Likewise.
12453         * modules/netdb-tests: Likewise.
12454         * modules/netinet_in-tests: Likewise.
12455         * modules/printf-frexp-tests: Likewise.
12456         * modules/printf-frexpl-tests: Likewise.
12457         * modules/priv-set-tests: Likewise.
12458         * modules/random_r-tests: Likewise.
12459         * modules/round-tests: Likewise.
12460         * modules/roundf-tests: Likewise.
12461         * modules/roundl-tests: Likewise.
12462         * modules/search-tests: Likewise.
12463         * modules/select-tests: Likewise.
12464         * modules/signal-tests: Likewise.
12465         * modules/stdbool-tests: Likewise.
12466         * modules/stddef-tests: Likewise.
12467         * modules/stdint-tests: Likewise.
12468         * modules/stdio-tests: Likewise.
12469         * modules/stdlib-tests: Likewise.
12470         * modules/string-tests: Likewise.
12471         * modules/strings-tests: Likewise.
12472         * modules/sys_select-tests: Likewise.
12473         * modules/sys_socket-tests: Likewise.
12474         * modules/sys_stat-tests: Likewise.
12475         * modules/sys_time-tests: Likewise.
12476         * modules/sys_utsname-tests: Likewise.
12477         * modules/sysexits-tests: Likewise.
12478         * modules/time-tests: Likewise.
12479         * modules/trunc-tests: Likewise.
12480         * modules/truncf-tests: Likewise.
12481         * modules/truncl-tests: Likewise.
12482         * modules/tsearch-tests: Likewise.
12483         * modules/unistd-tests: Likewise.
12484         * modules/wchar-tests: Likewise.
12485         * modules/wctype-tests: Likewise.
12486
12487         tests: fix license on several tests
12488         * tests/test-des.c: Update to GPLv3+.
12489         * tests/test-flock.c: Likewise.
12490         * tests/test-fsync.c: Likewise.
12491         * tests/test-futimens.h: Likewise.
12492         * tests/test-gc-arcfour.c: Likewise.
12493         * tests/test-gc-arctwo.c: Likewise.
12494         * tests/test-gc-des.c: Likewise.
12495         * tests/test-gc-hmac-md5.c: Likewise.
12496         * tests/test-gc-hmac-sha1.c: Likewise.
12497         * tests/test-gc-md2.c: Likewise.
12498         * tests/test-gc-md4.c: Likewise.
12499         * tests/test-gc-md5.c: Likewise.
12500         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12501         * tests/test-gc-rijndael.c: Likewise.
12502         * tests/test-gc-sha1.c: Likewise.
12503         * tests/test-gc.c: Likewise.
12504         * tests/test-getcwd.c: Likewise.
12505         * tests/test-link.c: Likewise.
12506         * tests/test-link.h: Likewise.
12507         * tests/test-lutimens.h: Likewise.
12508         * tests/test-md2.c: Likewise.
12509         * tests/test-md4.c: Likewise.
12510         * tests/test-mkdir.h: Likewise.
12511         * tests/test-rename.c: Likewise.
12512         * tests/test-rename.h: Likewise.
12513         * tests/test-safe-alloc.c: Likewise.
12514         * tests/test-utimens-common.h: Likewise.
12515         * tests/test-utimens.h: Likewise.
12516
12517         maint: sync license texts
12518         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12519         * doc/gpl-3.0.texi: Revert copyright year update.
12520         * doc/lgpl-3.0.texi: Likewise.
12521
12522 2009-12-29  Jim Meyering  <meyering@redhat.com>
12523
12524         update nearly all FSF copyright year lists to include 2009
12525         The files named by the following are exempted:
12526             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12527               test -f "$dst" && { echo "$dst"; continue; }
12528               test -d "$dst" || continue
12529               echo "$dst"/$(basename "$src")
12530             done > exempt
12531             git ls-files tests/unictype >> exempt
12532         In the remaining files, convert to all-interval notation if
12533         - there is already at least one year interval like 2000-2003
12534         - the file is maintained by me
12535         - the file is in lib/uni*/, where that style already prevails
12536         Otherwise, use update-copyright's default.
12537
12538 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12539         and Eric Blake  <ebb9@byu.net>
12540
12541         tests: don't require debug system() to pass
12542         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12543         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12544         * tests/test-unlink.h (test_unlink_func): Likewise.
12545         * tests/test-fstatat.c (main): ...into callers.
12546         * tests/test-lstat.c (main): Likewise.
12547         * tests/test-rmdir.c (main): Likewise.
12548         * tests/test-unlink.c (main): Likewise.
12549         * tests/test-unlinkat.c (main): Likewise.
12550         * tests/test-areadlink-with-size.c (main): Don't require a
12551         debug-only system call to pass, aiding cross-testing to mingw.
12552         * tests/test-areadlink.c (main): Likewise.
12553         * tests/test-areadlinkat-with-size.c (main): Likewise.
12554         * tests/test-areadlinkat.c (main): Likewise.
12555         * tests/test-canonicalize-lgpl.c (main): Likewise.
12556         * tests/test-canonicalize.c (main): Likewise.
12557         * tests/test-chown.c (main): Likewise.
12558         * tests/test-fchownat.c (main): Likewise.
12559         * tests/test-lchown.c (main): Likewise.
12560         * tests/test-fdutimensat.c (main): Likewise.
12561         * tests/test-futimens.c (main): Likewise.
12562         * tests/test-link.c (main): Likewise.
12563         * tests/test-linkat.c (main): Likewise.
12564         * tests/test-mkdir.c (main): Likewise.
12565         * tests/test-mkdirat.c (main): Likewise.
12566         * tests/test-mkfifo.c (main): Likewise.
12567         * tests/test-mkfifoat.c (main): Likewise.
12568         * tests/test-mknod.c (main): Likewise.
12569         * tests/test-readlink.c (main): Likewise.
12570         * tests/test-remove.c (main): Likewise.
12571         * tests/test-rename.c (main): Likewise.
12572         * tests/test-renameat.c (main): Likewise.
12573         * tests/test-symlink.c (main): Likewise.
12574         * tests/test-symlinkat.c (main): Likewise.
12575         * tests/test-utimens.c (main): Likewise.
12576         * tests/test-utimensat.c (main): Likewise.
12577
12578 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12579
12580         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12581         on $(UNUSED_PARAMETER_H) to avoid build failure.
12582
12583 2009-12-28  Jim Meyering  <meyering@redhat.com>
12584
12585         update-copyright: you may specify a max. line length other than 72
12586         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12587
12588         maint: use consistent FSF copyright line syntax
12589         * lib/posixtm.c: Add missing comma in FSF copyright line.
12590         * lib/posixtm.h: Likewise.
12591         * lib/getugroups.c: Add missing ", Inc.".
12592
12593         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12594         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12595         FSF copyright line.  Remove trailing blanks.
12596
12597 2009-12-28  Eric Blake  <ebb9@byu.net>
12598
12599         test-dup2: reduce dependencies
12600         * modules/cloexec (Configure.ac): Set witness.
12601         * modules/dup2-tests (Depends-on): Drop cloexec.
12602         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12603         not present.
12604         Suggested by Bruno Haible.
12605
12606 2009-12-26  Bruno Haible  <bruno@clisp.org>
12607
12608         Remove an unneeded dependency.
12609         * modules/fseterr (Depends-on): Remove dup2.
12610
12611 2009-12-26  Eric Blake  <ebb9@byu.net>
12612
12613         tests: use macros.h in more places
12614         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12615         (ASSERT_STREAM): Provide default of stderr.
12616         * tests/test-dirent-safer.c: Include macros.h, using alternate
12617         stream for assertions.
12618         * tests/test-dup-safer.c: Likewise.
12619         * tests/test-freopen-safer.c: Likewise.
12620         * tests/test-getopt.c: Likewise.
12621         * tests/test-openat-safer.c: Likewise.
12622         * tests/test-pipe.c: Likewise.
12623         * tests/test-popen-safer.c: Likewise.
12624         * modules/dirent-safer-tests (Files): Include macros.h.
12625         * modules/unistd-safer-tests (Files): Likewise.
12626         * modules/freopen-safer-tests (Files): Likewise.
12627         * modules/getopt-posix-tests (Files): Likewise.
12628         * modules/openat-safer-tests (Files): Likewise.
12629         * modules/pipe-tests (Files): Likewise.
12630
12631 2009-12-26  Bruno Haible  <bruno@clisp.org>
12632
12633         javacomp: Portability fix.
12634         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12635         that it also works on Solaris.
12636
12637 2009-12-26  Bruno Haible  <bruno@clisp.org>
12638
12639         localename: Fix storage allocation of gl_locale_name_thread's result.
12640         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12641         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12642         all platforms that have 'uselocale'.
12643         (gl_locale_name_thread_unsafe): New function, extracted from
12644         gl_locale_name_thread.
12645         (gl_locale_name_thread): Call struniq on all platforms that have
12646         'uselocale'.
12647         * tests/test-localename.c (test_locale_name_thread): Check that the
12648         resulting strings are permanently allocated.
12649         * modules/localename-tests (Depends-on): Add strdup.
12650
12651 2009-12-26  Bruno Haible  <bruno@clisp.org>
12652
12653         * tests/test-localename.c (categories): Fill in the strings.
12654
12655 2009-12-26  Jim Meyering  <meyering@redhat.com>
12656
12657         isdir: complete the removal of m4/isdir.m4
12658         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12659
12660         isdir: clean up, since at least grep still uses it
12661         * lib/isdir.c: Include "isdir.h".
12662         (S_ISDIR): Remove now-unneeded definition.
12663         * modules/isdir (Files): Add lib/isdir.h.
12664         * lib/isdir.h: New file, with declaration.
12665         * m4/isdir.m4: Remove file -- unneeded.
12666
12667 2009-12-25  Bruno Haible  <bruno@clisp.org>
12668
12669         selinux-h: Make generated .h files standalone.
12670         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12671         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12672         * lib/se-selinux.in.h: Likewise.
12673         * modules/selinux-h (Depends-on): Add unused-parameter.
12674         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12675         selinux/selinux.h and selinux/context.h.
12676         Suggested by Eric Blake.
12677
12678 2009-12-25  Bruno Haible  <bruno@clisp.org>
12679
12680         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12681         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12682         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12683         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12684         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12685
12686 2009-12-24  Bruno Haible  <bruno@clisp.org>
12687
12688         openat: Fix warning.
12689         * lib/openat-proc.c: Include <unistd.h>.
12690
12691 2009-12-24  Bruno Haible  <bruno@clisp.org>
12692
12693         New module 'unused-parameter'.
12694         * build-aux/unused-parameter.h: New file, extracted from earlier
12695         gnulib-common.m4.
12696         * modules/unused-parameter: New file.
12697         * lib/unistr.h: Include unused-parameter.h.
12698         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12699         _GL_UNUSED.
12700         * modules/unistr/base (Depends-on): Add unused-parameter.
12701
12702 2009-12-24  Bruno Haible  <bruno@clisp.org>
12703
12704         Add missing dependencies to 'extensions' module.
12705         * m4/extensions.m4: Add comment.
12706         * modules/accept4 (Depends-on): Add extensions.
12707         * modules/dup3 (Depends-on): Likewise.
12708         * modules/fcntl (Depends-on): Likewise.
12709         * modules/futimens (Depends-on): Likewise.
12710         * modules/mknod (Depends-on): Likewise.
12711         * modules/pipe2 (Depends-on): Likewise.
12712         * modules/stat-time (Depends-on): Likewise.
12713         * modules/strcasestr-simple (Depends-on): Likewise.
12714         * modules/strsignal (Depends-on): Likewise.
12715         * modules/utimensat (Depends-on): Likewise.
12716         * modules/localcharset (Depends-on): Likewise. Needed because of
12717         gl_FCNTL_O_FLAGS.
12718         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12719         AC_TYPE_MBSTATE_T.
12720         * modules/wcsnrtombs (Depends-on): Likewise.
12721         * modules/wcsrtombs (Depends-on): Likewise.
12722
12723 2009-12-24  Bruno Haible  <bruno@clisp.org>
12724
12725         binary-io: Avoid gcc warning due to SET_BINARY.
12726         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12727         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12728
12729 2009-12-24  Bruno Haible  <bruno@clisp.org>
12730
12731         Avoid future namespace pollution on glibc systems.
12732         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12733         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12734         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12735         glibc systems.
12736
12737 2009-12-24  Bruno Haible  <bruno@clisp.org>
12738
12739         Refactor common macros used in tests.
12740         * tests/macros.h: New file.
12741         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12742         and/or <stdlib.h>, if appropriate.
12743         (ASSERT, SIZEOF): Remove macros.
12744         * tests/test-areadlink-with-size.c: Likewise.
12745         * tests/test-areadlinkat.c: Likewise.
12746         * tests/test-areadlinkat-with-size.c: Likewise.
12747         * tests/test-argmatch.c: Likewise.
12748         * tests/test-argv-iter.c: Likewise.
12749         * tests/test-array-mergesort.c: Likewise.
12750         * tests/test-array_list.c: Likewise.
12751         * tests/test-array_oset.c: Likewise.
12752         * tests/test-avltree_list.c: Likewise.
12753         * tests/test-avltree_oset.c: Likewise.
12754         * tests/test-avltreehash_list.c: Likewise.
12755         * tests/test-base64.c: Likewise.
12756         * tests/test-binary-io.c: Likewise.
12757         * tests/test-bitrotate.c: Likewise.
12758         * tests/test-btowc.c: Likewise.
12759         * tests/test-byteswap.c: Likewise.
12760         * tests/test-c-ctype.c: Likewise.
12761         * tests/test-c-stack.c: Likewise.
12762         * tests/test-c-strcasecmp.c: Likewise.
12763         * tests/test-c-strcasestr.c: Likewise.
12764         * tests/test-c-strncasecmp.c: Likewise.
12765         * tests/test-c-strstr.c: Likewise.
12766         * tests/test-canonicalize-lgpl.c: Likewise.
12767         * tests/test-canonicalize.c: Likewise.
12768         * tests/test-carray_list.c: Likewise.
12769         * tests/test-ceilf1.c: Likewise.
12770         * tests/test-ceilf2.c: Likewise.
12771         * tests/test-ceill.c: Likewise.
12772         * tests/test-chown.c: Likewise.
12773         * tests/test-cloexec.c: Likewise.
12774         * tests/test-copy-acl.c: Likewise.
12775         * tests/test-copy-file.c: Likewise.
12776         * tests/test-count-one-bits.c: Likewise.
12777         * tests/test-dprintf-posix.c: Likewise.
12778         * tests/test-dup2.c: Likewise.
12779         * tests/test-dup3.c: Likewise.
12780         * tests/test-duplocale.c: Likewise.
12781         * tests/test-fbufmode.c: Likewise.
12782         * tests/test-fchdir.c: Likewise.
12783         * tests/test-fchownat.c: Likewise.
12784         * tests/test-fcntl-safer.c: Likewise.
12785         * tests/test-fcntl.c: Likewise.
12786         * tests/test-fdopendir.c: Likewise.
12787         * tests/test-fdutimensat.c: Likewise.
12788         * tests/test-fflush2.c: Likewise.
12789         * tests/test-file-has-acl.c: Likewise.
12790         * tests/test-filevercmp.c: Likewise.
12791         * tests/test-flock.c: Likewise.
12792         * tests/test-floorf1.c: Likewise.
12793         * tests/test-floorf2.c: Likewise.
12794         * tests/test-floorl.c: Likewise.
12795         * tests/test-fnmatch.c: Likewise.
12796         * tests/test-fopen.h: Likewise.
12797         * tests/test-fpending.c: Likewise.
12798         * tests/test-fprintf-posix.c: Likewise.
12799         * tests/test-fpurge.c: Likewise.
12800         * tests/test-freadable.c: Likewise.
12801         * tests/test-freadahead.c: Likewise.
12802         * tests/test-freading.c: Likewise.
12803         * tests/test-freadptr.c: Likewise.
12804         * tests/test-freadptr2.c: Likewise.
12805         * tests/test-freadseek.c: Likewise.
12806         * tests/test-freopen.c: Likewise.
12807         * tests/test-frexp.c: Likewise.
12808         * tests/test-frexpl.c: Likewise.
12809         * tests/test-fseek.c: Likewise.
12810         * tests/test-fseeko.c: Likewise.
12811         * tests/test-fstatat.c: Likewise.
12812         * tests/test-fstrcmp.c: Likewise.
12813         * tests/test-fsync.c: Likewise.
12814         * tests/test-ftell.c: Likewise.
12815         * tests/test-ftello.c: Likewise.
12816         * tests/test-func.c: Likewise.
12817         * tests/test-futimens.c: Likewise.
12818         * tests/test-fwritable.c: Likewise.
12819         * tests/test-fwriting.c: Likewise.
12820         * tests/test-getcwd.c: Likewise.
12821         * tests/test-getdate.c: Likewise.
12822         * tests/test-getdelim.c: Likewise.
12823         * tests/test-getdtablesize.c: Likewise.
12824         * tests/test-getgroups.c: Likewise.
12825         * tests/test-getline.c: Likewise.
12826         * tests/test-getndelim2.c: Likewise.
12827         * tests/test-glob.c: Likewise.
12828         * tests/test-hash.c: Likewise.
12829         * tests/test-i-ring.c: Likewise.
12830         * tests/test-iconv-utf.c: Likewise.
12831         * tests/test-iconv.c: Likewise.
12832         * tests/test-idpriv-drop.c: Likewise.
12833         * tests/test-idpriv-droptemp.c: Likewise.
12834         * tests/test-inet_ntop.c: Likewise.
12835         * tests/test-inet_pton.c: Likewise.
12836         * tests/test-isblank.c: Likewise.
12837         * tests/test-isfinite.c: Likewise.
12838         * tests/test-isinf.c: Likewise.
12839         * tests/test-isnan.c: Likewise.
12840         * tests/test-isnand.h: Likewise.
12841         * tests/test-isnanf.h: Likewise.
12842         * tests/test-isnanl.h: Likewise.
12843         * tests/test-lchown.c: Likewise.
12844         * tests/test-ldexpl.c: Likewise.
12845         * tests/test-link.c: Likewise.
12846         * tests/test-linkat.c: Likewise.
12847         * tests/test-linked_list.c: Likewise.
12848         * tests/test-linkedhash_list.c: Likewise.
12849         * tests/test-localename.c: Likewise.
12850         * tests/test-lseek.c: Likewise.
12851         * tests/test-lstat.c: Likewise.
12852         * tests/test-mbmemcasecmp.c: Likewise.
12853         * tests/test-mbmemcasecoll.c: Likewise.
12854         * tests/test-mbrtowc.c: Likewise.
12855         * tests/test-mbscasecmp.c: Likewise.
12856         * tests/test-mbscasestr1.c: Likewise.
12857         * tests/test-mbscasestr2.c: Likewise.
12858         * tests/test-mbscasestr3.c: Likewise.
12859         * tests/test-mbscasestr4.c: Likewise.
12860         * tests/test-mbschr.c: Likewise.
12861         * tests/test-mbscspn.c: Likewise.
12862         * tests/test-mbsinit.c: Likewise.
12863         * tests/test-mbsncasecmp.c: Likewise.
12864         * tests/test-mbsnrtowcs.c: Likewise.
12865         * tests/test-mbspbrk.c: Likewise.
12866         * tests/test-mbspcasecmp.c: Likewise.
12867         * tests/test-mbsrchr.c: Likewise.
12868         * tests/test-mbsrtowcs.c: Likewise.
12869         * tests/test-mbsspn.c: Likewise.
12870         * tests/test-mbsstr1.c: Likewise.
12871         * tests/test-mbsstr2.c: Likewise.
12872         * tests/test-mbsstr3.c: Likewise.
12873         * tests/test-memchr.c: Likewise.
12874         * tests/test-memchr2.c: Likewise.
12875         * tests/test-memcmp.c: Likewise.
12876         * tests/test-memmem.c: Likewise.
12877         * tests/test-memrchr.c: Likewise.
12878         * tests/test-mkdir.c: Likewise.
12879         * tests/test-mkdirat.c: Likewise.
12880         * tests/test-mkfifo.c: Likewise.
12881         * tests/test-mkfifoat.c: Likewise.
12882         * tests/test-mknod.c: Likewise.
12883         * tests/test-nanosleep.c: Likewise.
12884         * tests/test-nl_langinfo.c: Likewise.
12885         * tests/test-obstack-printf.c: Likewise.
12886         * tests/test-open.c: Likewise.
12887         * tests/test-openat.c: Likewise.
12888         * tests/test-pipe-filter-gi1.c: Likewise.
12889         * tests/test-pipe-filter-gi2-main.c: Likewise.
12890         * tests/test-pipe-filter-ii1.c: Likewise.
12891         * tests/test-pipe-filter-ii2-main.c: Likewise.
12892         * tests/test-pipe2.c: Likewise.
12893         * tests/test-popen.h: Likewise.
12894         * tests/test-posixtm.c: Likewise.
12895         * tests/test-pread.c: Likewise.
12896         * tests/test-printf-frexp.c: Likewise.
12897         * tests/test-printf-frexpl.c: Likewise.
12898         * tests/test-printf-posix.c: Likewise.
12899         * tests/test-priv-set.c: Likewise.
12900         * tests/test-quotearg.c: Likewise.
12901         * tests/test-random_r.c: Likewise.
12902         * tests/test-rawmemchr.c: Likewise.
12903         * tests/test-rbtree_list.c: Likewise.
12904         * tests/test-rbtree_oset.c: Likewise.
12905         * tests/test-rbtreehash_list.c: Likewise.
12906         * tests/test-readlink.c: Likewise.
12907         * tests/test-remove.c: Likewise.
12908         * tests/test-rename.c: Likewise.
12909         * tests/test-renameat.c: Likewise.
12910         * tests/test-rmdir.c: Likewise.
12911         * tests/test-round1.c: Likewise.
12912         * tests/test-roundf1.c: Likewise.
12913         * tests/test-roundl.c: Likewise.
12914         * tests/test-safe-alloc.c: Likewise.
12915         * tests/test-sameacls.c: Likewise.
12916         * tests/test-set-mode-acl.c: Likewise.
12917         * tests/test-setenv.c: Likewise.
12918         * tests/test-sigaction.c: Likewise.
12919         * tests/test-signbit.c: Likewise.
12920         * tests/test-sleep.c: Likewise.
12921         * tests/test-snprintf-posix.c: Likewise.
12922         * tests/test-snprintf.c: Likewise.
12923         * tests/test-sprintf-posix.c: Likewise.
12924         * tests/test-stat-time.c: Likewise.
12925         * tests/test-stat.c: Likewise.
12926         * tests/test-strcasestr.c: Likewise.
12927         * tests/test-strchrnul.c: Likewise.
12928         * tests/test-strerror.c: Likewise.
12929         * tests/test-striconv.c: Likewise.
12930         * tests/test-striconveh.c: Likewise.
12931         * tests/test-striconveha.c: Likewise.
12932         * tests/test-strsignal.c: Likewise.
12933         * tests/test-strstr.c: Likewise.
12934         * tests/test-strtod.c: Likewise.
12935         * tests/test-strverscmp.c: Likewise.
12936         * tests/test-symlink.c: Likewise.
12937         * tests/test-symlinkat.c: Likewise.
12938         * tests/test-trunc1.c: Likewise.
12939         * tests/test-trunc2.c: Likewise.
12940         * tests/test-truncf1.c: Likewise.
12941         * tests/test-truncf2.c: Likewise.
12942         * tests/test-truncl.c: Likewise.
12943         * tests/test-uname.c: Likewise.
12944         * tests/test-unlink.c: Likewise.
12945         * tests/test-unlinkat.c: Likewise.
12946         * tests/test-unsetenv.c: Likewise.
12947         * tests/test-usleep.c: Likewise.
12948         * tests/test-utimens.c: Likewise.
12949         * tests/test-utimensat.c: Likewise.
12950         * tests/test-vasnprintf-posix.c: Likewise.
12951         * tests/test-vasnprintf-posix2.c: Likewise.
12952         * tests/test-vasnprintf.c: Likewise.
12953         * tests/test-vasprintf-posix.c: Likewise.
12954         * tests/test-vasprintf.c: Likewise.
12955         * tests/test-vdprintf-posix.c: Likewise.
12956         * tests/test-vfprintf-posix.c: Likewise.
12957         * tests/test-vprintf-posix.c: Likewise.
12958         * tests/test-vsnprintf-posix.c: Likewise.
12959         * tests/test-vsnprintf.c: Likewise.
12960         * tests/test-vsprintf-posix.c: Likewise.
12961         * tests/test-wcrtomb.c: Likewise.
12962         * tests/test-wcsnrtombs.c: Likewise.
12963         * tests/test-wcsrtombs.c: Likewise.
12964         * tests/test-wctype.c: Likewise.
12965         * tests/test-wcwidth.c: Likewise.
12966         * tests/test-xfprintf-posix.c: Likewise.
12967         * tests/test-xmemdup0.c: Likewise.
12968         * tests/test-xprintf-posix.c: Likewise.
12969         * tests/test-xvasprintf.c: Likewise.
12970         * tests/unicase/test-locale-language.c: Likewise.
12971         * tests/unicase/test-mapping-part1.h: Likewise.
12972         * tests/unicase/test-predicate-part1.h: Likewise.
12973         * tests/unicase/test-u8-casecmp.c: Likewise.
12974         * tests/unicase/test-u8-casecoll.c: Likewise.
12975         * tests/unicase/test-u8-casefold.c: Likewise.
12976         * tests/unicase/test-u8-is-cased.c: Likewise.
12977         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12978         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12979         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12980         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12981         * tests/unicase/test-u8-tolower.c: Likewise.
12982         * tests/unicase/test-u8-totitle.c: Likewise.
12983         * tests/unicase/test-u8-toupper.c: Likewise.
12984         * tests/unicase/test-u16-casecmp.c: Likewise.
12985         * tests/unicase/test-u16-casecoll.c: Likewise.
12986         * tests/unicase/test-u16-casefold.c: Likewise.
12987         * tests/unicase/test-u16-is-cased.c: Likewise.
12988         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12989         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12990         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12991         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12992         * tests/unicase/test-u16-tolower.c: Likewise.
12993         * tests/unicase/test-u16-totitle.c: Likewise.
12994         * tests/unicase/test-u16-toupper.c: Likewise.
12995         * tests/unicase/test-u32-casecmp.c: Likewise.
12996         * tests/unicase/test-u32-casecoll.c: Likewise.
12997         * tests/unicase/test-u32-casefold.c: Likewise.
12998         * tests/unicase/test-u32-is-cased.c: Likewise.
12999         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13000         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13001         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13002         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13003         * tests/unicase/test-u32-tolower.c: Likewise.
13004         * tests/unicase/test-u32-totitle.c: Likewise.
13005         * tests/unicase/test-u32-toupper.c: Likewise.
13006         * tests/unicase/test-ulc-casecmp.c: Likewise.
13007         * tests/unicase/test-ulc-casecoll.c: Likewise.
13008         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13009         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13010         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13011         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13012         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13013         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13014         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13015         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13016         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13017         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13018         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13019         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13020         * tests/unictype/test-bidi_byname.c: Likewise.
13021         * tests/unictype/test-bidi_name.c: Likewise.
13022         * tests/unictype/test-bidi_of.c: Likewise.
13023         * tests/unictype/test-bidi_test.c: Likewise.
13024         * tests/unictype/test-block_list.c: Likewise.
13025         * tests/unictype/test-block_of.c: Likewise.
13026         * tests/unictype/test-block_test.c: Likewise.
13027         * tests/unictype/test-categ_and.c: Likewise.
13028         * tests/unictype/test-categ_and_not.c: Likewise.
13029         * tests/unictype/test-categ_byname.c: Likewise.
13030         * tests/unictype/test-categ_name.c: Likewise.
13031         * tests/unictype/test-categ_none.c: Likewise.
13032         * tests/unictype/test-categ_of.c: Likewise.
13033         * tests/unictype/test-categ_or.c: Likewise.
13034         * tests/unictype/test-categ_test_withtable.c: Likewise.
13035         * tests/unictype/test-combining.c: Likewise.
13036         * tests/unictype/test-decdigit.c: Likewise.
13037         * tests/unictype/test-digit.c: Likewise.
13038         * tests/unictype/test-mirror.c: Likewise.
13039         * tests/unictype/test-numeric.c: Likewise.
13040         * tests/unictype/test-pr_byname.c: Likewise.
13041         * tests/unictype/test-pr_test.c: Likewise.
13042         * tests/unictype/test-predicate-part1.h: Likewise.
13043         * tests/unictype/test-scripts.c: Likewise.
13044         * tests/unictype/test-sy_c_ident.c: Likewise.
13045         * tests/unictype/test-sy_java_ident.c: Likewise.
13046         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13047         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13048         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13049         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13050         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13051         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13052         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13053         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13054         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13055         * tests/uninorm/test-compat-decomposition.c: Likewise.
13056         * tests/uninorm/test-composition.c: Likewise.
13057         * tests/uninorm/test-decomposing-form.c: Likewise.
13058         * tests/uninorm/test-decomposition.c: Likewise.
13059         * tests/uninorm/test-u8-nfc.c: Likewise.
13060         * tests/uninorm/test-u8-nfd.c: Likewise.
13061         * tests/uninorm/test-u8-nfkc.c: Likewise.
13062         * tests/uninorm/test-u8-nfkd.c: Likewise.
13063         * tests/uninorm/test-u8-normcmp.c: Likewise.
13064         * tests/uninorm/test-u8-normcoll.c: Likewise.
13065         * tests/uninorm/test-u16-nfc.c: Likewise.
13066         * tests/uninorm/test-u16-nfd.c: Likewise.
13067         * tests/uninorm/test-u16-nfkc.c: Likewise.
13068         * tests/uninorm/test-u16-nfkd.c: Likewise.
13069         * tests/uninorm/test-u16-normcmp.c: Likewise.
13070         * tests/uninorm/test-u16-normcoll.c: Likewise.
13071         * tests/uninorm/test-u32-nfc.c: Likewise.
13072         * tests/uninorm/test-u32-nfd.c: Likewise.
13073         * tests/uninorm/test-u32-nfkc.c: Likewise.
13074         * tests/uninorm/test-u32-nfkd.c: Likewise.
13075         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13076         * tests/uninorm/test-u32-normcmp.c: Likewise.
13077         * tests/uninorm/test-u32-normcoll.c: Likewise.
13078         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13079         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13080         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13081         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13082         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13083         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13084         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13085         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13086         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13087         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13088         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13089         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13090         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13091         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13092         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13093         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13094         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13095         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13096         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13097         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13098         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13099         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13100         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13101         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13102         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13103         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13104         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13105         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13106         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13107         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13108         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13109         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13110         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13111         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13112         * tests/uniwidth/test-u8-width.c: Likewise.
13113         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13114         * tests/uniwidth/test-u16-width.c: Likewise.
13115         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13116         * tests/uniwidth/test-u32-width.c: Likewise.
13117         * tests/uniwidth/test-uc_width.c: Likewise.
13118         * tests/uniwidth/test-uc_width2.c: Likewise.
13119         * modules/acl-tests (Files): Add tests/macros.h.
13120         * modules/areadlink-tests (Files): Likewise.
13121         * modules/areadlink-with-size-tests (Files): Likewise.
13122         * modules/areadlinkat-tests (Files): Likewise.
13123         * modules/areadlinkat-with-size-tests (Files): Likewise.
13124         * modules/argmatch-tests (Files): Likewise.
13125         * modules/argv-iter-tests (Files): Likewise.
13126         * modules/array-list-tests (Files): Likewise.
13127         * modules/array-mergesort-tests (Files): Likewise.
13128         * modules/array-oset-tests (Files): Likewise.
13129         * modules/avltree-list-tests (Files): Likewise.
13130         * modules/avltree-oset-tests (Files): Likewise.
13131         * modules/avltreehash-list-tests (Files): Likewise.
13132         * modules/base64-tests (Files): Likewise.
13133         * modules/binary-io-tests (Files): Likewise.
13134         * modules/bitrotate-tests (Files): Likewise.
13135         * modules/btowc-tests (Files): Likewise.
13136         * modules/byteswap-tests (Files): Likewise.
13137         * modules/c-ctype-tests (Files): Likewise.
13138         * modules/c-stack-tests (Files): Likewise.
13139         * modules/c-strcase-tests (Files): Likewise.
13140         * modules/c-strcasestr-tests (Files): Likewise.
13141         * modules/c-strstr-tests (Files): Likewise.
13142         * modules/canonicalize-lgpl-tests (Files): Likewise.
13143         * modules/canonicalize-tests (Files): Likewise.
13144         * modules/carray-list-tests (Files): Likewise.
13145         * modules/ceilf-tests (Files): Likewise.
13146         * modules/ceill-tests (Files): Likewise.
13147         * modules/chown-tests (Files): Likewise.
13148         * modules/cloexec-tests (Files): Likewise.
13149         * modules/copy-file-tests (Files): Likewise.
13150         * modules/count-one-bits-tests (Files): Likewise.
13151         * modules/dprintf-posix-tests (Files): Likewise.
13152         * modules/dup2-tests (Files): Likewise.
13153         * modules/dup3-tests (Files): Likewise.
13154         * modules/duplocale-tests (Files): Likewise.
13155         * modules/fbufmode-tests (Files): Likewise.
13156         * modules/fchdir-tests (Files): Likewise.
13157         * modules/fcntl-safer-tests (Files): Likewise.
13158         * modules/fcntl-tests (Files): Likewise.
13159         * modules/fdopendir-tests (Files): Likewise.
13160         * modules/fdutimensat-tests (Files): Likewise.
13161         * modules/fflush-tests (Files): Likewise.
13162         * modules/filevercmp-tests (Files): Likewise.
13163         * modules/flock-tests (Files): Likewise.
13164         * modules/floorf-tests (Files): Likewise.
13165         * modules/floorl-tests (Files): Likewise.
13166         * modules/fnmatch-tests (Files): Likewise.
13167         * modules/fopen-safer-tests (Files): Likewise.
13168         * modules/fopen-tests (Files): Likewise.
13169         * modules/fpending-tests (Files): Likewise.
13170         * modules/fprintf-posix-tests (Files): Likewise.
13171         * modules/fpurge-tests (Files): Likewise.
13172         * modules/freadable-tests (Files): Likewise.
13173         * modules/freadahead-tests (Files): Likewise.
13174         * modules/freading-tests (Files): Likewise.
13175         * modules/freadptr-tests (Files): Likewise.
13176         * modules/freadseek-tests (Files): Likewise.
13177         * modules/freopen-tests (Files): Likewise.
13178         * modules/frexp-nolibm-tests (Files): Likewise.
13179         * modules/frexp-tests (Files): Likewise.
13180         * modules/frexpl-nolibm-tests (Files): Likewise.
13181         * modules/frexpl-tests (Files): Likewise.
13182         * modules/fseek-tests (Files): Likewise.
13183         * modules/fseeko-tests (Files): Likewise.
13184         * modules/fstrcmp-tests (Files): Likewise.
13185         * modules/fsync-tests (Files): Likewise.
13186         * modules/ftell-tests (Files): Likewise.
13187         * modules/ftello-tests (Files): Likewise.
13188         * modules/func-tests (Files): Likewise.
13189         * modules/futimens-tests (Files): Likewise.
13190         * modules/fwritable-tests (Files): Likewise.
13191         * modules/fwriting-tests (Files): Likewise.
13192         * modules/getcwd-tests (Files): Likewise.
13193         * modules/getdate-tests (Files): Likewise.
13194         * modules/getdelim-tests (Files): Likewise.
13195         * modules/getdtablesize-tests (Files): Likewise.
13196         * modules/getgroups-tests (Files): Likewise.
13197         * modules/getline-tests (Files): Likewise.
13198         * modules/getndelim2-tests (Files): Likewise.
13199         * modules/glob-tests (Files): Likewise.
13200         * modules/hash-tests (Files): Likewise.
13201         * modules/i-ring-tests (Files): Likewise.
13202         * modules/iconv-tests (Files): Likewise.
13203         * modules/iconv_open-utf-tests (Files): Likewise.
13204         * modules/idpriv-drop-tests (Files): Likewise.
13205         * modules/idpriv-droptemp-tests (Files): Likewise.
13206         * modules/inet_ntop-tests (Files): Likewise.
13207         * modules/inet_pton-tests (Files): Likewise.
13208         * modules/isblank-tests (Files): Likewise.
13209         * modules/isfinite-tests (Files): Likewise.
13210         * modules/isinf-tests (Files): Likewise.
13211         * modules/isnan-tests (Files): Likewise.
13212         * modules/isnand-nolibm-tests (Files): Likewise.
13213         * modules/isnand-tests (Files): Likewise.
13214         * modules/isnanf-nolibm-tests (Files): Likewise.
13215         * modules/isnanf-tests (Files): Likewise.
13216         * modules/isnanl-nolibm-tests (Files): Likewise.
13217         * modules/isnanl-tests (Files): Likewise.
13218         * modules/lchown-tests (Files): Likewise.
13219         * modules/ldexpl-tests (Files): Likewise.
13220         * modules/link-tests (Files): Likewise.
13221         * modules/linkat-tests (Files): Likewise.
13222         * modules/linked-list-tests (Files): Likewise.
13223         * modules/linkedhash-list-tests (Files): Likewise.
13224         * modules/localename-tests (Files): Likewise.
13225         * modules/lseek-tests (Files): Likewise.
13226         * modules/lstat-tests (Files): Likewise.
13227         * modules/mbmemcasecmp-tests (Files): Likewise.
13228         * modules/mbmemcasecoll-tests (Files): Likewise.
13229         * modules/mbrtowc-tests (Files): Likewise.
13230         * modules/mbscasecmp-tests (Files): Likewise.
13231         * modules/mbscasestr-tests (Files): Likewise.
13232         * modules/mbschr-tests (Files): Likewise.
13233         * modules/mbscspn-tests (Files): Likewise.
13234         * modules/mbsinit-tests (Files): Likewise.
13235         * modules/mbsncasecmp-tests (Files): Likewise.
13236         * modules/mbsnrtowcs-tests (Files): Likewise.
13237         * modules/mbspbrk-tests (Files): Likewise.
13238         * modules/mbspcasecmp-tests (Files): Likewise.
13239         * modules/mbsrchr-tests (Files): Likewise.
13240         * modules/mbsrtowcs-tests (Files): Likewise.
13241         * modules/mbsspn-tests (Files): Likewise.
13242         * modules/mbsstr-tests (Files): Likewise.
13243         * modules/memchr-tests (Files): Likewise.
13244         * modules/memchr2-tests (Files): Likewise.
13245         * modules/memcmp-tests (Files): Likewise.
13246         * modules/memmem-tests (Files): Likewise.
13247         * modules/memrchr-tests (Files): Likewise.
13248         * modules/mkdir-tests (Files): Likewise.
13249         * modules/mkfifo-tests (Files): Likewise.
13250         * modules/mkfifoat-tests (Files): Likewise.
13251         * modules/mknod-tests (Files): Likewise.
13252         * modules/nanosleep-tests (Files): Likewise.
13253         * modules/nl_langinfo-tests (Files): Likewise.
13254         * modules/obstack-printf-tests (Files): Likewise.
13255         * modules/open-tests (Files): Likewise.
13256         * modules/openat-tests (Files): Likewise.
13257         * modules/pipe-filter-gi-tests (Files): Likewise.
13258         * modules/pipe-filter-ii-tests (Files): Likewise.
13259         * modules/pipe2-tests (Files): Likewise.
13260         * modules/popen-safer-tests (Files): Likewise.
13261         * modules/popen-tests (Files): Likewise.
13262         * modules/posixtm-tests (Files): Likewise.
13263         * modules/pread-tests (Files): Likewise.
13264         * modules/printf-frexp-tests (Files): Likewise.
13265         * modules/printf-frexpl-tests (Files): Likewise.
13266         * modules/printf-posix-tests (Files): Likewise.
13267         * modules/priv-set-tests (Files): Likewise.
13268         * modules/quotearg-tests (Files): Likewise.
13269         * modules/random_r-tests (Files): Likewise.
13270         * modules/rawmemchr-tests (Files): Likewise.
13271         * modules/rbtree-list-tests (Files): Likewise.
13272         * modules/rbtree-oset-tests (Files): Likewise.
13273         * modules/rbtreehash-list-tests (Files): Likewise.
13274         * modules/readlink-tests (Files): Likewise.
13275         * modules/remove-tests (Files): Likewise.
13276         * modules/rename-tests (Files): Likewise.
13277         * modules/renameat-tests (Files): Likewise.
13278         * modules/rmdir-tests (Files): Likewise.
13279         * modules/round-tests (Files): Likewise.
13280         * modules/roundf-tests (Files): Likewise.
13281         * modules/roundl-tests (Files): Likewise.
13282         * modules/safe-alloc-tests (Files): Likewise.
13283         * modules/setenv-tests (Files): Likewise.
13284         * modules/sigaction-tests (Files): Likewise.
13285         * modules/signbit-tests (Files): Likewise.
13286         * modules/sleep-tests (Files): Likewise.
13287         * modules/snprintf-posix-tests (Files): Likewise.
13288         * modules/snprintf-tests (Files): Likewise.
13289         * modules/sprintf-posix-tests (Files): Likewise.
13290         * modules/stat-tests (Files): Likewise.
13291         * modules/stat-time-tests (Files): Likewise.
13292         * modules/strcasestr-tests (Files): Likewise.
13293         * modules/strchrnul-tests (Files): Likewise.
13294         * modules/strerror-tests (Files): Likewise.
13295         * modules/striconv-tests (Files): Likewise.
13296         * modules/striconveh-tests (Files): Likewise.
13297         * modules/striconveha-tests (Files): Likewise.
13298         * modules/strsignal-tests (Files): Likewise.
13299         * modules/strstr-tests (Files): Likewise.
13300         * modules/strtod-tests (Files): Likewise.
13301         * modules/strverscmp-tests (Files): Likewise.
13302         * modules/symlink-tests (Files): Likewise.
13303         * modules/symlinkat-tests (Files): Likewise.
13304         * modules/trunc-tests (Files): Likewise.
13305         * modules/truncf-tests (Files): Likewise.
13306         * modules/truncl-tests (Files): Likewise.
13307         * modules/uname-tests (Files): Likewise.
13308         * modules/unicase/cased-tests (Files): Likewise.
13309         * modules/unicase/ignorable-tests (Files): Likewise.
13310         * modules/unicase/locale-language-tests (Files): Likewise.
13311         * modules/unicase/tolower-tests (Files): Likewise.
13312         * modules/unicase/totitle-tests (Files): Likewise.
13313         * modules/unicase/toupper-tests (Files): Likewise.
13314         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13315         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13316         * modules/unicase/u8-casefold-tests (Files): Likewise.
13317         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13318         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13319         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13320         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13321         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13322         * modules/unicase/u8-tolower-tests (Files): Likewise.
13323         * modules/unicase/u8-totitle-tests (Files): Likewise.
13324         * modules/unicase/u8-toupper-tests (Files): Likewise.
13325         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13326         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13327         * modules/unicase/u16-casefold-tests (Files): Likewise.
13328         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13329         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13330         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13331         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13332         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13333         * modules/unicase/u16-tolower-tests (Files): Likewise.
13334         * modules/unicase/u16-totitle-tests (Files): Likewise.
13335         * modules/unicase/u16-toupper-tests (Files): Likewise.
13336         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13337         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13338         * modules/unicase/u32-casefold-tests (Files): Likewise.
13339         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13340         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13341         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13342         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13343         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13344         * modules/unicase/u32-tolower-tests (Files): Likewise.
13345         * modules/unicase/u32-totitle-tests (Files): Likewise.
13346         * modules/unicase/u32-toupper-tests (Files): Likewise.
13347         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13348         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13349         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13350         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13351         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13352         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13353         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13354         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13355         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13356         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13357         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13358         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13359         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13360         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13361         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13362         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13363         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13364         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13365         * modules/unictype/block-list-tests (Files): Likewise.
13366         * modules/unictype/block-of-tests (Files): Likewise.
13367         * modules/unictype/block-test-tests (Files): Likewise.
13368         * modules/unictype/category-C-tests (Files): Likewise.
13369         * modules/unictype/category-Cc-tests (Files): Likewise.
13370         * modules/unictype/category-Cf-tests (Files): Likewise.
13371         * modules/unictype/category-Cn-tests (Files): Likewise.
13372         * modules/unictype/category-Co-tests (Files): Likewise.
13373         * modules/unictype/category-Cs-tests (Files): Likewise.
13374         * modules/unictype/category-L-tests (Files): Likewise.
13375         * modules/unictype/category-Ll-tests (Files): Likewise.
13376         * modules/unictype/category-Lm-tests (Files): Likewise.
13377         * modules/unictype/category-Lo-tests (Files): Likewise.
13378         * modules/unictype/category-Lt-tests (Files): Likewise.
13379         * modules/unictype/category-Lu-tests (Files): Likewise.
13380         * modules/unictype/category-M-tests (Files): Likewise.
13381         * modules/unictype/category-Mc-tests (Files): Likewise.
13382         * modules/unictype/category-Me-tests (Files): Likewise.
13383         * modules/unictype/category-Mn-tests (Files): Likewise.
13384         * modules/unictype/category-N-tests (Files): Likewise.
13385         * modules/unictype/category-Nd-tests (Files): Likewise.
13386         * modules/unictype/category-Nl-tests (Files): Likewise.
13387         * modules/unictype/category-No-tests (Files): Likewise.
13388         * modules/unictype/category-P-tests (Files): Likewise.
13389         * modules/unictype/category-Pc-tests (Files): Likewise.
13390         * modules/unictype/category-Pd-tests (Files): Likewise.
13391         * modules/unictype/category-Pe-tests (Files): Likewise.
13392         * modules/unictype/category-Pf-tests (Files): Likewise.
13393         * modules/unictype/category-Pi-tests (Files): Likewise.
13394         * modules/unictype/category-Po-tests (Files): Likewise.
13395         * modules/unictype/category-Ps-tests (Files): Likewise.
13396         * modules/unictype/category-S-tests (Files): Likewise.
13397         * modules/unictype/category-Sc-tests (Files): Likewise.
13398         * modules/unictype/category-Sk-tests (Files): Likewise.
13399         * modules/unictype/category-Sm-tests (Files): Likewise.
13400         * modules/unictype/category-So-tests (Files): Likewise.
13401         * modules/unictype/category-Z-tests (Files): Likewise.
13402         * modules/unictype/category-Zl-tests (Files): Likewise.
13403         * modules/unictype/category-Zp-tests (Files): Likewise.
13404         * modules/unictype/category-Zs-tests (Files): Likewise.
13405         * modules/unictype/category-and-not-tests (Files): Likewise.
13406         * modules/unictype/category-and-tests (Files): Likewise.
13407         * modules/unictype/category-byname-tests (Files): Likewise.
13408         * modules/unictype/category-name-tests (Files): Likewise.
13409         * modules/unictype/category-none-tests (Files): Likewise.
13410         * modules/unictype/category-of-tests (Files): Likewise.
13411         * modules/unictype/category-or-tests (Files): Likewise.
13412         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13413         * modules/unictype/combining-class-tests (Files): Likewise.
13414         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13415         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13416         * modules/unictype/ctype-blank-tests (Files): Likewise.
13417         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13418         * modules/unictype/ctype-digit-tests (Files): Likewise.
13419         * modules/unictype/ctype-graph-tests (Files): Likewise.
13420         * modules/unictype/ctype-lower-tests (Files): Likewise.
13421         * modules/unictype/ctype-print-tests (Files): Likewise.
13422         * modules/unictype/ctype-punct-tests (Files): Likewise.
13423         * modules/unictype/ctype-space-tests (Files): Likewise.
13424         * modules/unictype/ctype-upper-tests (Files): Likewise.
13425         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13426         * modules/unictype/decimal-digit-tests (Files): Likewise.
13427         * modules/unictype/digit-tests (Files): Likewise.
13428         * modules/unictype/mirror-tests (Files): Likewise.
13429         * modules/unictype/numeric-tests (Files): Likewise.
13430         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13431         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13432         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13433         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13434         Likewise.
13435         * modules/unictype/property-bidi-block-separator-tests (Files):
13436         Likewise.
13437         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13438         Likewise.
13439         * modules/unictype/property-bidi-common-separator-tests (Files):
13440         Likewise.
13441         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13442         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13443         Likewise.
13444         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13445         Likewise.
13446         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13447         Likewise.
13448         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13449         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13450         Likewise.
13451         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13452         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13453         Likewise.
13454         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13455         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13456         * modules/unictype/property-bidi-segment-separator-tests (Files):
13457         Likewise.
13458         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13459         * modules/unictype/property-byname-tests (Files): Likewise.
13460         * modules/unictype/property-combining-tests (Files): Likewise.
13461         * modules/unictype/property-composite-tests (Files): Likewise.
13462         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13463         * modules/unictype/property-dash-tests (Files): Likewise.
13464         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13465         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13466         Likewise.
13467         * modules/unictype/property-deprecated-tests (Files): Likewise.
13468         * modules/unictype/property-diacritic-tests (Files): Likewise.
13469         * modules/unictype/property-extender-tests (Files): Likewise.
13470         * modules/unictype/property-format-control-tests (Files): Likewise.
13471         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13472         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13473         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13474         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13475         * modules/unictype/property-hyphen-tests (Files): Likewise.
13476         * modules/unictype/property-id-continue-tests (Files): Likewise.
13477         * modules/unictype/property-id-start-tests (Files): Likewise.
13478         * modules/unictype/property-ideographic-tests (Files): Likewise.
13479         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13480         * modules/unictype/property-ids-trinary-operator-tests (Files):
13481         Likewise.
13482         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13483         * modules/unictype/property-iso-control-tests (Files): Likewise.
13484         * modules/unictype/property-join-control-tests (Files): Likewise.
13485         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13486         * modules/unictype/property-line-separator-tests (Files): Likewise.
13487         * modules/unictype/property-logical-order-exception-tests (Files):
13488         Likewise.
13489         * modules/unictype/property-lowercase-tests (Files): Likewise.
13490         * modules/unictype/property-math-tests (Files): Likewise.
13491         * modules/unictype/property-non-break-tests (Files): Likewise.
13492         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13493         * modules/unictype/property-numeric-tests (Files): Likewise.
13494         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13495         * modules/unictype/property-other-default-ignorable-code-point-tests
13496         (Files): Likewise.
13497         * modules/unictype/property-other-grapheme-extend-tests (Files):
13498         Likewise.
13499         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13500         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13501         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13502         * modules/unictype/property-other-math-tests (Files): Likewise.
13503         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13504         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13505         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13506         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13507         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13508         * modules/unictype/property-private-use-tests (Files): Likewise.
13509         * modules/unictype/property-punctuation-tests (Files): Likewise.
13510         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13511         * modules/unictype/property-radical-tests (Files): Likewise.
13512         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13513         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13514         * modules/unictype/property-space-tests (Files): Likewise.
13515         * modules/unictype/property-terminal-punctuation-tests (Files):
13516         Likewise.
13517         * modules/unictype/property-test-tests (Files): Likewise.
13518         * modules/unictype/property-titlecase-tests (Files): Likewise.
13519         * modules/unictype/property-unassigned-code-value-tests (Files):
13520         Likewise.
13521         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13522         * modules/unictype/property-uppercase-tests (Files): Likewise.
13523         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13524         * modules/unictype/property-white-space-tests (Files): Likewise.
13525         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13526         * modules/unictype/property-xid-start-tests (Files): Likewise.
13527         * modules/unictype/property-zero-width-tests (Files): Likewise.
13528         * modules/unictype/scripts-tests (Files): Likewise.
13529         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13530         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13531         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13532         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13533         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13534         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13535         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13536         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13537         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13538         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13539         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13540         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13541         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13542         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13543         * modules/uninorm/composition-tests (Files): Likewise.
13544         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13545         * modules/uninorm/decomposition-tests (Files): Likewise.
13546         * modules/uninorm/filter-tests (Files): Likewise.
13547         * modules/uninorm/nfc-tests (Files): Likewise.
13548         * modules/uninorm/nfd-tests (Files): Likewise.
13549         * modules/uninorm/nfkc-tests (Files): Likewise.
13550         * modules/uninorm/nfkd-tests (Files): Likewise.
13551         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13552         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13553         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13554         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13555         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13556         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13557         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13558         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13559         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13560         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13561         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13562         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13563         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13564         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13565         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13566         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13567         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13568         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13569         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13570         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13571         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13572         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13573         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13574         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13575         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13576         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13577         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13578         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13579         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13580         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13581         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13582         * modules/uniwidth/u8-width-tests (Files): Likewise.
13583         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13584         * modules/uniwidth/u16-width-tests (Files): Likewise.
13585         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13586         * modules/uniwidth/u32-width-tests (Files): Likewise.
13587         * modules/uniwidth/width-tests (Files): Likewise.
13588         * modules/unlink-tests (Files): Likewise.
13589         * modules/unsetenv-tests (Files): Likewise.
13590         * modules/usleep-tests (Files): Likewise.
13591         * modules/utimens-tests (Files): Likewise.
13592         * modules/utimensat-tests (Files): Likewise.
13593         * modules/vasnprintf-posix-tests (Files): Likewise.
13594         * modules/vasnprintf-tests (Files): Likewise.
13595         * modules/vasprintf-posix-tests (Files): Likewise.
13596         * modules/vasprintf-tests (Files): Likewise.
13597         * modules/vdprintf-posix-tests (Files): Likewise.
13598         * modules/vfprintf-posix-tests (Files): Likewise.
13599         * modules/vprintf-posix-tests (Files): Likewise.
13600         * modules/vsnprintf-posix-tests (Files): Likewise.
13601         * modules/vsnprintf-tests (Files): Likewise.
13602         * modules/vsprintf-posix-tests (Files): Likewise.
13603         * modules/wcrtomb-tests (Files): Likewise.
13604         * modules/wcsnrtombs-tests (Files): Likewise.
13605         * modules/wcsrtombs-tests (Files): Likewise.
13606         * modules/wctype-tests (Files): Likewise.
13607         * modules/wcwidth-tests (Files): Likewise.
13608         * modules/xmemdup0-tests (Files): Likewise.
13609         * modules/xprintf-posix-tests (Files): Likewise.
13610         * modules/xvasprintf-tests (Files): Likewise.
13611
13612 2009-12-24  Eric Blake  <ebb9@byu.net>
13613
13614         test-nanosleep: fix typo
13615         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13616         patch.
13617         Reported by Bruno Haible.
13618
13619 2009-12-24  Bruno Haible  <bruno@clisp.org>
13620
13621         Reduce namespace pollution on glibc systems.
13622         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13623         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13624         systems.
13625         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13626         <getopt.h> on glibc systems.
13627         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13628         systems.
13629         * lib/fcntl.c: Include <unistd.h> here instead.
13630
13631 2009-12-24  Bruno Haible  <bruno@clisp.org>
13632
13633         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13634
13635 2009-12-24  Eric Blake  <ebb9@byu.net>
13636
13637         tests: add signature checks
13638         * tests/signature.h (SIGNATURE_CHECK): New file.
13639         * modules/atexit-tests (Files): Use it.
13640         * modules/btowc-tests (Files): Likewise.
13641         * modules/canonicalize-lgpl-tests (Files): Likewise.
13642         * modules/ceilf-tests (Files): Likewise.
13643         * modules/ceill-tests (Files): Likewise.
13644         * modules/chown-tests (Files): Likewise.
13645         * modules/dprintf-posix-tests (Files): Likewise.
13646         * modules/dup2-tests (Files): Likewise.
13647         * modules/dup3-tests (Files): Likewise.
13648         * modules/duplocale-tests (Files): Likewise.
13649         * modules/fchdir-tests (Files): Likewise.
13650         * modules/fcntl-tests (Files): Likewise.
13651         * modules/fdopendir-tests (Files): Likewise.
13652         * modules/fflush-tests (Files): Likewise.
13653         * modules/flock-tests (Files): Likewise.
13654         * modules/floorf-tests (Files): Likewise.
13655         * modules/floorl-tests (Files): Likewise.
13656         * modules/fnmatch-tests (Files): Likewise.
13657         * modules/fopen-tests (Files): Likewise.
13658         * modules/fprintf-posix-tests (Files): Likewise.
13659         * modules/freopen-tests (Files): Likewise.
13660         * modules/frexp-nolibm-tests (Files): Likewise.
13661         * modules/frexp-tests (Files): Likewise.
13662         * modules/frexpl-nolibm-tests (Files): Likewise.
13663         * modules/frexpl-tests (Files): Likewise.
13664         * modules/fseek-tests (Files): Likewise.
13665         * modules/fseeko-tests (Files): Likewise.
13666         * modules/fsync-tests (Files): Likewise.
13667         * modules/ftell-tests (Files): Likewise.
13668         * modules/ftello-tests (Files): Likewise.
13669         * modules/futimens-tests (Files): Likewise.
13670         * modules/getaddrinfo-tests (Files): Likewise.
13671         * modules/getcwd-tests (Files): Likewise.
13672         * modules/getdelim-tests (Files): Likewise.
13673         * modules/getdtablesize-tests (Files): Likewise.
13674         * modules/getgroups-tests (Files): Likewise.
13675         * modules/gethostname-tests (Files): Likewise.
13676         * modules/getline-tests (Files): Likewise.
13677         * modules/getopt-posix-tests (Files): Likewise.
13678         * modules/gettimeofday-tests (Files): Likewise.
13679         * modules/glob-tests (Files): Likewise.
13680         * modules/iconv-tests (Files): Likewise.
13681         * modules/inet_ntop-tests (Files): Likewise.
13682         * modules/inet_pton-tests (Files): Likewise.
13683         * modules/isblank-tests (Files): Likewise.
13684         * modules/lchown-tests (Files): Likewise.
13685         * modules/ldexpl-tests (Files): Likewise.
13686         * modules/link-tests (Files): Likewise.
13687         * modules/linkat-tests (Files): Likewise.
13688         * modules/lseek-tests (Files): Likewise.
13689         * modules/lstat-tests (Files): Likewise.
13690         * modules/mbrtowc-tests (Files): Likewise.
13691         * modules/mbsinit-tests (Files): Likewise.
13692         * modules/mbsnrtowcs-tests (Files): Likewise.
13693         * modules/mbsrtowcs-tests (Files): Likewise.
13694         * modules/memchr-tests (Files): Likewise.
13695         * modules/memcmp-tests (Files): Likewise.
13696         * modules/memmem-tests (Files): Likewise.
13697         * modules/memrchr-tests (Files): Likewise.
13698         * modules/mkdir-tests (Files): Likewise.
13699         * modules/mkfifo-tests (Files): Likewise.
13700         * modules/mkfifoat-tests (Files): Likewise.
13701         * modules/mknod-tests (Files): Likewise.
13702         * modules/nanosleep-tests (Files): Likewise.
13703         * modules/nl_langinfo-tests (Files): Likewise.
13704         * modules/obstack-printf-tests (Files): Likewise.
13705         * modules/open-tests (Files): Likewise.
13706         * modules/openat-tests (Files): Likewise.
13707         * modules/perror-tests (Files): Likewise.
13708         * modules/pipe2-tests (Files): Likewise.
13709         * modules/poll-tests (Files): Likewise.
13710         * modules/popen-tests (Files): Likewise.
13711         * modules/posix_spawn-tests (Files): Likewise.
13712         * modules/posix_spawnp-tests (Files): Likewise.
13713         * modules/pread-tests (Files): Likewise.
13714         * modules/printf-posix-tests (Files): Likewise.
13715         * modules/pty-tests (Files): Likewise.
13716         * modules/random_r-tests (Files): Likewise.
13717         * modules/rawmemchr-tests (Files): Likewise.
13718         * modules/readlink-tests (Files): Likewise.
13719         * modules/remove-tests (Files): Likewise.
13720         * modules/rename-tests (Files): Likewise.
13721         * modules/renameat-tests (Files): Likewise.
13722         * modules/rmdir-tests (Files): Likewise.
13723         * modules/round-tests (Files): Likewise.
13724         * modules/roundf-tests (Files): Likewise.
13725         * modules/roundl-tests (Files): Likewise.
13726         * modules/select-tests (Files): Likewise.
13727         * modules/setenv-tests (Files): Likewise.
13728         * modules/sigaction-tests (Files): Likewise.
13729         * modules/sleep-tests (Files): Likewise.
13730         * modules/snprintf-posix-tests (Files): Likewise.
13731         * modules/snprintf-tests (Files): Likewise.
13732         * modules/sprintf-posix-tests (Files): Likewise.
13733         * modules/stat-tests (Files): Likewise.
13734         * modules/strcasestr-tests (Files): Likewise.
13735         * modules/strchrnul-tests (Files): Likewise.
13736         * modules/strerror-tests (Files): Likewise.
13737         * modules/strsignal-tests (Files): Likewise.
13738         * modules/strstr-tests (Files): Likewise.
13739         * modules/strtod-tests (Files): Likewise.
13740         * modules/strverscmp-tests (Files): Likewise.
13741         * modules/symlink-tests (Files): Likewise.
13742         * modules/symlinkat-tests (Files): Likewise.
13743         * modules/times-tests (Files): Likewise.
13744         * modules/trunc-tests (Files): Likewise.
13745         * modules/truncf-tests (Files): Likewise.
13746         * modules/truncl-tests (Files): Likewise.
13747         * modules/tsearch-tests (Files): Likewise.
13748         * modules/uname-tests (Files): Likewise.
13749         * modules/unlink-tests (Files): Likewise.
13750         * modules/unsetenv-tests (Files): Likewise.
13751         * modules/usleep-tests (Files): Likewise.
13752         * modules/utimensat-tests (Files): Likewise.
13753         * modules/vasprintf-tests (Files): Likewise.
13754         * modules/vdprintf-posix-tests (Files): Likewise.
13755         * modules/vfprintf-posix-tests (Files): Likewise.
13756         * modules/vprintf-posix-tests (Files): Likewise.
13757         * modules/vsnprintf-posix-tests (Files): Likewise.
13758         * modules/vsnprintf-tests (Files): Likewise.
13759         * modules/vsprintf-posix-tests (Files): Likewise.
13760         * modules/wcrtomb-tests (Files): Likewise.
13761         * modules/wcsnrtombs-tests (Files): Likewise.
13762         * modules/wcsrtombs-tests (Files): Likewise.
13763         * modules/wcwidth-tests (Files): Likewise.
13764         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13765         * tests/test-isinf.c (isinf): Likewise.
13766         * tests/test-isnan.c (isnan): Likewise.
13767         * tests/test-signbit.c (signbit): Likewise.
13768         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13769         declaration, either as macro or with correct signature.
13770         (select): Ensure function under test is declared with correct
13771         signature in correct header.
13772         * tests/test-atexit.c (atexit): Likewise.
13773         * tests/test-btowc.c (btowc): Likewise.
13774         * tests/test-canonicalize-lgpl.c (realpath)
13775         (canonicalize_file_name): Likewise.
13776         * tests/test-ceilf1.c (ceilf): Likewise.
13777         * tests/test-ceill.c (ceill): Likewise.
13778         * tests/test-chown.c (chown): Likewise.
13779         * tests/test-dprintf-posix.c (dprintf): Likewise.
13780         * tests/test-dup2.c (dup2): Likewise.
13781         * tests/test-dup3.c (dup3): Likewise.
13782         * tests/test-duplocale.c (duplocale): Likewise.
13783         * tests/test-fchdir.c (fchdir): Likewise.
13784         * tests/test-fchownat.c (fchownat): Likewise.
13785         * tests/test-fcntl.c (fcntl): Likewise.
13786         * tests/test-fdopendir.c (fdopendir): Likewise.
13787         * tests/test-fflush.c (fflush): Likewise.
13788         * tests/test-flock.c (flock): Likewise.
13789         * tests/test-floorf1.c (floorf): Likewise.
13790         * tests/test-floorl.c (floorl): Likewise.
13791         * tests/test-fnmatch.c (fnmatch): Likewise.
13792         * tests/test-fopen.c (fopen): Likewise.
13793         * tests/test-fprintf-posix.c (fprintf): Likewise.
13794         * tests/test-freopen.c (freopen): Likewise.
13795         * tests/test-frexp.c (frexp): Likewise.
13796         * tests/test-frexpl.c (frexpl): Likewise.
13797         * tests/test-fseek.c (fseek): Likewise.
13798         * tests/test-fseeko.c (fseeko): Likewise.
13799         * tests/test-fstatat.c (fstatat): Likewise.
13800         * tests/test-fsync.c (fsync): Likewise.
13801         * tests/test-ftell.c (ftell): Likewise.
13802         * tests/test-ftello.c (ftello): Likewise.
13803         * tests/test-futimens.c (futimens): Likewise.
13804         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13805         (gai_strerror): Likewise.
13806         * tests/test-getcwd.c (getcwd): Likewise.
13807         * tests/test-getdelim.c (getdelim): Likewise.
13808         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13809         * tests/test-getgroups.c (getgroups): Likewise.
13810         * tests/test-gethostname.c (gethostname): Likewise.
13811         * tests/test-getline.c (getline): Likewise.
13812         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13813         Likewise.
13814         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13815         * tests/test-glob.c (glob, globfree): Likewise.
13816         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13817         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13818         * tests/test-inet_pton.c (inet_pton): Likewise.
13819         * tests/test-isblank.c (isblank): Likewise.
13820         * tests/test-lchown.c (lchown): Likewise.
13821         * tests/test-ldexpl.c (ldexpl): Likewise.
13822         * tests/test-link.c (link): Likewise.
13823         * tests/test-linkat.c (linkat): Likewise.
13824         * tests/test-lseek.c (lseek): Likewise.
13825         * tests/test-lstat.c (lstat): Likewise.
13826         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13827         * tests/test-mbsinit.c (mbsinit): Likewise.
13828         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13829         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13830         * tests/test-memchr.c (memchr): Likewise.
13831         * tests/test-memcmp.c (memcmp): Likewise.
13832         * tests/test-memmem.c (memmem): Likewise.
13833         * tests/test-memrchr.c (memrchr): Likewise.
13834         * tests/test-mkdir.c (mkdir): Likewise.
13835         * tests/test-mkdirat.c (mkdirat): Likewise.
13836         * tests/test-mkfifo.c (mkfifo): Likewise.
13837         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13838         * tests/test-mknod.c (mknod): Likewise.
13839         * tests/test-nanosleep.c (nanosleep): Likewise.
13840         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13841         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13842         Likewise.
13843         * tests/test-open.c (open): Likewise.
13844         * tests/test-openat.c (openat): Likewise.
13845         * tests/test-perror.c (perror): Likewise.
13846         * tests/test-pipe2.c (pipe2): Likewise.
13847         * tests/test-poll.c (poll): Likewise.
13848         * tests/test-popen.c (popen, pclose): Likewise.
13849         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13850         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13851         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13852         (posix_spawn_file_actions_destroy)
13853         (posix_spawn_file_actions_addclose)
13854         (posix_spawn_file_actions_addopen)
13855         (posix_spawn_file_actions_adddup2): Likewise.
13856         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13857         * tests/test-pread.c (pread): Likewise.
13858         * tests/test-printf-posix.c (printf): Likewise.
13859         * tests/test-pty.c (openpty, forkpty): Likewise.
13860         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13861         (random_r): Likewise.
13862         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13863         * tests/test-readlink.c (readlink): Likewise.
13864         * tests/test-remove.c (remove): Likewise.
13865         * tests/test-rename.c (rename): Likewise.
13866         * tests/test-renameat.c (renameat): Likewise.
13867         * tests/test-rmdir.c (rmdir): Likewise.
13868         * tests/test-round1.c (round): Likewise.
13869         * tests/test-roundf1.c (roundf): Likewise.
13870         * tests/test-roundl.c (roundl): Likewise.
13871         * tests/test-setenv.c (setenv): Likewise.
13872         * tests/test-sigaction.c (sigaction): Likewise.
13873         * tests/test-sleep.c (sleep): Likewise.
13874         * tests/test-snprintf.c (snprintf): Likewise.
13875         * tests/test-sprintf-posix.c (sprintf): Likewise.
13876         * tests/test-stat.c (stat): Likewise.
13877         * tests/test-stpncpy.c (stpncpy): Likewise.
13878         * tests/test-strcasestr.c (strcasestr): Likewise.
13879         * tests/test-strchrnul.c (strchrnul): Likewise.
13880         * tests/test-strerror.c (strerror): Likewise.
13881         * tests/test-strsignal.c (strsignal): Likewise.
13882         * tests/test-strstr.c (strstr): Likewise.
13883         * tests/test-strtod.c (strtod): Likewise.
13884         * tests/test-strverscmp.c (strverscmp): Likewise.
13885         * tests/test-symlink.c (symlink): Likewise.
13886         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13887         * tests/test-times.c (times): Likewise.
13888         * tests/test-trunc1.c (trunc): Likewise.
13889         * tests/test-truncf1.c (truncf): Likewise.
13890         * tests/test-truncl.c (truncl): Likewise.
13891         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13892         Likewise.
13893         * tests/test-uname.c (uname): Likewise.
13894         * tests/test-unlink.c (unlink): Likewise.
13895         * tests/test-unlinkat.c (unlinkat): Likewise.
13896         * tests/test-unsetenv.c (unsetenv): Likewise.
13897         * tests/test-usleep.c (usleep): Likewise.
13898         * tests/test-utimensat.c (utimensat): Likewise.
13899         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13900         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13901         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13902         * tests/test-vprintf-posix.c (vprintf): Likewise.
13903         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13904         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13905         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13906         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13907         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13908         * tests/test-wcwidth.c (wcwidth): Likewise.
13909
13910         build: pull in conditional headers during GNULIB_POSIXCHECK
13911         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13912         definitions from any conditionally-included headers.
13913         * lib/stdlib.in.h (includes): Likewise.
13914         * lib/unistd.in.h (includes): Likewise.
13915
13916 2009-12-24  Bruno Haible  <bruno@clisp.org>
13917
13918         * tests/test-argv-iter.c: Include header file being tested immediately
13919         after config.h.
13920         * tests/test-base64.c: Likewise.
13921         * tests/test-flock.c: Likewise.
13922         * tests/test-fsync.c: Likewise.
13923         * tests/test-getdate.c: Likewise.
13924         * tests/test-getndelim2.c: Likewise.
13925         * tests/test-isfinite.c: Likewise.
13926         * tests/test-isinf.c: Likewise.
13927         * tests/test-strerror.c: Likewise.
13928         * tests/test-strsignal.c: Likewise.
13929
13930 2009-12-23  Eric Blake  <ebb9@byu.net>
13931
13932         unistd: work around cygwin bug
13933         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13934         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13935         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13936
13937 2009-12-23  Bruno Haible  <bruno@clisp.org>
13938
13939         localename: More tests.
13940         * tests/test-localename.c (SIZEOF): New macro.
13941         (categories): New variable.
13942         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13943         test_locale_name_default): Add test w.r.t. thread locale.
13944         (test_locale_name_thread): New function.
13945         (main): Invoke it.
13946
13947         localename: Make aware of thread locale.
13948         * lib/localename.h (gl_locale_name_thread): New declaration.
13949         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13950         behaviour with respect to thread locale.
13951         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13952         <langinfo.h>, glthread/lock.h.
13953         (SIZE_BITS): New macro.
13954         (string_hash): New function.
13955         (struct hash_node): New type.
13956         (HASH_TABLE_SIZE): New macro.
13957         (struniq_hash_table, struniq_lock): New variables.
13958         (struniq): New function.
13959         (gl_locale_name_thread): New function.
13960         (gl_locale_name): Invoke it.
13961         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13962         * modules/localename (Depends-on): Add lock.
13963         Reported by Mike Gran <spk121@yahoo.com>.
13964
13965 2009-12-23  Eric Blake  <ebb9@byu.net>
13966
13967         va-args: new module
13968         * modules/va-args: New file.
13969         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13970         * MODULES.html.sh (Core language properties): Mention it.
13971
13972         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13973         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13974         named alias for __attribute__((__unused__)).
13975         * lib/chown.c: Update client.
13976         * lib/fchmodat.c: Likewise.
13977         * lib/fts.c: Likewise.
13978         * lib/getdate.y: Likewise.
13979         * lib/getgroups.c: Likewise.
13980         * lib/getopt.c: Likewise.
13981         * lib/getugroups.c: Likewise.
13982         * lib/mkdir.c: Likewise.
13983         * lib/mkfifo.c: Likewise.
13984         * lib/mkfifoat.c: Likewise.
13985         * lib/mknod.c: Likewise.
13986         * lib/mknodat.c: Likewise.
13987         * lib/readlink.c: Likewise.
13988         * lib/se-context.in.h: Likewise.
13989         * lib/se-selinux.in.h: Likewise.
13990         * lib/sockets.c: Likewise.
13991         * lib/symlink.c: Likewise.
13992         * lib/symlinkat.c: Likewise.
13993         * lib/unicodeio.c: Likewise.
13994         * lib/unistr.h: Likewise.
13995         * tests/test-areadlink.c: Likewise.
13996         * tests/test-areadlinkat.c: Likewise.
13997         * tests/test-filenamecat.c: Likewise.
13998         * tests/test-fseeko.c: Likewise.
13999         * tests/test-ftello.c: Likewise.
14000         * tests/test-getdate.c: Likewise.
14001         * tests/test-getgroups.c: Likewise.
14002         * tests/test-gethostname.c: Likewise.
14003         * tests/test-quotearg.c: Likewise.
14004         * tests/test-version-etc.c: Likewise.
14005         * tests/test-xalloc-die.c: Likewise.
14006         * tests/test-xfprintf-posix.c: Likewise.
14007         * tests/test-xprintf-posix.c: Likewise.
14008         * tests/test-xvasprintf.c: Likewise.
14009
14010         tests: avoid compiler warnings
14011         * tests/test-fcntl.c (main): Delete unused parameters.
14012         * tests/test-freopen-safer.c (main): Likewise.
14013         * tests/test-xalloc-die.c (main): Mark unused parameters.
14014         * tests/test-fseeko.c (main): Likewise.
14015         * tests/test-ftello.c (main): Likewise.
14016         * tests/test-nanosleep.c (main): Avoid declaration warning.
14017         * tests/test-sleep.c (main): Likewise.
14018         * tests/test-unsetenv.c (main): Silence warning about string
14019         literal.
14020         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14021
14022 2009-12-23  Bruno Haible  <bruno@clisp.org>
14023
14024         * tests/test-localename.c (test_locale_name): New function, extracted
14025         from main. Also test mixed situations.
14026         (test_locale_name_posix, test_locale_name_environ,
14027         test_locale_name_default): New functions.
14028         (main): Invoke them all.
14029         * modules/localename-tests (configure.ac): Test for newlocale.
14030
14031 2009-12-23  Bruno Haible  <bruno@clisp.org>
14032
14033         unistd: Ensure getcwd gets declared before being overridden.
14034         * lib/unistd.in.h: Conditionally include <io.h>.
14035
14036 2009-12-22  Bruno Haible  <bruno@clisp.org>
14037
14038         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14039         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14040         (gl_WCHAR_H): Invoke it.
14041         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14042         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14043         Reported by Karl Berry <karl@freefriends.org>.
14044
14045 2009-12-22  Eric Blake  <ebb9@byu.net>
14046
14047         math, unistd: avoid redundant includes
14048         * lib/math.in.h (isnan): No need to re-include <math.h>.
14049         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14050
14051         getsubopt: work around cygwin bug
14052         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14053         avoid conflicting with system getsubopt.
14054         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14055         bug.
14056
14057         getopt: synchronize from glibc
14058         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14059         parameter order.  Adjust all callers.
14060         (_getopt_internal_r, main): Adjust quoting in error messages.
14061         Drop considerations for outdated POSIX 1003.2 error message.
14062         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14063         callers.
14064         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14065
14066         test-getopt: test stderr behavior
14067         * modules/getopt-posix-tests (Depends-on): Add dup2.
14068         * tests/test-getopt.c (ASSERT): Avoid stderr.
14069         (main): Move stderr to a temporary file.
14070         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14071         Instead, add parameter to inform caller if output occurred.
14072         (test_getopt): Adjust all existing tests to expect silence, and
14073         add new tests of leading ":".
14074         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14075         glibc shortcomings with leading "-:" or "+:" in optstring.
14076         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14077         Likewise.
14078         * doc/posix-functions/getopt.texi (getopt): Likewise.
14079
14080         test-getopt: enhance test
14081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14082         supports optind=0.
14083         * tests/test-getopt.c (OPTIND_MIN): Move...
14084         * tests/test-getopt.h (OPTIND_MIN): ...here.
14085         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14086         Require that optind=0 works, since modern BSD supports it in
14087         addition to optreset, and since coreutils expects it.
14088         (test_getopt_long_only): New test.
14089         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14090         glibc shortcomings with 'W;', and enforcement of optind=0.
14091         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14092         Likewise.
14093
14094 2009-12-21  Bruno Haible  <bruno@clisp.org>
14095
14096         localename: Improvements for MacOS X and Cygwin.
14097         * lib/localename.h (gl_locale_name_environ): New declaration.
14098         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14099         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14100         (gl_locale_name_posix): Invoke it.
14101         (gl_locale_name_default): Add comments. Use Windows native API also on
14102         Cygwin.
14103
14104 2009-12-21  Bruno Haible  <bruno@clisp.org>
14105
14106         Update list of Win32 locale ids.
14107         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14108         (LANG_SAMI): Renamed from LANG_SAAMI.
14109         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14110         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14111         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14112         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14113         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14114         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14115         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14116         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14117         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14118         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14119         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14120         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14121         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14122         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14123         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14124         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14125         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14126         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14127         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14128         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14129         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14130         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14131         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14132         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14133         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14134         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14135         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14136         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14137         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14138         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14139         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14140         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14141         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14142         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14143         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14144         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14145         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14146         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14147         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14148         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14149         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14150         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14151         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14152         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14153         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14154         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14155         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14156         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14157         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14158         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14159         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14160         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14161         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14162         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14163         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14164         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14165         Add more languages and countries for Sami, Sorbian. Add more countries
14166         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14167         for Pashto. Change country for Syriac, Tswana.
14168
14169 2009-12-21  Eric Blake  <ebb9@byu.net>
14170
14171         test-utimens: avoid spurious failure
14172         * tests/test-chown.h (nap): Factor...
14173         * tests/nap.h: ...into new file.
14174         * tests/test-lchown.h (nap): Avoid duplication.
14175         * tests/test-utimens-common.h (nap): Use shared implementation,
14176         necessary on file systems with 1-second resolution.
14177         * modules/chown-tests (Files): Include new file.
14178         * modules/fdutimensat-tests (Files): Likewise.
14179         * modules/futimens-tests (Files): Likewise.
14180         * modules/lchown-tests (Files): Likewise.
14181         * modules/openat-tests (Files): Likewise.
14182         * modules/utimens-tests (Files): Likewise.
14183         * modules/utimensat-tests (Files): Likewise.
14184
14185 2009-12-19  Eric Blake  <ebb9@byu.net>
14186
14187         futimens, utimensat: work around Linux bug
14188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14189         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14190         * lib/utimensat.c (rpl_utimensat): Work around it.
14191         * lib/futimens.c (rpl_futimens): Adjust comment.
14192
14193         utimens: work around Linux ctime bug
14194         * lib/utimens.c (detect_ctime_bug): New helper function.
14195         (update_timespec): Differentiate between workaround needed for
14196         this bug vs. what is needed for systems that lack utimensat.
14197         (fdutimens, lutimens): Work around bug.
14198
14199         utimens: check for ctime update
14200         * tests/test-utimens-common.h (check_ctime): Define.
14201         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14202         * tests/test-futimens.h (test_futimens): Likewise.
14203         * tests/test-lutimens.h (test_lutimens): Likewise.
14204         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14205         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14206
14207 2009-12-19  Bruno Haible  <bruno@clisp.org>
14208
14209         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14210         * tests/test-dprintf-posix2.sh: New file.
14211         * tests/test-dprintf-posix2.c: New file.
14212         * modules/dprintf-posix-tests (Files): Add them.
14213         (configure.ac): Check for getrlimit and setrlimit.
14214         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14215
14216 2009-12-19  Bruno Haible  <bruno@clisp.org>
14217
14218         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14219         * tests/test-fprintf-posix3.sh: New file.
14220         * tests/test-fprintf-posix3.c: New file.
14221         * modules/fprintf-posix-tests (Files): Add them.
14222         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14223
14224 2009-12-19  Eric Blake  <ebb9@byu.net>
14225
14226         dirfd: fix prototype
14227         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14228         * lib/dirfd.c (dirfd): Likewise.
14229
14230         canonicalize: reduce memory usage
14231         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14232         allocation to size.
14233         Reported by Solar Designer <solar@openwall.com>.
14234
14235 2009-12-19  Bruno Haible  <bruno@clisp.org>
14236
14237         New module attribute 'Applicability'.
14238         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14239         * gnulib-tool: New option --extract-applicability.
14240         (func_usage): Document it.
14241         (sed_extract_prog): Recognize it.
14242         (func_get_applicability): New function.
14243         (func_import): Generalize handling of 'link-warning' module.
14244         * modules/link-warning (Applicability): New section.
14245         * modules/arg-nonnull (Applicability): New section.
14246         Repoted by Simon Josefsson <simon@josefsson.org>.
14247
14248 2009-12-19  Bruno Haible  <bruno@clisp.org>
14249
14250         fflush: tweak
14251         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14252         * lib/fseeko.c (rpl_fseeko): Likewise.
14253
14254 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14255
14256         * lib/gl_list.h: Fix typo in comment.
14257
14258 2009-12-16  Eric Blake  <ebb9@byu.net>
14259
14260         fcntl: use to simplify other modules
14261         * modules/cloexec (Depends-on): Add fcntl.
14262         * modules/fchdir (Depends-on): Likewise.
14263         * modules/fd-safer-flag (Depends-on): Likewise.
14264         * modules/unistd-safer (Depends-on): Likewise.
14265         * modules/dup3 (configure.ac): Set module indicator.
14266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14267         missing.
14268         * lib/fchdir.c (_gl_register_dup): Fix comment.
14269         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14270         * lib/dup-safer.c (dup_safer): Likewise.
14271         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14272         * lib/dup3.c (dup3): Likewise.
14273         * tests/test-fchdir.c (main): Enhance test.
14274         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14275
14276         fcntl: port portions of fcntl to mingw
14277         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14278         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14279         replacement for mingw.
14280         * modules/fcntl (Description): Update.
14281         (Depends-on): Add dup2.
14282         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14283         * modules/fcntl-h (Makefile.am): Substitute it.
14284         * lib/fcntl.in.h (fcntl): Update declaration.
14285         (F_DUPFD, F_GETFD): New macros, when needed.
14286         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14287         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14288         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14289         we now guarantee.
14290
14291         fcntl: work around cygwin bug in F_DUPFD
14292         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14293         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14294         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14295         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14296         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14297
14298         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14299         * modules/fcntl (Files): List new files.
14300         (configure.ac): Run a test.
14301         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14302         * lib/fcntl.c (rpl_fcntl): Likewise.
14303         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14304         (gl_FCNTL_H): Always replace fcntl.h.
14305         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14306         * lib/fcntl.in.h (fcntl): Declare replacement.
14307         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14308         needed, plus a witness.
14309         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14310         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14311         * tests/test-fcntl.c: New file.
14312         * modules/fcntl-tests: Likewise.
14313
14314         binary-io: avoid potential compilation warning
14315         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14316         directives.
14317
14318         fflush: avoid compilation error on NetBSD
14319         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14320         between off_t and fpos_t, since the latter is sometimes a struct.
14321         * lib/fseeko.c (rpl_fseeko): Likewise.
14322         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14323
14324 2009-12-15  Eric Blake  <ebb9@byu.net>
14325
14326         fcntl-h, stdio, sys_ioctl: fix declarations
14327         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14328         function must not take arguments.
14329         * lib/sys_ioctl.in.h (ioctl): Likewise.
14330         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14331         (open): Add a link warning.
14332
14333 2009-12-15  Jim Meyering  <meyering@redhat.com>
14334
14335         areadlink, areadlink-with-size: relax license to LGPLv2+
14336         * modules/areadlink (License): Relax to LGPLv2+.
14337         * modules/areadlink-with-size (License): Likewise.
14338
14339 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14340             Bruno Haible  <bruno@clisp.org>
14341
14342         *printf: Fix memory leak.
14343         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14344         * lib/vfprintf.c (vfprintf): Likewise.
14345         * lib/dprintf.c (dprintf): Likewise.
14346         * lib/vdprintf.c (vdprintf): Likewise.
14347
14348 2009-12-14  Eric Blake  <ebb9@byu.net>
14349
14350         accept4: adjust module dependencies
14351         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14352
14353         utimens: one more try at avoiding compiler warning
14354         * lib/utimens.c (lutimens): Lower scope of result.
14355
14356 2009-12-13  Bruno Haible  <bruno@clisp.org>
14357
14358         Move the malloc checking from module 'list' to new module 'xlist'.
14359         * modules/xlist: New file.
14360         * lib/gl_xlist.h: New file.
14361         * lib/gl_xlist.c: New file.
14362         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14363         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14364         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14365         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14366         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14367         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14368         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14369         gl_sortedlist_nx_add): New declarations.
14370         (struct gl_list_implementation): Rename and change methods accordingly.
14371         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14372         (gl_list_nx_create): Renamed from gl_list_create.
14373         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14374         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14375         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14376         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14377         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14378         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14379         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14380         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14381         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14382         gl_list_create_empty.
14383         (gl_list_nx_create): Renamed from gl_list_create.
14384         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14385         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14386         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14387         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14388         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14389         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14390         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14391         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14392         * lib/gl_array_list.c: Don't include xalloc.h.
14393         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14394         NULL upon out-of-memory.
14395         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14396         out-of-memory.
14397         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14398         Change return type to 'int'.
14399         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14400         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14401         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14402         upon out-of-memory.
14403         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14404         upon out-of-memory.
14405         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14406         upon out-of-memory.
14407         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14408         upon out-of-memory.
14409         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14410         out-of-memory.
14411         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14412         Update.
14413         (gl_array_list_implementation): Update.
14414         * lib/gl_carray_list.c: Don't include xalloc.h.
14415         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14416         Return NULL upon out-of-memory.
14417         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14418         out-of-memory.
14419         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14420         Change return type to 'int'.
14421         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14422         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14423         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14424         upon out-of-memory.
14425         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14426         upon out-of-memory.
14427         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14428         out-of-memory.
14429         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14430         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14431         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14432         Update.
14433         (gl_carray_list_implementation): Update.
14434         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14435         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14436         gl_linked_create_empty. Return NULL upon out-of-memory.
14437         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14438         out-of-memory.
14439         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14440         Change return type to 'int'. Return -1 upon out-of-memory.
14441         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14442         out-of-memory.
14443         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14444         upon out-of-memory.
14445         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14446         upon out-of-memory.
14447         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14448         NULL upon out-of-memory.
14449         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14450         upon out-of-memory.
14451         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14452         out-of-memory.
14453         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14454         Update.
14455         * lib/gl_linked_list.c: Don't include xalloc.h.
14456         (gl_linked_list_implementation): Update.
14457         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14458         (add_to_bucket): Change return type to 'int'.
14459         (gl_linkedhash_list_implementation): Update.
14460         * lib/gl_anytree_list1.h (free_subtree): New function.
14461         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14462         gl_tree_create_empty. Return NULL upon out-of-memory.
14463         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14464         Change return type to 'int'. Return -1 upon out-of-memory.
14465         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14466         out-of-memory.
14467         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14468         (gl_tree_remove_node): New function, moved here from
14469         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14470         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14471         Update.
14472         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14473         malloc, not xmalloc. Return NULL upon out-of-memory.
14474         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14475         out-of-memory.
14476         (gl_tree_remove_node_from_tree): New function, extracted from
14477         gl_tree_remove_node.
14478         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14479         upon out-of-memory.
14480         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14481         out-of-memory.
14482         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14483         upon out-of-memory.
14484         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14485         upon out-of-memory.
14486         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14487         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14488         not xmalloc. Return NULL upon out-of-memory.
14489         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14490         out-of-memory.
14491         (gl_tree_remove_node_from_tree): New function, extracted from
14492         gl_tree_remove_node.
14493         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14494         upon out-of-memory.
14495         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14496         out-of-memory.
14497         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14498         upon out-of-memory.
14499         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14500         upon out-of-memory.
14501         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14502         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14503         gl_anytree_list1.h before gl_anyavltree_list2.h.
14504         (gl_avltree_list_implementation): Update.
14505         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14506         gl_anytree_list1.h before gl_anyavltree_list2.h.
14507         (gl_rbtree_list_implementation): Update.
14508         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14509         Change return type to 'int'. Return -1 upon out-of-memory. Use
14510         __builtin_expect.
14511         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14512         (gl_avltreehash_list_implementation): Update.
14513         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14514         (gl_rbtreehash_list_implementation): Update.
14515         * modules/array-list (Depends-on): Remove xalloc.
14516         * modules/carray-list (Depends-on): Likewise.
14517         * modules/linked-list (Depends-on): Likewise.
14518         * modules/linkedhash-list (Depends-on): Likewise.
14519         * modules/avltree-list (Depends-on): Likewise.
14520         * modules/rbtree-list (Depends-on): Likewise.
14521         * modules/avltreehash-list (Depends-on): Likewise.
14522         * modules/rbtreehash-list (Depends-on): Likewise.
14523
14524         * modules/xsublist: New file.
14525         * lib/gl_xsublist.h: New file.
14526         * lib/gl_xsublist.c: New file.
14527         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14528         (gl_sublist_nx_create): New declaration.
14529         * lib/gl_sublist.c: Don't include xalloc.h.
14530         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14531         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14532         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14533         Change return type to 'int'. Return -1 upon out-of-memory.
14534         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14535         upon out-of-memory.
14536         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14537         NULL upon out-of-memory.
14538         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14539         upon out-of-memory.
14540         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14541         NULL upon out-of-memory.
14542         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14543         NULL upon out-of-memory.
14544         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14545         upon out-of-memory.
14546         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14547         (gl_sublist_list_implementation): Update.
14548         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14549         upon out-of-memory.
14550         * modules/sublist (Depends-on): Remove xalloc.
14551
14552         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14553         * tests/test-carray_list.c: Likewise.
14554         * tests/test-linked_list.c: Likewise.
14555         * tests/test-linkedhash_list.c: Likewise.
14556         * tests/test-avltree_list.c: Likewise.
14557         * tests/test-rbtree_list.c: Likewise.
14558         * tests/test-avltreehash_list.c: Likewise.
14559         * tests/test-rbtreehash_list.c: Likewise.
14560         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14561         * modules/carray-list-tests (Makefile.am): Likewise.
14562         * modules/linked-list-tests (Makefile.am): Likewise.
14563         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14564         * modules/avltree-list-tests (Makefile.am): Likewise.
14565         * modules/rbtree-list-tests (Makefile.am): Likewise.
14566         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14567         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14568
14569         * NEWS: Mention the changes.
14570
14571         * lib/clean-temp.c: Include gl_xlist.h.
14572         * modules/clean-temp (Depends-on): Add xlist.
14573
14574         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14575         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14576
14577         * tests/test-array_oset.c: Include gl_xlist.h.
14578         * modules/array-oset-tests (Depends-on): Add xlist.
14579
14580         Reported by José E. Marchesi <jemarch@gnu.org>.
14581
14582 2009-12-13  Bruno Haible  <bruno@clisp.org>
14583
14584         Move the malloc checking from module 'oset' to new module 'xoset'.
14585         * modules/xoset: New file.
14586         * lib/gl_xoset.h: New file.
14587         * lib/gl_xoset.c: New file.
14588         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14589         declarations.
14590         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14591         (struct gl_oset_implementation): Rename and change methods accordingly.
14592         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14593         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14594         'int'. Mark as __warn_unused_result__.
14595         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14596         gl_oset_create_empty.
14597         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14598         'int'.
14599         * lib/gl_array_oset.c: Don't include xalloc.h.
14600         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14601         malloc, not xmalloc.
14602         (grow): Change return type to 'int'. Don't call xalloc_die.
14603         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14604         to 'int'.
14605         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14606         'int'.
14607         (gl_array_oset_implementation): Update.
14608         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14609         gl_tree_create_empty.
14610         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14611         'int'.
14612         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14613         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14614         xmalloc.
14615         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14616         not xmalloc.
14617         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14618         xmalloc.
14619         (gl_avltree_oset_implementation): Update.
14620         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14621         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14622         xmalloc.
14623         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14624         not xmalloc.
14625         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14626         xmalloc.
14627         (gl_rbtree_oset_implementation): Update.
14628         * modules/array-oset (Depends-on): Remove xalloc.
14629         * modules/avltree-oset (Depends-on): Likewise.
14630         * modules/rbtree-oset (Depends-on): Likewise.
14631         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14632         * tests/test-avltree_oset.c: Likewise.
14633         * tests/test-rbtree_oset.c: Likewise.
14634         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14635         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14636         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14637         * NEWS: Mention the change.
14638
14639 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14640
14641         maint.mk: allow a project to override release-prep commands
14642         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14643         commands into a new rule.
14644         (release-prep): New rule.
14645         (release-prep-hook): New overridable variable.
14646
14647 2009-12-13  Bruno Haible  <bruno@clisp.org>
14648
14649         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14650
14651 2009-12-13  Jim Meyering  <meyering@redhat.com>
14652
14653         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14654         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14655
14656 2009-12-12  Bruno Haible  <bruno@clisp.org>
14657
14658         duplocale: Tweak.
14659         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14660
14661 2009-12-12  Karl Berry  <karl@gnu.org>
14662
14663         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14664
14665 2009-12-12  Bruno Haible  <bruno@clisp.org>
14666
14667         * m4/po.m4: Undo incorrect untabification.
14668
14669 2009-12-12  Bruno Haible  <bruno@clisp.org>
14670
14671         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14672         * modules/c-strtod (Depends-on): Add locale.
14673         * modules/c-strtold (Depends-on): Likewise.
14674
14675 2009-12-12  Bruno Haible  <bruno@clisp.org>
14676
14677         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14678
14679 2009-12-11  Eric Blake  <ebb9@byu.net>
14680
14681         setenv: relax requirement in light of POSIX ruling
14682         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14683         not NULL.
14684         * tests/test-setenv.c (main): Relax test.
14685         * tests/test-unsetenv.c (main): Likewise.
14686         * doc/posix-functions/setenv.texi (setenv): Document this.
14687         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14688
14689 2009-12-11  Bruno Haible  <bruno@clisp.org>
14690
14691         New module 'fd-safer-flag'.
14692         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14693         * lib/dup-safer.c (dup_safer_flag): Remove function.
14694         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14695         * lib/fd-safer.c (fd_safer_flag): Remove function.
14696         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14697         * modules/cloexec (configure.ac): Drop indicator macro.
14698         * modules/fd-safer-flag: New file.
14699         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14700         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14701         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14702
14703 2009-12-11  Bruno Haible  <bruno@clisp.org>
14704
14705         Tests for module 'nl_langinfo'.
14706         * modules/nl_langinfo-tests: New file.
14707         * tests/test-nl_langinfo.sh: New file.
14708         * tests/test-nl_langinfo.c: New file.
14709
14710         New module 'nl_langinfo'.
14711         * lib/nl_langinfo.c: New file.
14712         * m4/nl_langinfo.m4: New file.
14713         * modules/nl_langinfo: New file.
14714         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14715
14716 2009-12-11  Bruno Haible  <bruno@clisp.org>
14717
14718         Tests for module 'langinfo'.
14719         * modules/langinfo-tests: New file.
14720         * tests/test-langinfo.c: New file.
14721
14722         New module 'langinfo'.
14723         * lib/langinfo.in.h: New file.
14724         * m4/langinfo_h.m4: New file.
14725         * modules/langinfo: New file.
14726         * doc/posix-headers/langinfo.texi: Mention the new module.
14727
14728 2009-12-11  Bruno Haible  <bruno@clisp.org>
14729
14730         * lib/config.charset: Untabify.
14731
14732 2009-12-11  Bruno Haible  <bruno@clisp.org>
14733
14734         * modules/unistd-safer (configure.ac): Drop indicator macro.
14735
14736 2009-12-11  Bruno Haible  <bruno@clisp.org>
14737
14738         Move pipe2-safer code to its own file.
14739         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14740         * lib/pipe-safer.c (pipe2_safer): Remove function.
14741         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14742         (Makefile.am): Add it to lib_SOURCES.
14743
14744 2009-12-10  Bruno Haible  <bruno@clisp.org>
14745
14746         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14747
14748 2009-12-10  Bruno Haible  <bruno@clisp.org>
14749
14750         Declare which arguments expect non-NULL values, for GCC and clang.
14751         * build-aux/arg-nonnull.h: New file.
14752         * modules/arg-nonnull: New file.
14753         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14754         (inet_ntop, inet_pton): Use it.
14755         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14756         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14757         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14758         (open, openat): Use it.
14759         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14760         (fnmatch): Use it.
14761         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14762         (getopt, getopt_long, getopt_long_only): Use it.
14763         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14764         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14765         Use it.
14766         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14767         (iconv_open): Use it.
14768         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14769         (strtoimax, strtoumax): Use it.
14770         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14771         (duplocale): Use it.
14772         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14773         (frexp, frexpl): Use it.
14774         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14775         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14776         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14777         (tsearch, tfind, tdelete, twalk): Use it.
14778         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14779         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14780         sigpending): Use it.
14781         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14782         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14783         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14784         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14785         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14786         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14787         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14788         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14789         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14790         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14791         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14792         Use it.
14793         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14794         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14795         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14796         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14797         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14798         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14799         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14800         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14801         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14802         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14803         strtoull, unsetenv): Use it.
14804         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14805         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14806         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14807         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14808         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14809         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14810         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14811         (strcasecmp, strncasecmp): Use it.
14812         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14813         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14814         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14815         rpl_setsockopt): Use it.
14816         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14817         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14818         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14819         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14820         (gettimeofday): Use it.
14821         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14822         (times): Use it.
14823         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14824         (uname): Use it.
14825         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14826         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14827         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14828         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14829         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14830         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14831         unlinkat, write): Use it.
14832         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14833         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14834         * lib/argv-iter.h: Include arg-nonnull.h.
14835         (_ATTRIBUTE_NONNULL_): Remove macro.
14836         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14837         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14838         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14839         optimization.
14840         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14841         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14842         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14843         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14844         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14845         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14846         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14847         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14848         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14849         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14850         * modules/dirent (Depends-on): Add arg-nonnull.
14851         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14852         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14853         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14854         * modules/fnmatch (Depends-on): Add arg-nonnull.
14855         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14856         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14857         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14858         * modules/glob (Depends-on): Add arg-nonnull.
14859         (Makefile.am): Insert arg-nonnull.h into glob.h.
14860         * modules/iconv_open (Depends-on): Add arg-nonnull.
14861         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14862         * modules/inttypes (Depends-on): Add arg-nonnull.
14863         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14864         * modules/locale (Depends-on): Add arg-nonnull.
14865         (Makefile.am): Insert arg-nonnull.h into locale.h.
14866         * modules/math (Depends-on): Add arg-nonnull.
14867         (Makefile.am): Insert arg-nonnull.h into math.h.
14868         * modules/netdb (Depends-on): Add arg-nonnull.
14869         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14870         * modules/search (Depends-on): Add arg-nonnull.
14871         (Makefile.am): Insert arg-nonnull.h into search.h.
14872         * modules/signal (Depends-on): Add arg-nonnull.
14873         (Makefile.am): Insert arg-nonnull.h into signal.h.
14874         * modules/spawn (Depends-on): Add arg-nonnull.
14875         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14876         * modules/stdio (Depends-on): Add arg-nonnull.
14877         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14878         * modules/stdlib (Depends-on): Add arg-nonnull.
14879         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14880         * modules/string (Depends-on): Add arg-nonnull.
14881         (Makefile.am): Insert arg-nonnull.h into string.h.
14882         * modules/strings (Depends-on): Add arg-nonnull.
14883         (Makefile.am): Insert arg-nonnull.h into strings.h.
14884         * modules/sys_socket (Depends-on): Add arg-nonnull.
14885         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14886         * modules/sys_stat (Depends-on): Add arg-nonnull.
14887         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14888         * modules/sys_time (Depends-on): Add arg-nonnull.
14889         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14890         * modules/sys_times (Depends-on): Add arg-nonnull.
14891         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14892         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14893         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14894         * modules/time (Depends-on): Add arg-nonnull.
14895         (Makefile.am): Insert arg-nonnull.h into time.h.
14896         * modules/unistd (Depends-on): Add arg-nonnull.
14897         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14898         * modules/wchar (Depends-on): Add arg-nonnull.
14899         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14900         * modules/argv-iter (Depends-on): Add arg-nonnull.
14901         * tests/test-canonicalize.c (null_ptr): New function.
14902         (main): Use it.
14903         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14904         (main): Use it.
14905         * tests/test-memmem.c (null_ptr): New function.
14906         (main): Use it.
14907         Reported by Jim Meyering.
14908
14909 2009-12-10  Bruno Haible  <bruno@clisp.org>
14910
14911         Use spaces for indentation, not tabs.
14912         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14913         * m4/*.m4: Untabify.
14914         * build-aux/*.h: Untabify.
14915         * tests/**/*.[hc]: Untabify.
14916         * README: New section "Indent with spaces, not TABs", based on
14917         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14918         * NEWS: Mention the change.
14919
14920 2009-12-10  Bruno Haible  <bruno@clisp.org>
14921
14922         pty test: Fix link error.
14923         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14924         test_pty_LDADD.
14925
14926 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14927
14928         * modules/pty: New file.
14929         * modules/pty-tests: New file.
14930         * m4/pty.m4: New file.
14931         * tests/test-pty.c: New file.
14932         * doc/glibc-headers/pty.texi: Modified.
14933         * doc/glibc-functions/forkpty.texi: Modified.
14934         * doc/glibc-functions/openpty.texi: Modified.
14935
14936 2009-12-10  Bruno Haible  <bruno@clisp.org>
14937
14938         Avoid syntax error in C++ mode.
14939         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14940
14941 2009-12-10  Bruno Haible  <bruno@clisp.org>
14942
14943         Use sed with option -e.
14944         * gnulib-tool (func_version, func_emit_copyright_notice,
14945         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14946         option -e to sed.
14947         * modules/link-warning (Makefile.am): Likewise.
14948
14949 2009-12-10  Jim Meyering  <meyering@redhat.com>
14950
14951         mgetgroups: do not write bytes beyond end of malloc'd buffer
14952         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14953         username, we call getgroups with a one-element-shorter buffer,
14954         but still told it the length was original, max_n_groups.
14955
14956 2009-12-09  Eric Blake  <ebb9@byu.net>
14957
14958         cloexec: relax license
14959         * modules/cloexec (Maintainer): Add myself.
14960         (License): Use LGPL, not GPL.
14961
14962         link-warning: optimize generation
14963         * modules/link-warning (Makefile.am): Reduce process usage.
14964
14965 2009-12-09  Bruno Haible  <bruno@clisp.org>
14966
14967         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14968         workaround was added on 2009-11-17.
14969
14970 2009-12-09  Jim Meyering  <meyering@redhat.com>
14971             Bruno Haible  <bruno@clisp.org>
14972
14973         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14974         * modules/link-warning (Makefile.am): Make the comment-removing sed
14975         command more robust in the face of bootstrap-prepended comment lines.
14976
14977 2009-12-09  Bruno Haible  <bruno@clisp.org>
14978
14979         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14980         most one group.
14981
14982 2009-12-09  Simon Josefsson <simon@josefsson.org>
14983             Bruno Haible  <bruno@clisp.org>
14984
14985         * build-aux/link-warning.h: Add copyright notice.
14986         * modules/link-warning (Makefile.am): Generate link-warning.h from
14987         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14988         * NEWS: Mention change in link-warning module.
14989         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14990         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14991         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14992         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14993         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14994         * modules/math (Makefile.am): Add dependency to math.h.
14995         * modules/search (Makefile.am): Add dependency to search.h.
14996         * modules/signal (Makefile.am): Add dependency to signal.h.
14997         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14998         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14999         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15000         * modules/string (Makefile.am): Add dependency to string.h.
15001         * modules/strings (Makefile.am): Add dependency to strings.h.
15002         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15003         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15004         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15005         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15006         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15007         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15008         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15009         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15010         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15011
15012 2009-12-09  Bruno Haible  <bruno@clisp.org>
15013
15014         fchdir: Optimize away rpl_fstat when possible.
15015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15016         REPLACE_OPEN_DIRECTORY.
15017         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15018
15019 2009-12-09  Bruno Haible  <bruno@clisp.org>
15020
15021         * lib/fchdir.c: Update comment.
15022
15023 2009-12-09  Bruno Haible  <bruno@clisp.org>
15024
15025         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15026
15027 2009-12-08  Eric Blake  <ebb9@byu.net>
15028
15029         fchdir: avoid memory leak on re-registration.
15030         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15031
15032 2009-12-08  Jim Meyering  <meyering@redhat.com>
15033
15034         init.sh: avoid Solaris 10 /bin/sh portability problem
15035         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15036         sourced script:
15037           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15038           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15039           bar
15040         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15041         and two tests used that idiom.
15042         * tests/init.sh: Update suggested usage comments.
15043         (path_prepend_): New function, to be used in place
15044         of the --src-path=DIR option.
15045         (setup_): Move PATH-prepending code into path_prepend_.
15046         * tests/test-pread.sh: Adapt to new usage.
15047         * tests/test-xalloc-die.sh: Likewise.
15048
15049 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15050
15051         * doc/gnulib.texi (Glibc pty.h): Add.
15052         * doc/glibc-functions/forkpty.texi: Add.
15053         * doc/glibc-functions/openpty.texi: Add.
15054         Suggested by Bruno Haible.
15055
15056 2009-12-08  Eric Blake  <ebb9@byu.net>
15057
15058         fchdir: fix logic bugs
15059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15060         * tests/test-fchdir.c (main): Enhance test.
15061         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15062         is in use.
15063
15064         dup2: fix logic bugs
15065         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15066         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15067         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15068         exists.
15069         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15070
15071 2009-12-07  Eric Blake  <ebb9@byu.net>
15072
15073         unlink: fix m4 detection
15074         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15075
15076         unistd-safer: add unit test
15077         * modules/unistd-safer-tests: New file.
15078         * tests/test-dup-safer.c: Likewise.
15079         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15080         * tests/test-dup2.c (setmode): Likewise.
15081         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15082
15083         cloexec: preserve text vs. binary across dup_cloexec
15084         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15085         mode.
15086         * modules/dup2-tests (Depends-on): Add binary-io.
15087         * modules/cloexec-tests (Depends-on): Likewise.
15088         * tests/test-dup2.c (setmode, is_mode): New helpers.
15089         (main): Add tests that translation mode is preserved.
15090         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15091         Reported by Bruno Haible.
15092
15093         mgetgroups: reduce duplicate listings
15094         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15095         resulting array.
15096         * tests/test-chown.h (test_chown): Simplify client.
15097         * tests/test-lchown.h (test_lchown): Likewise.
15098
15099 2009-12-06  Bruno Haible  <bruno@clisp.org>
15100
15101         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15102         value.
15103
15104 2009-12-06  Bruno Haible  <bruno@clisp.org>
15105
15106         * lib/progname.c: Include stdio.h, stdlib.h.
15107         (set_program_name): Reject a NULL argument.
15108
15109 2009-12-05  Eric Blake  <ebb9@byu.net>
15110
15111         pipe2-safer: new module
15112         * modules/pipe2-safer: New file.
15113         * lib/unistd-safer.h (pipe2_safer): New prototype.
15114         * lib/unistd--.h (pipe2): New wrapper.
15115         * lib/pipe-safer.c (pipe2_safer): New function.
15116         * modules/pipe (Depends-on): Add pipe2-safer.
15117         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15118
15119         stdlib-safer: preserve cloexec flag for mkostemp[s]
15120         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15121         fd_safer_flag.
15122
15123         unistd-safer: allow preservation of cloexec status via flag
15124         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15125         prototypes.
15126         * lib/dup-safer.c (dup_safer_flag): New function.
15127         * lib/fd-safer.c (fd_safer_flag): Likewise.
15128         * modules/cloexec (configure.ac): Set witness.
15129
15130         test-dup2: enhance test
15131         * modules/dup2-tests (Depends-on): Add cloexec.
15132         * tests/test-dup2.c (main): Enhance test.
15133
15134         cloexec: add dup_cloexec
15135         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15136         header and comments.
15137         * lib/cloexec.c (set_cloexec_flag): Add comments.
15138         (dup_cloexec): New function, with mingw implementation borrowed
15139         from...
15140         * lib/w32spawn.h (dup_noinherit): ...here.
15141         * modules/execute (Depends-on): Add cloexec.
15142         * modules/pipe (Depends-on): Likewise.
15143         * modules/cloexec (Depends-on): Add dup2.
15144         * modules/cloexec-tests (Files): New file.
15145         * tests/test-cloexec.c: Likewise.
15146
15147         test-xalloc-die: fix test for mingw
15148         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15149         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15150         directory and .exe suffix off argv[0] output.
15151
15152         test-fseeko: fix test for mingw
15153         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15154         than undefining fseek, so test will pass on mingw.
15155
15156 2009-12-05  Bruno Haible  <bruno@clisp.org>
15157
15158         * lib/progname.h (set_program_name): Clarify specification.
15159         * lib/progname.c (set_program_name): Likewise.
15160         Reported by Jim Meyering.
15161
15162 2009-12-05  Jim Meyering  <meyering@redhat.com>
15163
15164         maint.mk: backslash-escape parens in default regexp
15165         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15166         backslash-escape the literal parentheses.
15167
15168         maint.mk: news-date-check: use grep -E
15169         * top/maint.mk (today): Define a Make variable, not a...
15170         (news-date-check): ...shell variable.
15171         (news-date-regexp): Use the Make variable.
15172         Use grep's -E option.  Change the failing diagnostic to mention
15173         the variable, $(news-date-regexp).
15174
15175 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15176
15177         maintainer-makefile: allow customization of NEWS entry format
15178         * top/maint.mk (news-date-regexp): New overridable variable.
15179         (news-date-check): Use it.
15180
15181 2009-12-04  Eric Blake  <ebb9@byu.net>
15182
15183         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15184         * lib/mgetgroups.h (xgetgroups): New prototype.
15185         * lib/mgetgroups.c (xgetgroups): New wrapper.
15186         (mgetgroups): Handle ENOSYS.
15187         * modules/mgetgroups (Depends-on): Add realloc.
15188         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15189
15190         mgetgroups: avoid argument promotion issues with -1
15191         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15192         for invalid gid_t.
15193         * tests/test-chown.h (getegid, test_chown): Likewise.
15194         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15195
15196 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15197
15198         exclude: Fix header file problems.
15199         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15200
15201 2009-12-01  Jim Meyering  <meyering@redhat.com>
15202
15203         fts: fts_open: do not let an empty string cause immediate failure
15204         This is required in support of GNU rm, for which the command
15205         "rm A '' B" must process and remove both A and B, in spite of
15206         the empty string argument.
15207         * lib/fts.c (fts_open): Do not let the presence of an empty string
15208         cause fts_open to fail immediately.  Most fts-using tools must be
15209         able to process all arguments, in order, and can be expected to
15210         diagnose such arguments themselves.
15211
15212 2009-11-30  Eric Blake  <ebb9@byu.net>
15213
15214         utimens: fix compilation error
15215         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15216         Declare variable at right scope.
15217
15218 2009-11-29  Jim Meyering  <meyering@redhat.com>
15219
15220         bootstrap: handle perl-5.11's changed --version output
15221         * build-aux/bootstrap (get_version): Handle perl separately,
15222         since perl-5.11's --version output is different.
15223
15224 2009-11-28  Jim Meyering  <meyering@redhat.com>
15225
15226         userspec: depend on the inttostr module, too
15227         * modules/userspec (Depends-on): Add inttostr.
15228
15229         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15230         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15231         number of MAXUID when it evaluates to (uid_t) -1.
15232         Likewise for group ID.  Reported by Matt McCutchen in
15233         <http://savannah.gnu.org/bugs/?28113>
15234
15235         userspec: reformat to use spaces, not TABs
15236         * lib/userspec.c: Expand TABs to spaces.
15237         Add Emacs' "indent-tabs-mode: nil" hint.
15238
15239 2009-11-27  Eric Blake  <ebb9@byu.net>
15240
15241         getopt-gnu: flush out another BSD bug
15242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15243         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15244         flush out BSD bug.
15245         * tests/test-getopt.h (test_getopt): End lists with NULL.
15246         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15247         (test_getopt_long_posix): Enhance test.
15248         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15249         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15250         getopt-gnu.
15251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15252         Likewise.
15253
15254 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15255
15256         * modules/idpriv-droptemp-tests (Notice): Fix text.
15257
15258 2009-11-27  Jim Meyering  <meyering@redhat.com>
15259
15260         test-xalloc-die: avoid spurious failure due to libtool argv difference
15261         In a libtool-enabled project, this test would fail due to a difference
15262         in the emitted program name, e.g.,
15263         -test-xalloc-die: memory exhausted
15264         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15265         Use program to avoid that.
15266         * modules/xalloc-die-tests (Depends-on): Add progname.
15267         * tests/test-xalloc-die.c: Include progname.h".
15268         (program_name): Remove decl.
15269         (main): Call set_program_name.
15270         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15271
15272 2009-11-26  Richard Jones  <rjones@redhat.com>
15273
15274         w32sock: leave win32 error in place.
15275         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15276
15277 2009-11-26  Eric Blake  <ebb9@byu.net>
15278
15279         init.sh: suggest to use skip_ and fail_ functions in comments
15280         * tests/init.sh: Add a sentence.
15281
15282 2009-11-25  Bruno Haible  <bruno@clisp.org>
15283
15284         init.sh: add documentation in comments
15285         * tests/init.sh: Add some developer and user documentation.
15286
15287 2009-11-26  Jim Meyering  <meyering@redhat.com>
15288
15289         init.sh: accommodate even those who specify bogus srcdir manually
15290         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15291         configure-time tests to be sanitized, so that there is no need to
15292         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15293         (with no double quotes) suffices.  However, since tests may be
15294         invoked manually, and since you may explicitly set srcdir to the
15295         name of a directory containing spaces, do quote its uses here.
15296         * tests/test-pread.sh: Likewise.
15297         Suggested by Bruno Haible.
15298
15299         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15300         * tests/test-pread.sh: Write no data into the pipe, because
15301         test-pread actually reads none.  This avoids a diagnostic,
15302         "bash: echo: write error: Broken pipe", that arises in the unusual
15303         event something is ignoring SIGPIPE, and might be interpreted
15304         as some sort of failure.  Reported by Bruno Haible.
15305
15306 2009-11-25  Jim Meyering  <meyering@redhat.com>
15307
15308         test-pread: cover failure with ESPIPE and EINVAL
15309         * tests/test-pread.c (main): Test for failure, too.
15310         * tests/test-pread.sh: Invoke with stdin on a pipe.
15311         Suggested by Eric Blake.
15312
15313         pread: improvement and fix
15314         * modules/pread (Depends-on): Depend on lseek, for portability to
15315         e.g., mingw.  Suggested by Eric Blake.
15316         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15317
15318         unistd.in.h: correct declaration of pread
15319         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15320         Reported by Richard W.M. Jones.
15321
15322         test-pread.sh: distribute the test script
15323         * modules/pread-tests (Files): Include test-pread.sh.
15324
15325         test-pread.sh: clean up
15326         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15327         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15328         That is unnecessary, since it's always ".".
15329         Suggestion from Eric Blake.
15330
15331         test-pread.sh: make executable
15332         * tests/test-pread.sh: Set executable bit.
15333         Reported by Eric Blake.
15334
15335         correct typo in test-pread.sh
15336         * tests/test-pread.sh: Add #! line.
15337
15338         test pread
15339         * tests/test-pread.c: New file.
15340         * tests/test-pread.sh: Likewise.
15341         * modules/pread-tests: Likewise.
15342
15343         pread: new module
15344         * modules/pread: New file.
15345         * lib/unistd.in.h (pread): Define/declare.
15346         * lib/pread.c (pread): New file.
15347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15348         * modules/unistd (Makefile.am): Substitute witnesses.
15349         * doc/posix-functions/pread.texi (pread): Update.
15350         * MODULES.html.sh: Add pread.
15351
15352 2009-11-25  Jim Meyering  <meyering@redhat.com>
15353
15354         tests/init.sh: new file to be used via most *.sh tests
15355         * tests/init.sh: New file.
15356
15357 2009-11-25  Eric Blake  <ebb9@byu.net>
15358
15359         utimens: work around older Linux failure with symlinks
15360         * lib/utimens.c (lutimensat_works_really): New variable.
15361         (fdutimens, lutimens): Use it to manage kernels that support
15362         nanosecond times on files, but not on symlinks.
15363         Reported by OndÅ™ej Vašík.
15364
15365         utimes: fix configure grammar
15366         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15367
15368 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15369
15370         regex: Fix fastmap for multibyte character ranges.
15371         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15372         characters when a multibyte character range is included.
15373
15374 2009-11-22  Andy Wingo  <wingo@pobox.com>
15375
15376         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15377         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15378
15379 2009-11-24  Bruno Haible  <bruno@clisp.org>
15380
15381         doc: Most *_l functions exist in MacOS X 10.5.
15382         * doc/posix-functions/duplocale.texi: Update platforms list.
15383         * doc/posix-functions/freelocale.texi: Likewise.
15384         * doc/posix-functions/newlocale.texi: Likewise.
15385         * doc/posix-functions/uselocale.texi: Likewise.
15386         * doc/posix-functions/isalnum_l.texi: Likewise.
15387         * doc/posix-functions/isalpha_l.texi: Likewise.
15388         * doc/posix-functions/isblank_l.texi: Likewise.
15389         * doc/posix-functions/iscntrl_l.texi: Likewise.
15390         * doc/posix-functions/isdigit_l.texi: Likewise.
15391         * doc/posix-functions/isgraph_l.texi: Likewise.
15392         * doc/posix-functions/islower_l.texi: Likewise.
15393         * doc/posix-functions/isprint_l.texi: Likewise.
15394         * doc/posix-functions/ispunct_l.texi: Likewise.
15395         * doc/posix-functions/isspace_l.texi: Likewise.
15396         * doc/posix-functions/isupper_l.texi: Likewise.
15397         * doc/posix-functions/iswalnum_l.texi: Likewise.
15398         * doc/posix-functions/iswalpha_l.texi: Likewise.
15399         * doc/posix-functions/iswblank_l.texi: Likewise.
15400         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15401         * doc/posix-functions/iswctype_l.texi: Likewise.
15402         * doc/posix-functions/iswdigit_l.texi: Likewise.
15403         * doc/posix-functions/iswgraph_l.texi: Likewise.
15404         * doc/posix-functions/iswlower_l.texi: Likewise.
15405         * doc/posix-functions/iswprint_l.texi: Likewise.
15406         * doc/posix-functions/iswpunct_l.texi: Likewise.
15407         * doc/posix-functions/iswspace_l.texi: Likewise.
15408         * doc/posix-functions/iswupper_l.texi: Likewise.
15409         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15410         * doc/posix-functions/isxdigit_l.texi: Likewise.
15411         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15412         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15413         * doc/posix-functions/strcoll_l.texi: Likewise.
15414         * doc/posix-functions/strfmon_l.texi: Likewise.
15415         * doc/posix-functions/strftime_l.texi: Likewise.
15416         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15417         * doc/posix-functions/strxfrm_l.texi: Likewise.
15418         * doc/posix-functions/tolower_l.texi: Likewise.
15419         * doc/posix-functions/toupper_l.texi: Likewise.
15420         * doc/posix-functions/towctrans_l.texi: Likewise.
15421         * doc/posix-functions/towlower_l.texi: Likewise.
15422         * doc/posix-functions/towupper_l.texi: Likewise.
15423         * doc/posix-functions/wcscoll_l.texi: Likewise.
15424         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15425         * doc/posix-functions/wctrans_l.texi: Likewise.
15426         * doc/posix-functions/wctype_l.texi: Likewise.
15427         * doc/glibc-functions/strptime_l.texi: Likewise.
15428         * doc/glibc-functions/strtod_l.texi: Likewise.
15429         * doc/glibc-functions/strtof_l.texi: Likewise.
15430         * doc/glibc-functions/strtol_l.texi: Likewise.
15431         * doc/glibc-functions/strtold_l.texi: Likewise.
15432         * doc/glibc-functions/strtoll_l.texi: Likewise.
15433         * doc/glibc-functions/strtoul_l.texi: Likewise.
15434         * doc/glibc-functions/strtoull_l.texi: Likewise.
15435         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15436         * doc/glibc-functions/wcstod_l.texi: Likewise.
15437         * doc/glibc-functions/wcstof_l.texi: Likewise.
15438         * doc/glibc-functions/wcstol_l.texi: Likewise.
15439         * doc/glibc-functions/wcstold_l.texi: Likewise.
15440         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15441         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15442         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15443
15444 2009-11-24  Bruno Haible  <bruno@clisp.org>
15445
15446         duplocale: Fix logic bug.
15447         * lib/duplocale.c: Don't include <langinfo.h>.
15448         (_NL_LOCALE_NAME): Remove macro.
15449         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15450         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15451
15452 2009-11-23  Jim Meyering  <meyering@redhat.com>
15453
15454         test-update-copyright: don't hard-code /usr/bin/perl
15455         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15456         perl to print the current year.  Gilles Espinasse reported that
15457         the replaced use of perl was hard-coded as /usr/bin/perl.
15458
15459 2009-11-23  Bruno Haible  <bruno@clisp.org>
15460
15461         duplocale: Add support for glibc 2.3.x.
15462         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15463
15464 2009-11-22  Bruno Haible  <bruno@clisp.org>
15465
15466         vasnprintf: Tiny optimization.
15467         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15468         MacOS X.
15469
15470 2009-11-22  Bruno Haible  <bruno@clisp.org>
15471
15472         Tests for module 'duplocale'.
15473         * modules/duplocale-tests: New file.
15474         * tests/test-duplocale.c: New file.
15475
15476         New module 'duplocale'.
15477         * m4/duplocale.m4: New file.
15478         * lib/locale.in.h (duplocale): New declaration.
15479         * lib/duplocale.c: New file.
15480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15481         gl_LOCALE_H_DEFAULTS): New macros.
15482         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15483         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15484         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15485         REPLACE_DUPLOCALE.
15486         * modules/duplocale: New file.
15487         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15488
15489 2009-11-22  Bruno Haible  <bruno@clisp.org>
15490
15491         * modules/locale-tests (configure.ac): Test for newlocale function.
15492         * tests/test-locale.c: When the system has extended locale functions,
15493         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15494
15495         locale: Make locale_t available when possible.
15496         * lib/locale.in.h: Include <xlocale.h> when it exists.
15497         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15498         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15499         * modules/locale (Depends-on): Add extensions.
15500         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15501         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15502
15503 2009-11-22  Bruno Haible  <bruno@clisp.org>
15504
15505         Add comments.
15506         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15507         invocation.
15508         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15509         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15510         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15511
15512 2009-11-22  Bruno Haible  <bruno@clisp.org>
15513
15514         error: account for the possibility of freopen (stdout).
15515         * lib/error.c: Include <unistd.h>.
15516         (flush_stdout): New function, extracted from error and error_at_line.
15517         Determine stdout's fd dynamically.
15518         (error, error_at_line): Invoke flush_stdout.
15519         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15520         * modules/error (Depends-on): Add unistd.
15521
15522 2009-11-22  Bruno Haible  <bruno@clisp.org>
15523
15524         diffseq: Add comment.
15525         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15526
15527 2009-11-22  Jim Meyering  <meyering@redhat.com>
15528
15529         c-stack: avoid defining an unused static function
15530         * lib/c-stack.c (find_stack_direction): Do not define this function
15531         when it will not be used.
15532
15533         diffseq: avoid spurious gcc warnings
15534         * lib/diffseq.h (IF_LINT2): Define.
15535         (compareseq): Use it to initialize two members of "part".
15536         This avoids two used-uninitialized warnings.
15537
15538 2009-11-21  Jim Meyering  <meyering@redhat.com>
15539
15540         c-stack: avoid "ignoring return value of `write'" warning
15541         * lib/c-stack.c: Include "ignore-value.h".
15542         (die): Explicitly ignore each write return value.
15543         * modules/c-stack (Depends-on): Add ignore-value.
15544
15545 2009-11-21  Bruno Haible  <bruno@clisp.org>
15546
15547         diffseq: reduce scope of variable 'best'.
15548         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15549         variable, earlier used for two different purposes.
15550
15551 2009-11-21  Jim Meyering  <meyering@redhat.com>
15552
15553         diffseq: remove useless assignment to "best"
15554         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15555         assignment.  At that point "best" is already guaranteed to be zero.
15556
15557 2009-11-20  Eric Blake  <ebb9@byu.net>
15558
15559         build: mention ftp redirector in release announcements
15560         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15561         values that used to come from cfg.mk; mention FTP redirect URL.
15562         * build-aux/announce-gen: Mention the mirror list.
15563         Suggested by Karl Berry.
15564
15565         nanosleep: improve port to mingw
15566         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15568         LIB_NANOSLEEP, but only when needed.
15569         * modules/select (Link): Document LIBSOCKET.
15570         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15571         enough.
15572
15573         nanosleep: work around cygwin bug
15574         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15575         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15576         bug.
15577         (getnow): Delete, not needed.
15578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15579         LIB_CLOCK_GETTIME.
15580         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15581         clock-time, gettime.
15582         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15583         bug.
15584         * modules/nanosleep-tests: New test.
15585         * tests/test-nanosleep.c: New file.
15586
15587         sleep: work around cygwin bug
15588         * lib/sleep.c (rpl_sleep): Work around the bug.
15589         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15590         (gl_PREREQ_SLEEP): Delete unused macro.
15591         * modules/sleep (Depends-on): Add verify.
15592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15593         * modules/unistd (Makefile.am): Substitute witness.
15594         * lib/unistd.in.h (sleep): Update prototype.
15595         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15596         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15597         * modules/sleep-tests (Depends-on): Check for alarm.
15598
15599 2009-11-20  Jim Meyering  <meyering@redhat.com>
15600
15601         maint.mk: improve sc_prohibit_magic_number_exit
15602         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15603         so it does not match uses like System.exit(1).
15604         Add comments showing how to correct all offenders.
15605
15606 2009-11-19  Eric Blake  <ebb9@byu.net>
15607
15608         xalloc-die-tests: add missing library
15609         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15610
15611         test-xvasprintf: silence compiler warnings
15612         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15613         empty string from gcc.
15614
15615 2009-11-19  Jim Meyering  <meyering@redhat.com>
15616
15617         xfreopen: new module, from coreutils
15618         * modules/xfreopen: New module.
15619         * lib/xfreopen.c: New file.
15620         * lib/xfreopen.h: New file.
15621         * MODULES.html.sh (File stream based Input/Output"): Add it.
15622
15623 2009-11-19  Eric Blake  <ebb9@byu.net>
15624
15625         manywarnings: depend on warnings
15626         * modules/manywarnings (Depends-on): Add warnings.
15627
15628         build: avoid compiler warnings
15629         * lib/select.c (rpl_select): Delete unused variable.
15630         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15631
15632 2009-11-18  Eric Blake  <ebb9@byu.net>
15633
15634         tests: avoid false negative with --with-packager
15635         * tests/test-version-etc.sh: Discard packager information.
15636         * tests/test-argp-version-etc-1.sh: Likewise.
15637         Reported by Mike Frysinger.
15638
15639         utimens: fix regression on Solaris
15640         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15641         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15642         can only change fd timestamps via futimesat.  Instead, use an
15643         additional witness macro to avoid BSD bug.
15644         Reported by Jim Meyering.
15645
15646 2009-11-17  Eric Blake  <ebb9@byu.net>
15647
15648         usleep: use it to simplify tests
15649         * modules/stat-time-tests (Depends-on): Add usleep.
15650         (configure.ac): Drop usleep check.
15651         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15652         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15653         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15654         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15655         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15656         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15657         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15658         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15659         Likewise.
15660         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15661         * tests/test-lchown.h (nap): Likewise.
15662         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15663         * tests/test-stat-time.c (nap): Likewise.
15664         * tests/test-utimens-common.h (nap): Update comments.
15665
15666         usleep: new module
15667         * modules/usleep: New file.
15668         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15669         * lib/usleep.c (usleep): Likewise.
15670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15671         * modules/unistd (Makefile.am): Substitute witnesses.
15672         * lib/unistd.in.h (usleep): Add declaration.
15673         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15674         * MODULES.html.sh (Date and time): Likewise.
15675         * modules/usleep-tests (Depends-on): New test.
15676         * tests/test-usleep.c: New file.
15677
15678         chown: work around OpenBSD bug
15679         * lib/chown.c (rpl_chown): Work around the bug.
15680         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15681         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15682         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15683         * modules/chown (Depends-on): Add stdbool.
15684         * modules/lchown (Depends-on): Likewise.
15685         * doc/posix-functions/chown.texi (chown): Document the bug.
15686         * doc/posix-functions/lchown.texi (lchown): Likewise.
15687         * tests/test-lchown.h (test_chown): Relax test.
15688
15689         mkstemp: avoid conflict with C++ keyword template
15690         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15691         * lib/mkostemp.c (mkostemp): Likewise.
15692         * lib/mkostemps.c (mkostemps): Likewise.
15693         * lib/mkstemp.c (mkstemp): Likewise.
15694         * lib/mkstemps.c (mkstemps): Likewise.
15695
15696         xalloc-die-tests: optimize
15697         * tests/test-xalloc-die.sh: Reduce number of processes.
15698
15699 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15700
15701         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15702         patch from ludo@gnu.org (Ludovic Courtès).
15703
15704 2009-11-17  Jim Meyering  <meyering@redhat.com>
15705
15706         version-etc: use proper license string
15707         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15708         * modules/version-etc-fsf: Likewise.
15709
15710 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15711
15712         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15713         printed to stdout.  Deal with EOL differences.
15714
15715 2009-11-17  Eric Blake  <ebb9@byu.net>
15716
15717         unsetenv: work around Solaris bug
15718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15719         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15720         Reported by Jim Meyering.
15721
15722         vasnprintf: avoid compiler warnings
15723         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15724         variables.
15725         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15726
15727 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15728
15729         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15730         settings since xalloc-die is no longer the self test,
15731         xalloc-die.sh is.
15732
15733 2009-11-17  Jim Meyering  <meyering@redhat.com>
15734
15735         test-xalloc-die.sh: make the code agree with the commit log
15736         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15737         at the end, just in case you happen to have a test-xalloc-die
15738         program in some other PATH directory.
15739
15740         test-xalloc-die.sh: fix a portability bug
15741         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15742         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15743         Otherwise, argv[0] (as often seen in diagnostics) would be too
15744         system-dependent, sometimes with, and sometimes without the leading "./".
15745
15746         version-etc-fsf: relax license to LGPLv3+
15747         * modules/version-etc-fsf (License): Relax license.
15748
15749 2009-11-16  Eric Blake  <ebb9@byu.net>
15750
15751         xalloc-die-tests: avoid printing null pointer
15752         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15753         shell script.
15754         * tests/test-xalloc-die.c (program_name): Declare.
15755         * tests/test-xalloc-die.sh (tmpfiles): New file.
15756
15757         setenv, unsetenv: work around various bugs
15758         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15759         (setenv) [HAVE_SETENV]: Work around bugs.
15760         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15762         for bugs.
15763         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15764         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15766         * modules/stdlib (Makefile.am): Update substitutions.
15767         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15768         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15769         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15770         * modules/setenv-tests: New test.
15771         * modules/unsetenv-tests: Likewise.
15772         * tests/test-setenv.c: New file.
15773         * tests/test-unsetenv.c: Likewise.
15774
15775 2009-11-16  Jim Meyering  <meyering@redhat.com>
15776
15777         version-etc: relax license to LGPLv3+
15778         * modules/version-etc (License): Relax license.
15779
15780         better AC_REQUIRE expanded-before-required-warning avoidance
15781         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15782         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15783         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15784         which is no longer needed.
15785
15786 2009-11-16  Eric Blake  <ebb9@byu.net>
15787
15788         test-freading: clean up temporary file
15789         * tests/test-freading.c (main): Remove file on success, and use
15790         ASSERT more liberally.
15791         Reported by Jim Meyering.
15792
15793 2009-11-16  Jim Meyering  <meyering@redhat.com>
15794
15795         avoid new AC_REQUIRE expanded-before-required warnings
15796         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15797         merely using it.
15798         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15799         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15800
15801 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15802
15803         * tests/test-xalloc-die.c: New file.
15804         * modules/xalloc-die-tests: New file.
15805         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15806         XFAIL_TESTS so it can be appended by modules.
15807
15808 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15809
15810         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15811         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15812
15813 2009-11-14  Eric Blake  <ebb9@byu.net>
15814
15815         fnmatch: avoid compiler warning
15816         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15817         to silence compiler warning about mismatch signedness in ?:.
15818         Reported by Robert Millan.
15819
15820         intprops: add double-inclusion guard
15821         * lib/intprops.h: Allow idempotent includes.
15822         Suggested by Bruce Korb.
15823
15824         openat: detect Solaris fchownat bug
15825         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15826         penalizing glibc chownat when only lchownat is broken.
15827         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15828         trailing slash bugs.
15829         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15830         * modules/openat-tests (Files): Include more files.
15831         (Depends-on): Add mgetgroups, sleep, stat-time.
15832         (configure.ac): Add additional checks.
15833         (Makefile.am): Build new test.
15834         * tests/test-fchownat.c: New file.
15835
15836         lchown: detect Solaris and FreeBSD bug
15837         * lib/lchown.c (rpl_lchown): Work around bug.
15838         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15840         * modules/unistd (Makefile.am): Populate it.
15841         * lib/unistd.in.h (lchown): Update declaration.
15842         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15843         * modules/lchown-tests: New file.
15844         * tests/test-lchown.h (test_lchown): Likewise.
15845         * tests/test-lchown.c (main): Likewise.
15846
15847         chown: detect Solaris and FreeBSD bug
15848         * lib/chown.c (rpl_chown): Work around bug.
15849         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15850         (gl_PREREQ_CHOWN): Delete.
15851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15852         * modules/unistd (Makefile.am): Populate it.
15853         * lib/unistd.in.h (chown): Update declaration.
15854         * lib/lchown.c (chown): Update client.
15855         * modules/lchown (Depends-on): Add lstat.
15856         * doc/posix-functions/chown.texi (chown): Document the bug.
15857         * doc/posix-functions/getgroups.texi (getgroups): Document
15858         getgroups pitfall.
15859         * modules/chown-tests: New file.
15860         * tests/test-chown.h (test_chown): Likewise.
15861         * tests/test-chown.c (main): Likewise.
15862
15863 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15864
15865         gnulib-tool: correctly detect absence of m4 directories
15866         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15867
15868 2009-11-14  Jim Meyering  <meyering@redhat.com>
15869
15870         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15871         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15872
15873 2009-11-14  John W. Eaton  <jwe@gnu.org>
15874
15875         strftime.h: wrap funtion declaration in extern "C" block
15876         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15877
15878 2009-11-13  Eric Blake  <ebb9@byu.net>
15879
15880         getgroups: avoid compiler warning
15881         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15882
15883         getgroups: work around FreeBSD bug
15884         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15885         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15886         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15887         * tests/test-getgroups.c (main): Fix buffer overrun.
15888
15889         getgroups: avoid compilation failure
15890         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15891         * modules/getgroups (Depends-on): Add stdint.
15892
15893 2009-11-13  Jim Meyering  <meyering@redhat.com>
15894
15895         test-getgroups: avoid compilation failure
15896         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15897
15898 2009-11-13  Eric Blake  <ebb9@byu.net>
15899
15900         mgetgroups: new module, taken from coreutils
15901         * modules/mgetgroups: New file.
15902         * lib/mgetgroups.h: Likewise.
15903         * lib/mgetgroups.c (mgetgroups): Likewise.
15904         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15905         * MODULES.html.sh (Users and groups): Mention it.
15906
15907         getgroups: don't expose GETGROUPS_T to user
15908         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15909         an element at a time if GETGROUPS_T is wrong size.
15910         * lib/getugroups.h (getugroups): Change signature.
15911         * lib/unistd.in.h (getgroups): Likewise.
15912         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15913         signature needs fixing.
15914         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15915         AC_TYPE_GETGROUPS.
15916         * modules/group-member (Depends-on): Add getgroups.
15917         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15918         (group_member): Rely on getgroups replacement.
15919         * lib/getugroups.c (getugroups): Use gid_t.
15920         * tests/test-getgroups.c (main): Likewise.
15921         * NEWS: Mention the signature change.
15922         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15923         problem with signature.
15924         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15925         GETGROUPS_T is still useful for setgroups.
15926
15927         getgroups, getugroups: provide stubs for mingw
15928         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15929         * lib/getugroups.c (getugroups): Likewise.
15930         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15931         function.  Modernize replacement scheme.
15932         (gl_PREREQ_GETGROUPS): Delete.
15933         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15934         * modules/getgroups (configure.ac): Declare witness.
15935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15936         * modules/unistd (Depends-on): Substitute witness.
15937         * lib/unistd.in.h (getgroups): Declare replacement.
15938
15939         getgroups: avoid calling exit
15940         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15941         drop xalloc.
15942         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15943         dependencies.
15944         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15945         exiting, in the rare case of malloc failure.
15946
15947         getgroups: fix logic error
15948         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15949         has more than 20 groups.
15950         * modules/getgroups-tests: New test.
15951         * tests/test-getgroups.c: New file.
15952
15953 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15954
15955         * tests/test-base64.c: Improve.
15956
15957 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15958
15959         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15960         Blake <ebb9@byu.net>.
15961
15962 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15963
15964         * tests/test-xvasprintf.c: Add %s%s related checks.
15965
15966 2009-11-12  Eric Blake  <ebb9@byu.net>
15967
15968         version-etc: match standards.texi style
15969         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15970         and use <> only for URLs.
15971
15972 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15973
15974         fts: do not fail on a submount during traversal
15975         * lib/fts.c (fts_build): Read the stat info again after opening
15976         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15977         Original report at http://bugzilla.redhat.com/501848.
15978
15979 2009-11-12  Jim Meyering  <meyering@redhat.com>
15980
15981         bootstrap: sync from coreutils
15982         * build-aux/bootstrap (bootstrap_epilogue): New function.
15983         Use git_modules_config in one more place.  This make bootstrap's
15984         --gnulib-srcdir option more useful for testing.
15985
15986         bootstrap: generalize autoheader check
15987         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15988         AC_CONFIG_HEADERS.
15989
15990 2009-11-11  Eric Blake  <ebb9@byu.net>
15991
15992         mkfifoat: use new modules for Solaris and BSD bugs
15993         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15994         * lib/mkfifoat.c (mknodat): Split...
15995         * lib/mknodat.c (mknodat): ...into new file.
15996         * modules/mkfifoat (Files): Ship new file.
15997         (Depends-on): Add mkfifo, mknod.
15998         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15999         (Depends-on): Add symlink.
16000         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16001         redundant with test_mkfifo.h.
16002         (do_mkfifoat, do_mknodat): New helpers.
16003
16004         mknod: new module
16005         * modules/mknod: New file.
16006         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16007         * lib/mknod.c (mknod): Likewise.
16008         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16009         defaults.
16010         * modules/sys_stat (Makefile.am): Substitute them.
16011         * lib/sys_stat.in.h (mknod): Declare replacement.
16012         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16013         Document it.
16014         * doc/posix-functions/mknod.texi (mknod): Likewise.
16015         * modules/mknod-tests: New test.
16016         * tests/test-mknod.c: Likewise.
16017
16018         mkfifo: new module
16019         * modules/mkfifo: New file.
16020         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16021         * lib/mkfifo.c (mkfifo): Likewise.
16022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16023         defaults.
16024         * modules/sys_stat (Makefile.am): Substitute them.
16025         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16026         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16027         Document it.
16028         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16029         * modules/mkfifo-tests: New test.
16030         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16031         from test-mkfifoat.c.
16032         * tests/test-mkfifo.c: New file.
16033
16034         readlink: detect FreeBSD bug
16035         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16036         slash on symlink.
16037         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16038         * tests/test-readlink.h (test_readlink): Enhance test.
16039
16040         symlink: detect FreeBSD bug
16041         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16042         slash on symlink.
16043         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16044         * tests/test-symlink.h (test_symlink): Enhance test.
16045
16046 2009-11-10  Eric Blake  <ebb9@byu.net>
16047
16048         link: detect FreeBSD bug
16049         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16050         symlink.
16051         * doc/posix-functions/link.texi (link): Document the bug.
16052         * tests/test-link.h (test_link): Enhance test.
16053         * tests/test-linkat.c (main): Update caller.
16054
16055         unlink, remove: detect FreeBSD bug
16056         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16057         slash on symlink.
16058         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16059         * doc/posix-functions/remove.texi (remove): Likewise.
16060         * tests/test-unlink.h (test_unlink): Enhance test.
16061         * tests/test-remove.c (main): Likewise.
16062
16063 2009-11-09  Eric Blake  <ebb9@byu.net>
16064
16065         rename: detect FreeBSD bug
16066         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16067         slash on symlink.
16068         * modules/renameat-tests (Depends-on): Add filenamecat.
16069         * tests/test-rename.h (test_rename): Allow one more errno.
16070         * tests/test-renameat.c (main): Likewise.
16071         * doc/posix-functions/rename.texi (rename): Document the bug.
16072
16073         open: detect FreeBSD bug
16074         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16075         symlink.
16076         * doc/posix-functions/open.texi (open): Document the bug.
16077         * doc/posix-functions/utimes.texi (utimes): Likewise.
16078         * tests/test-open.h (test_open): Add parameters, and test symlink
16079         handling.
16080         * tests/test-open.c (main): Adjust caller.
16081         * tests/test-fcntl-safer.c (main): Likewise.
16082         * modules/open-tests (Depends-on): Add stdbool, symlink.
16083         * modules/fcntl-safer-tests (Depends-on): Likewise.
16084         * tests/test-openat.c (main): Add test-open tests.
16085
16086         stat: detect FreeBSD bug
16087         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16088         symlink.
16089         * doc/posix-functions/stat.texi (stat): Document the bug.
16090         * tests/test-stat.h (test_stat_func): Add argument.
16091         * tests/test-stat.c (main): Adjust caller.
16092         * tests/test-fstatat.c (main): Likewise.
16093         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16094         Reported by Jim Meyering.
16095
16096 2009-11-09  James Youngman  <jay@gnu.org>
16097
16098         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16099         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16100
16101 2009-11-08  Jim Meyering  <meyering@redhat.com>
16102
16103         utimens: remove invalid futimesat call
16104         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16105         It used the file descriptor of the target file as the DIR_FD
16106         parameter and NULL as the file name.  That caused failure with
16107         errno == EFAULT on FreeBSD-8.0-rc2
16108
16109 2009-11-07  Eric Blake  <ebb9@byu.net>
16110
16111         fflush, freadseek: use fseeko, not fseek
16112         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16113         (clear_ungetc_buffer): Avoid potential problems on large files.
16114         * lib/freadseek.c (freadseek): Likewise.
16115         * modules/freadseek (Depends-on): Add fseeko.
16116         * modules/fseek (configure.ac): Set a witness.
16117         * tests/test-fflush.c (main): Use fseeko.
16118         * tests/test-fpurge.c (fseek): Disable link warning.
16119         * tests/test-freadable.c (fseek): Likewise.
16120         * tests/test-freading.c (fseek): Likewise.
16121         * tests/test-fseeko.c (fseek): Likewise.
16122         * tests/test-ftell.c (fseek): Likewise.
16123         * tests/test-ftello.c (fseek): Likewise.
16124         * tests/test-fwritable.c (fseek): Likewise.
16125         * tests/test-fwriting.c (fseek): Likewise.
16126
16127 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16128
16129         * modules/memchr (Depends-on): Drop getpagesize dependency.
16130
16131 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16132
16133         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16134         Reported by Ludovic Courtès.
16135         * build-aux/pmccabe2html: Improve example usage.
16136         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16137
16138 2009-11-06  Jim Meyering  <meyering@redhat.com>
16139
16140         do-release-commit-and-tag: New module.
16141         Automate the release-commit and tag process.
16142         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16143         * modules/do-release-commit-and-tag: New file.
16144         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16145
16146 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16147
16148         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16149         because test-select.c uses inet_pton.
16150
16151 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16152
16153         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16154         GETADDRINFO_LIB.  Bump serial number.
16155         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16156         Suggested by Eric Blake <ebb9@byu.net>.
16157
16158 2009-11-05  Eric Blake  <ebb9@byu.net>
16159
16160         strtod: detect darwin bug
16161         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16162         Reported by Leo Davis.
16163
16164         freopen-safer: new module
16165         * modules/freopen-safer: New module.
16166         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16167         * lib/freopen-safer.c (freopen_safer): New file.
16168         * lib/stdio-safer.h (freopen_safer): New declaration.
16169         * lib/stdio--.h (freopen): New override.
16170         * MODULES.html.sh (File stream based Input/Output): Mention it.
16171         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16172         freopen-safer module.
16173         * doc/posix-functions/stderr.texi (stderr): Likewise.
16174         * doc/posix-functions/stdin.texi (stdin): Likewise.
16175         * doc/posix-functions/stdout.texi (stdout): Likewise.
16176         * modules/freopen-safer-tests: New test.
16177         * tests/test-reopen-safer.c: New file.
16178
16179 2009-11-05  Jim Meyering  <meyering@redhat.com>
16180
16181         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16182         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16183
16184 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16185
16186         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16187
16188 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16189
16190         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16191
16192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16193
16194         Fix link error.
16195         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16196         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16197
16198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16199
16200         * tests/test-func.c: Also test value of __func__.
16201
16202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16203
16204         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16205         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16206
16207 2009-11-05  Bruno Haible  <bruno@clisp.org>
16208
16209         Fix link error.
16210         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16211         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16212         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16213
16214 2009-11-05  Bruno Haible  <bruno@clisp.org>
16215
16216         Tests for module 'inet_pton'.
16217         * modules/inet_pton-tests: New file.
16218         * tests/test-inet_pton.c: New file.
16219
16220 2009-11-05  Bruno Haible  <bruno@clisp.org>
16221
16222         Tests for module 'inet_ntop'.
16223         * modules/inet_ntop-tests: New file.
16224         * tests/test-inet_ntop.c: New file.
16225
16226 2009-11-04  Eric Blake  <ebb9@byu.net>
16227
16228         stdlib-safer: wrap all mkstemp variants
16229         * modules/mkostemp (configure.ac): Set witness.
16230         * modules/mkostemps (configure.ac): Likewise.
16231         * modules/mkstemps (configure.ac): Likewise.
16232         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16233         (mkstemps_safer): Wrap more functions.
16234         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16235         wrapping.
16236         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16237         (mkstemps_safer): Implement the wrappers.
16238
16239         mkstemps, mkostemps: new modules
16240         * modules/mkostemps: New module.
16241         * modules/mkstemps: Likewise.
16242         * lib/mkostemps.c (mkostemps): New file.
16243         * lib/mkstemps.c (mkstemps): Likewise.
16244         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16245         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16247         * modules/stdlib (Makefile.am): Substitute them.
16248         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16249         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16250         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16251         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16252         * MODULES.html.sh (File system functions): Mention them.
16253
16254         tempname: resync from glibc
16255         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16256         same values for __GT_FILE as glibc.  Abort even when assertions
16257         are disabled.
16258         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16259         match its value otherwise.  Allow idempotent inclusion.
16260         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16261         * lib/mkostemp.c (mkostemp): Likewise.
16262         * lib/mkstemp.c (mkstemp): Likewise.
16263         * lib/tmpfile.c (tmpfile): Likewise.
16264         * NEWS: Document this.
16265
16266         utimens: fix use of futimens on older Linux
16267         * lib/utimens.c (fdutimens): Use updated, rather than original,
16268         timespec to avoid bug in older Linux kernel.
16269         Reported by Simon Josefsson.
16270
16271 2009-11-04  Bruno Haible  <bruno@clisp.org>
16272
16273         Make num_processors more flexible and consistent.
16274         * lib/nproc.h (enum nproc_query): New type.
16275         (num_processors): Add a 'query' argument.
16276         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16277         (num_processors): Add a 'query' argument. Test the value of the
16278         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16279         mingw, count the number of CPUs available for the current process.
16280         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16281         Check for sched_getaffinity and sched_getaffinity_np.
16282         * modules/nproc (Depends-on): Add c-ctype, extensions.
16283         * NEWS: Mention the change.
16284
16285 2009-11-03  Bruno Haible  <bruno@clisp.org>
16286
16287         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16288
16289 2009-11-03  Jim Meyering  <meyering@redhat.com>
16290
16291         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16292         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16293         if it is defined.
16294
16295 2009-11-02  Eric Blake  <ebb9@byu.net>
16296
16297         mktime, timegm: share common declaration
16298         * lib/mktime-internal.h: New file.
16299         * lib/mktime.c: Use it rather than open-coding a declaration.
16300         * lib/timegm.c: Likewise.
16301         * modules/mktime (Files): Ship it.
16302         * modules/timegm (Files): Likewise.
16303         Suggested by Bruno Haible.
16304
16305         test-update-copyright: update test to match script changes
16306         * tests/test-update-copyright.sh: Avoid hard-coding perl
16307         location.  Don't update *.bak created by earlier runs.
16308
16309 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16310             Simon Josefsson  <simon@josefsson.org>
16311             Bruno Haible  <bruno@clisp.org>
16312
16313         Fix link error on Solaris 8.
16314         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16315         also in libnsl. Define also INET_PTON_LIB.
16316         * modules/inet_pton (Link): New section.
16317
16318 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16319             Bruno Haible  <bruno@clisp.org>
16320
16321         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16322         * modules/inet_ntop (Link): New section.
16323         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16324
16325 2009-11-02  Eric Blake  <ebb9@byu.net>
16326
16327         maint: avoid compiler warnings in m4 macros
16328         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16330
16331 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16332
16333         * m4/pmccabe2html.m4: Remove file.
16334         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16335         function.  Change maintainer.
16336         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16337         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16338         Courtès).
16339
16340 2009-10-31  Eric Blake  <ebb9@byu.net>
16341
16342         fseeko: fix m4 regression
16343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16344         regression from 2009-10-27.
16345         Reported by Ralf Wildenhues.
16346
16347 2009-10-31  Jim Meyering  <meyering@redhat.com>
16348
16349         inttostr: aesthetics and improved (compile-time) safety
16350         Define inttype_is_signed rather than inttype_is_unsigned,
16351         since the sole use is via "#if inttype_is_signed".
16352         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16353         inttype_is_unsigned.
16354         * lib/offtostr.c (inttype_is_signed): Likewise.
16355         * lib/uinttostr.c (inttype_is_signed): Likewise.
16356         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16357         * lib/inttostr.c (inttostr): Use verify to cross-check the
16358         inttype_is_signed value and the signedness of the actual type.
16359         * modules/inttostr (Depends-on): Add verify.
16360
16361 2009-10-30  Eric Blake  <ebb9@byu.net>
16362
16363         build: avoid compiler warnings
16364         * lib/fchmodat.c (lchmod): Mark unused variables.
16365         * lib/getopt.c (_getopt_initialize): Likewise.
16366         * lib/mktime.c (__mktime_internal): Provide prototype.
16367         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16368         older gcc that do not understand #pragma GCC diagnostic.
16369         * lib/uinttostr.c (inttype_is_unsigned): Define.
16370         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16371
16372 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16373
16374         stat: fix compilation on AIX
16375         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16376         only see struct stat64.
16377
16378 2009-10-30  Eric Blake  <ebb9@byu.net>
16379
16380         exclude: make more robust
16381         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16382         rather than masking a coding bug.
16383         Suggested by Bruno Haible.
16384
16385 2009-10-30  Jim Meyering  <meyering@redhat.com>
16386
16387         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16388         Rather than putting #!/usr/bin/perl on the first line,
16389         start with a variant of what's recommended by "man perlrun" that
16390         invokes the first "perl" program from your shell's search path.
16391         * build-aux/gitlog-to-changelog: Replace #!... as above.
16392         Add a "Local Variables" perl mode setting.
16393         Prompted by a patch from Ludovic Courtès.
16394         Improved by Eric Blake.
16395         * build-aux/useless-if-before-free: Likewise.
16396         * build-aux/announce-gen: Likewise.
16397         * build-aux/update-copyright: Likewise.
16398
16399 2009-10-29  Eric Blake  <ebb9@byu.net>
16400
16401         filenamecat-lgpl: adjust clients
16402         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16403         filenamecat.
16404         * modules/renameat (Depends-on): Likewise.
16405
16406         filenamecat: split into filenamecat-lgpl
16407         * modules/filenamecat-lgpl: New module.
16408         * modules/filenamecat (Files): Move library-safe files into
16409         filenamecat-lgpl.
16410         (Depends-on): Add filenamecat-lgpl.
16411         (configure.ac): Declare witness.
16412         * lib/filenamecat.h (file_name_concat): Only declare when using
16413         GPL module.
16414         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16415         Move...
16416         * lib/filenamecat-lgpl.c: ...into new file.
16417         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16418         (gl_FILE_NAME_CONCAT): Use it.
16419         * MODULES.html.sh (File system functions): Mention new module.
16420
16421         argp: avoid memory leak
16422         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16423         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16424         base_name, since the latter malloc()s and can call exit().
16425         Leak introduced 2006-07-03.
16426
16427         dirname-lgpl: adjust clients that don't need full dirname
16428         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16429         * modules/filenamecat (Depends-on): Likewise.
16430         * modules/linkat (Depends-on): Likewise.
16431         * modules/mkancesdirs (Depends-on): Likewise.
16432         * modules/mkdir (Depends-on): Likewise.
16433         * modules/openat (Depends-on): Likewise.
16434         * modules/savewd (Depends-on): Likewise.
16435         * modules/rename (Depends-on): Likewise.
16436         (License): Relax license.
16437         * modules/mkdir-tests (Depends-on): Drop progname.
16438         (Makefile.am): Delete unneeded LDADD.
16439         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16440
16441         dirname: split into dirname-lgpl
16442         * modules/dirname-lgpl: New module.
16443         * modules/dirname (Files): Move library-safe files into
16444         dirname-lgpl.
16445         (Depends-on): Add dirname-lgpl.
16446         (configure.ac): Declare witness.
16447         * modules/double-slash-root (License): Relax license.
16448         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16449         module.
16450         * lib/dirname.c (dir_len, mdir_name): Move...
16451         * lib/dirname-lgpl.c: ...into new file.
16452         * lib/basename.c (last_component, base_len): Move...
16453         * lib/basename-lgpl.c: ...into new file.
16454         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16455         (gl_DIRNAME): Use it.
16456         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16457         Mention new module.
16458         * modules/dirname-tests (Depends-on): Add progname.
16459         * tests/test-dirname.c (program_name): Delete.
16460
16461         mkdir: make safe for libraries
16462         * modules/mkdir (Depends-on): Drop xalloc.
16463         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16464         exit.
16465
16466         tests: avoid some compiler warnings
16467         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16468         literals.
16469         * tests/test-memchr.c (main): Avoid type mismatch.
16470         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16471         * tests/test-base64.c (main): Likewise.
16472         * tests/test-getdelim.c (main): Likewise.
16473         * tests/test-gethostname.c (main): Likewise.
16474         * tests/test-getline.c (main): Likewise.
16475         * tests/test-netinet_in.c (main): Likewise.
16476         * tests/test-select.c (open_server_socket, main): Likewise.
16477         * tests/test-select-stdin.c (main): Likewise.
16478         * tests/test-sockets.c (main): Likewise.
16479         * tests/test-strsignal.c (main): Likewise.
16480         * tests/test-sys_select.c (main): Likewise.
16481         * tests/test-sys_socket.c (main): Likewise.
16482         * tests/test-u64.c (main): Likewise.
16483         * tests/test-xfprintf-posix.c (main): Likewise.
16484         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16485
16486         sockets: avoid compiler warning
16487         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16488
16489         maint: detect usage(1) and other suspicious exits
16490         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16491
16492 2009-10-29  Jim Meyering  <meyering@redhat.com>
16493
16494         timespec: long-to-int truncation could make timespec_cmp malfunction
16495         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16496         a multiple of 2^32 nanoseconds as no difference.
16497
16498 2009-10-28  Jim Meyering  <meyering@redhat.com>
16499
16500         fprintftime: wrap macro code argument in "do {...} while(0)"
16501         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16502         cpy macro must be a statement that can be followed by a semicolon.
16503         Now that the else clause contains a comment and is hence longer
16504         than one line, I require curly braces.  That in turn requires
16505         that we wrap this code block in the standard do...while(0).
16506
16507         fprintftime: remove stray semicolon from previous change
16508         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16509
16510         fprintftime: avoid a warning about ignored fwrite return value
16511         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16512         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16513         that is unsafe.
16514         * modules/fprintftime (Depends-on): Add ignore-value.
16515
16516         exclude: avoid an unwarranted warning
16517         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16518
16519 2009-10-27  Eric Blake  <ebb9@byu.net>
16520
16521         fseek: avoid compilation failure when fflush is replaced
16522         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16523         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16524         module is in use.
16525         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16526         module is not in use; since REPLACE_FSEEK worked otherwise.
16527         (GNULIB_FTELLO): Likewise for ftell.
16528         Reported by Ian Beckwith and others.
16529
16530 2009-10-27  Bruno Haible  <bruno@clisp.org>
16531
16532         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16533         Reported by Jim Meyering.
16534
16535 2009-10-27  Jim Meyering  <jim@meyering.net>
16536             Bruno Haible  <bruno@clisp.org>
16537
16538         Avoid warning despite dropping the return value of fwrite.
16539         * lib/unicodeio.c: Include ignore-value.h.
16540         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16541         * modules/unicodeio (Depends-on): Add ignore-value.
16542
16543 2009-10-26  Eric Blake  <ebb9@byu.net>
16544
16545         areadlinkat: fix fallback path
16546         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16547         pointer and zero.
16548
16549 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16550
16551         Use a better IO block size for modern systems
16552         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16553         * lib/md2.c: Likewise.
16554         * lib/md4.c: Likewise.
16555         * lib/md5.c: Likewise.
16556         * lib/sha1.c: Likewise.
16557         * lib/sha256.c: Likewise.
16558         * lib/sha512.c: Likewise.
16559
16560 2009-10-22  Eric Blake  <ebb9@byu.net>
16561
16562         tests: avoid several compiler warnings
16563         * tests/test-getcwd.c (main): Avoid buffer underflow.
16564         * tests/test-getdate.c (main): String literals are not safe with
16565         putenv, so use setenv.  Declare unused argument.
16566         * modules/getdate-tests (Depends-on): Add setenv.
16567         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16568         problems with string literals in char *.
16569         * tests/test-hash.c (main): Avoid shadowing declaration.
16570         (insert_new): Treat string literals as char const *.
16571         * tests/test-getopt.h (test_getopt): Likewise.
16572         (getopt_loop): Alter types to minimize casting elsewhere.
16573         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16574         (test_getopt_long_posix): Likewise.
16575         (do_getopt_long): Add wrapper to minimize casting.
16576         * tests/test-atexit.c (clear_temp_file): Use void.
16577         * tests/test-areadlink-with-size.c (main): Declare unused
16578         arguments.
16579         * tests/test-areadlink.c (main): Likewise.
16580         * tests/test-areadlinkat-with-size.c (main): Likewise.
16581         * tests/test-areadlinkat.c (main): Likewise.
16582         * tests/test-canonicalize-lgpl.c (main): Likewise.
16583         * tests/test-canonicalize.c (main): Likewise.
16584         * tests/test-dirent-safer.c (main): Likewise.
16585         * tests/test-dirname.c (main): Likewise.
16586         * tests/test-dup2.c (main): Likewise.
16587         * tests/test-fchdir.c (main): Likewise.
16588         * tests/test-fcntl-h.c (main): Likewise.
16589         * tests/test-fcntl-safer.c (main): Likewise.
16590         * tests/test-fdopendir.c (main): Likewise.
16591         * tests/test-fdutimensat.c (main): Likewise.
16592         * tests/test-fflush.c (main): Likewise.
16593         * tests/test-filenamecat.c (main): Likewise.
16594         * tests/test-filevercmp.c (main): Likewise.
16595         * tests/test-fopen-safer.c (main): Likewise.
16596         * tests/test-fopen.c (main): Likewise.
16597         * tests/test-fpending.c (main): Likewise.
16598         * tests/test-fpurge.c (main): Likewise.
16599         * tests/test-freading.c (main): Likewise.
16600         * tests/test-fstatat.c (main): Likewise.
16601         * tests/test-fsync.c (main): Likewise.
16602         * tests/test-futimens.c (main): Likewise.
16603         * tests/test-getndelim2.c (main): Likewise.
16604         * tests/test-gettimeofday.c (main): Likewise.
16605         * tests/test-getopt.c (main): Likewise.
16606         * tests/test-i-ring.c (main): Likewise.
16607         * tests/test-inttypes.c (main): Likewise.
16608         * tests/test-link.c (main): Likewise.
16609         * tests/test-lstat.c (main): Likewise.
16610         * tests/test-math.c (main): Likewise.
16611         * tests/test-md5.c (main): Likewise.
16612         * tests/test-memchr2.c (main): Likewise.
16613         * tests/test-memrchr.c (main): Likewise.
16614         * tests/test-mkdir.c (main): Likewise.
16615         * tests/test-mkdirat.c (main): Likewise.
16616         * tests/test-mkfifoat.c (main): Likewise.
16617         * tests/test-open.c (main): Likewise.
16618         * tests/test-openat-safer.c (main): Likewise.
16619         * tests/test-openat.c (main): Likewise.
16620         * tests/test-quotearg.c (main): Likewise.
16621         * tests/test-rawmemchr.c (main): Likewise.
16622         * tests/test-readlink.c (main): Likewise.
16623         * tests/test-remove.c (main): Likewise.
16624         * tests/test-rename.c (main): Likewise.
16625         * tests/test-renameat.c (main): Likewise.
16626         * tests/test-rmdir.c (main): Likewise.
16627         * tests/test-sha1.c (main): Likewise.
16628         * tests/test-signal.c (main): Likewise.
16629         * tests/test-sigaction.c (main): Likewise.
16630         * tests/test-stat.c (main): Likewise.
16631         * tests/test-stat-time.c (main): Likewise.
16632         * tests/test-stddef.c (main): Likewise.
16633         * tests/test-stdint.c (main): Likewise.
16634         * tests/test-stdio.c (main): Likewise.
16635         * tests/test-stdlib.c (main): Likewise.
16636         * tests/test-strchrnul.c (main): Likewise.
16637         * tests/test-strerror.c (main): Likewise.
16638         * tests/test-string.c (main): Likewise.
16639         * tests/test-strtod.c (main): Likewise.
16640         * tests/test-strverscmp.c (main): Likewise.
16641         * tests/test-symlink.c (main): Likewise.
16642         * tests/test-symlinkat.c (main): Likewise.
16643         * tests/test-sys_stat.c (main): Likewise.
16644         * tests/test-sys_time.c (main): Likewise.
16645         * tests/test-time.c (main): Likewise.
16646         * tests/test-unistd.c (main): Likewise.
16647         * tests/test-unlink.c (main): Likewise.
16648         * tests/test-unlinkat.c (main): Likewise.
16649         * tests/test-utimens.c (main): Likewise.
16650         * tests/test-utimensat.c (main): Likewise.
16651         * tests/test-version-etc.c (main): Likewise.
16652         * tests/test-wchar.c (main): Likewise.
16653         * tests/test-wctype.c (main): Likewise.
16654         * tests/test-xprintf-posix.c (main): Likewise.
16655         * tests/test-posixtm.c (main): Likewise.
16656         (STREQ): Delete unused macro.
16657         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16658         shadowed variables.
16659         * tests/test-memchr.c (main): Likewise.
16660
16661 2009-10-21  Eric Blake  <ebb9@byu.net>
16662
16663         areadlinkat: avoid failure on older glibc
16664         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16665         rather than mis-comparing 0 against FUNC_RESULT of char*.
16666
16667 2009-10-21  Bruno Haible  <bruno@clisp.org>
16668
16669         * modules/stpncpy (License): Relicense under LGPLv2+.
16670         Reported by David Lutterkort <lutter@redhat.com>.
16671
16672 2009-10-20  Eric Blake  <ebb9@byu.net>
16673
16674         utimensat: work around Solaris 9 bug
16675         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16676         has trailing slash bugs.
16677         * tests/test-lutimens.h (test_lutimens): Enhance test.
16678         * tests/test-utimens.h (test_utimens): Likewise.
16679         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16680         * doc/posix-functions/utimes.texi (utimes): Likewise.
16681         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16682         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16683         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16684         * doc/posix-functions/futimens.texi (futimens): Likewise.
16685
16686         fdutimensat: new module
16687         * modules/fdutimensat: New file.
16688         * lib/fdutimensat.c (fdutimensat): Likewise.
16689         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16690         * MODULES.html.sh (File system functions): Mention module.
16691         * modules/fdutimensat-tests: New test.
16692         * tests/test-fdutimensat.c: Likewise.
16693
16694         doc: regenerate INSTALL
16695         * doc/INSTALL: Reflect recent autoconf update.
16696         * doc/INSTALL.ISO: Likewise.
16697         * doc/INSTALL.UTF-8: Likewise.
16698
16699 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16700
16701         acl: warn if ACL support is not detected
16702         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16703
16704 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16705
16706         * lib/nproc.h: Add extern "C" block for C++.
16707
16708 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16709             Bruno Haible  <bruno@clisp.org>
16710
16711         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16712         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16713         * doc/posix-functions/isalpha.texi: Likewise.
16714         * doc/posix-functions/isblank.texi: Likewise.
16715         * doc/posix-functions/iscntrl.texi: Likewise.
16716         * doc/posix-functions/isdigit.texi: Likewise.
16717         * doc/posix-functions/isgraph.texi: Likewise.
16718         * doc/posix-functions/islower.texi: Likewise.
16719         * doc/posix-functions/isprint.texi: Likewise.
16720         * doc/posix-functions/ispunct.texi: Likewise.
16721         * doc/posix-functions/isspace.texi: Likewise.
16722         * doc/posix-functions/isupper.texi: Likewise.
16723         * doc/posix-functions/isxdigit.texi: Likewise.
16724
16725 2009-10-18  Bruno Haible  <bruno@clisp.org>
16726
16727         Tests for module 'isblank'.
16728         * modules/isblank-tests: New file.
16729         * tests/test-isblank.c: New file.
16730
16731         New module 'isblank'.
16732         * lib/isblank.c: New file.
16733         * m4/isblank.m4: New file.
16734         * modules/isblank: New file.
16735         * doc/posix-functions/isblank.texi: Mention the new module.
16736
16737 2009-10-18  Bruno Haible  <bruno@clisp.org>
16738
16739         New module 'ctype'.
16740         * lib/ctype.in.h: New file.
16741         * m4/ctype.m4: New file.
16742         * modules/ctype: New file.
16743         * doc/posix-headers/ctype.texi: Mention the new module.
16744
16745 2009-10-18  Jim Meyering  <meyering@redhat.com>
16746
16747         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16748         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16749         right after its initialization, rather than farther down.
16750         Keeping these in close proximity makes it easier to ensure
16751         that each such variable is initialized.  E.g.,
16752
16753             LIB_CLOCK_GETTIME=
16754             AC_SUBST([LIB_CLOCK_GETTIME])
16755
16756         This change also increments these serial numbers.
16757         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16758         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16760
16761 2009-10-18  Bruno Haible  <bruno@clisp.org>
16762
16763         Don't let environment variables perturb build.
16764         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16765         (gl_PREREQ_GETHRXTIME): ... not here.
16766
16767 2009-10-18  Bruno Haible  <bruno@clisp.org>
16768
16769         Avoid symlink attack in localcharset module.
16770         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16771         (O_NOFOLLOW): Define fallback.
16772         (get_charset_aliases): Don't open the file if it is a symbolic link.
16773         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16774         gl_FCNTL_H.
16775         (gl_FCNTL_H): Require it.
16776         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16777         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16778         Reported by Fergal Glynn <fglynn@veracode.com>.
16779
16780 2009-10-18  Bruno Haible  <bruno@clisp.org>
16781
16782         Implement nproc for mingw.
16783         * lib/nproc.c: Include <windows.h>
16784         (num_processors): On native Windows platforms, try GetSystemInfo.
16785
16786 2009-10-18  Bruno Haible  <bruno@clisp.org>
16787
16788         Implement nproc for IRIX.
16789         * lib/nproc.c: Include <sys/sysmp.h>.
16790         (num_processors): On IRIX systems, try sysmp.
16791         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16792
16793 2009-10-18  Bruno Haible  <bruno@clisp.org>
16794
16795         Implement nproc for HP-UX.
16796         * lib/nproc.c: Include <sys/pstat.h>
16797         (num_processors): On HP-UX systems, try pstat_getdynamic.
16798         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16799         pstat_getdynamic.
16800
16801 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16802             Bruno Haible  <bruno@clisp.org>
16803
16804         Implement nproc for NetBSD, OpenBSD.
16805         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16806         (ARRAY_SIZE): New macro.
16807         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16808         * m4/nproc.m4: New file.
16809         * modules/nproc (Files): Add m4/nproc.m4.
16810         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16811         (Makefile.am): Instead, augment lib_SOURCES.
16812
16813 2009-10-18  Bruno Haible  <bruno@clisp.org>
16814
16815         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16816         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16817         sys/param.h.
16818
16819 2009-10-16  Eric Blake  <ebb9@byu.net>
16820
16821         utimensat: new module
16822         * modules/utimensat: New file.
16823         * lib/utimensat.c (utimensat): Likewise.
16824         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16825         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16826         so we can work around Linux bugs.
16827         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16828         * modules/sys_stat (Makefile.am): Substitute them.
16829         * lib/sys_stat.in.h (utimensat): Declare it.
16830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16831         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16832         * modules/utimensat-tests: New test.
16833         * tests/test-utimensat.c: Likewise.
16834
16835         utimens: let lutimens work on non-symlinks
16836         * lib/utimens.c (lutimens): Fall back to utimens rather than
16837         failing with ENOSYS, when file is not a symlink.
16838         (utimens): Reduce redirection.
16839         * tests/test-lutimens.h (test_lutimens): Update test to cover
16840         non-symlinks.
16841         * tests/test-utimens.h (test_utimens): Update test to cover
16842         symlinks.
16843         * tests/test-utimens.c (main): Update caller.
16844
16845         utimens: cache whether utimensat syscall works
16846         * lib/utimens.c (utimensat_works_really): New cache variable.
16847         (fdutimens, lutimens): Use it to avoid failing syscall.
16848
16849         test-stat-time, test-utimens: improve portability
16850         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16851         ext4 on alpha, and for cygwin.
16852         * tests/test-utimens-common.h: New file.
16853         (nap): Factor delays into single function.
16854         * tests/test-lutimens.h (test_lutimens): Use new header.
16855         * tests/test-futimens.h (test_futimens): Likewise.
16856         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16857         timestamps to occur from same machine, as was done previously for
16858         test_utimens.
16859         * modules/utimens-tests (Files): Ship new file.
16860         * modules/futimens-tests (Files): Likewise.
16861         Reported in part by Jim Meyering.
16862
16863         sys_stat: sort replacement declarations
16864         * lib/sys_stat.in.h: Sort declarations.
16865         * lib/futimens.c (futimens): Fix typo.
16866
16867 2009-10-15  Jim Meyering  <meyering@redhat.com>
16868
16869         don't let environment settings perturb build
16870         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16871         could cause a configure-time and/or build-time malfunction.
16872         Typically, a configure-time function-in-library test is performed
16873         via code like this:
16874
16875           LIB_VAR=
16876           AC_SUBST([LIB_VAR])
16877           prefix_saved_LIBS=$LIBS
16878             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16879                        [test "$ac_cv_search_FUNC" = "none required" ||
16880                         LIB_VAR=$ac_cv_search_FUNC])
16881           LIBS=$prefix_saved_LIBS
16882
16883         However, in each of the files affected by this change, the LIB_VAR=
16884         initialization was omitted.  Thus, when set in the environment, its
16885         value would propagate into generated Makefiles when FUNC is not found
16886         in LIB_NAME.
16887         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16890
16891 2009-10-14  Eric Blake  <ebb9@byu.net>
16892
16893         fchdir: avoid infinite recursion in mingw
16894         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16895         recursing.
16896
16897         test-stat-time: port to mingw
16898         * tests/test-stat-time.c (force_unlink): Return a value.
16899         (test_ctime) [W32]: Fix compilation error.
16900         (nap): Don't call usleep with too large an argument.  Use
16901         force_unlink.
16902         * doc/pastposix-functions/usleep.texi (usleep): Document the
16903         portability issue.
16904
16905 2009-10-13  Jim Meyering  <meyering@redhat.com>
16906
16907         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16908         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16909         * modules/pipe-filter-ii: Likewise.
16910         * modules/sys_socket-tests: Likewise.
16911         * modules/tsearch-tests: Likewise.
16912         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16913         (check): Depend on it.
16914
16915 2009-10-12  Eric Blake  <ebb9@byu.net>
16916
16917         utimens-tests: port to NFS file systems
16918         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16919         comparisons to avoid spurious failures from timestamp drift
16920         between NFS machines.
16921
16922 2009-10-12  Eric Blake  <ebb9@byu.net>
16923
16924         stat-time-tests: minor cleanups
16925         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16926         * tests/test-stat-time.c (nap): Separate assignment from call.
16927         Suggested by Paolo Bonzini and Bruno Haible.
16928
16929         sys_stat: guarantee struct timespec
16930         * lib/sys_stat.in.h (includes): Always include <time.h>
16931         * modules/sys_stat (Depends-on): Add time.
16932         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16933         mode_t permission values.
16934         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16935         get at subsecond timestamps.
16936
16937 2009-10-10  Eric Blake  <ebb9@byu.net>
16938
16939         futimens: new module
16940         * modules/futimens: New file.
16941         * lib/futimens.c (futimens): Likewise.
16942         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16943         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16944         we can work around Linux bugs.
16945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16946         * modules/sys_stat (Makefile.am): Substitute them.
16947         * lib/sys_stat.in.h (futimens): Declare it.
16948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16949         * doc/posix-functions/futimens.texi (futimens): Likewise.
16950         * modules/futimens-tests: New test.
16951         * tests/test-futimens.c: Likewise.
16952
16953         utimens: introduce fdutimens
16954         * lib/utimens.h (fdutimens): New prototype.
16955         * lib/utimens.c (gl_futimens): Move guts...
16956         (fdutimens): ...to new interface.
16957         * tests/test-utimens.c (do_fdutimens): Use it.
16958
16959         utimens: add UTIME_NOW and UTIME_OMIT support
16960         * lib/utimens.c (validate_timespec, update_timespec): New helper
16961         functions.
16962         (gl_futimens, lutimens): Use them.
16963         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16964         stdbool, sys_stat.
16965         (Link): Mention resulting library dependency.
16966         * modules/utimecmp (Link): Likewise.
16967         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16968         (Makefile.am): Pick up library dependency.
16969         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16970         definition.
16971         * tests/test-sys_stat.c: Test the definitions.
16972         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16973         * NEWS: Document library dependency.
16974
16975         utimecmp: support symlink timestamps
16976         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16977         hashing when possible.  Use pathconf when available.
16978         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16979         * modules/utimecmp (Depends-on): Add lstat.
16980
16981         utimens: add lutimens interface
16982         * lib/utimens.c (lutimens): New function.
16983         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16984         * lib/utimens.h (lutimens): Declare new interface.
16985         * tests/test-utimens.c (main): Enhance test.
16986         * tests/test-lutimens.h (test_lutimens): New file.
16987         * modules/utimens-tests (Files): Distribute it.
16988         (Depends-on): Add symlink.
16989         (configure.ac): Check for usleep.
16990
16991         utimens: validate futimens usage
16992         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16993         fewer syscalls on failure later on.  Avoid compiler warning on
16994         mingw.
16995         * modules/utimens (Depends-on): Add dup2.
16996
16997         utimens: add test
16998         * modules/utimens-tests: New test.
16999         * tests/test-utimens.h: New file.
17000         * tests/test-futimens.h: Likewise.
17001         * tests/test-utimens.c: Likewise.
17002
17003         doc: mention timestamp portability issues
17004         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17005         instead.
17006         * doc/posix-functions/utime.texi (utime): Likewise.
17007         * doc/posix-functions/utimes.texi (utimes): Likewise.
17008         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17009         instead.
17010         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17011         module.
17012         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17013         Mention weakness with symlink timestamps.
17014         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17015         to utimensat/futimens instead.
17016         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17017
17018         test-dup2: enhance test
17019         * tests/test-dup2.c (main): Also check AT_FDCWD.
17020
17021         test-stat-time: avoid more spurious failures
17022         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17023         xfs; and avoid race if the two timestamps cross quantization edge.
17024
17025         relocatable: prefer 'file system' over 'filesystem'
17026         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17027         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17028         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17029         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17030         * lib/relocatable.c (compute_curr_prefix): Likewise.
17031
17032 2009-10-10  Jim Meyering  <meyering@redhat.com>
17033
17034         stat-time-tests: check for the usleep function
17035         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17036
17037 2009-10-10  Bruno Haible  <bruno@clisp.org>
17038
17039         * modules/xnanosleep: Put the Link section after the Include section.
17040
17041 2009-10-09  Eric Blake  <ebb9@byu.net>
17042
17043         dup2: work around FreeBSD 6.1 bug
17044         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17045         * doc/posix-functions/dup2.texi (dup2): Document it.
17046         Reported by Nelson H. F. Beebe and Jim Meyering.
17047
17048         test-stat-time: port to buggy NFS clients
17049         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17050         (test_ctime): Also skip test if mtime and ctime are skewed.
17051
17052         maint: prefer 'file system' over 'filesystem'
17053         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17054         * doc/posix-functions/lstat.texi (lstat): Likewise.
17055         * lib/file-has-acl.c (file_has_acl): Likewise.
17056         * lib/fwriteerror.c [TEST]: Likewise.
17057         * tests/test-areadlink.h (test_areadlink): Likewise.
17058         * tests/test-areadlinkat-with-size.c (main): Likewise.
17059         * tests/test-areadlinkat.c (main): Likewise.
17060         * tests/test-canonicalize-lgpl.c (main): Likewise.
17061         * tests/test-canonicalize.c (main): Likewise.
17062         * tests/test-fstatat.c (main): Likewise.
17063         * tests/test-linkat.c (main): Likewise.
17064         * tests/test-lstat.h (test_lstat_func): Likewise.
17065         * tests/test-mkdir.h (test_mkdir): Likewise.
17066         * tests/test-readlink.h (test_readlink): Likewise.
17067         * tests/test-remove.c (main): Likewise.
17068         * tests/test-rename.h (test_rename): Likewise.
17069         * tests/test-renameat.c (main): Likewise.
17070         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17071         * tests/test-symlink.h (test_symlink): Likewise.
17072         * tests/test-symlinkat.c (main): Likewise.
17073         * tests/test-unlink.h (test_unlink_func): Likewise.
17074         * tests/test-unlinkat.c (main): Likewise.
17075
17076         maint: make realtime library usage explicit
17077         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17078         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17079         * modules/settime (Link): Likewise.
17080         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17081
17082         test-stat-time: speed up execution
17083         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17084         warning on mingw.
17085         (nap): New helper function.
17086         (prepare_test): Use it to reduce sleep time.
17087         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17088         execution.
17089         * modules/stat-time-tests (configure.ac): Check for usleep.
17090
17091 2009-10-09  Jim Meyering  <meyering@redhat.com>
17092
17093         selinux-h: always use getfilecon wrappers
17094         * lib/getfilecon.c: New file.
17095         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17096         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17097         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17098         (fgetfilecon): Provide a stub.
17099         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17100         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17101         file unconditionally.
17102         When <selinux/selinux.h> is found, arrange to use wrappers.
17103         * modules/selinux-h (Files): Add getfilecon.c.
17104         (Makefile.am): Substitute include-next-related bits
17105         into the now-always-generated selinux/selinux.h file.
17106         * doc/glibc-functions/lgetfilecon.texi: New file.
17107         * doc/glibc-functions/fgetfilecon.texi: New file.
17108         * doc/glibc-functions/getfilecon.texi: New file.
17109         * doc/glibc-functions/getfilecon-desc.texi: New file.
17110         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17111         which to pull in the new files.
17112         * MODULES.html.sh (Misc): Add selinux-h.
17113
17114 2009-10-08  Jim Meyering  <meyering@redhat.com>
17115
17116         unistd: fix comment typo
17117         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17118
17119 2009-10-08  Eric Blake  <ebb9@byu.net>
17120
17121         areadlink: use SIZE_MAX consistently
17122         * modules/areadlink (Depends-on): Add stdint.
17123         * modules/areadlink-with-size (Depends-on): Likewise.
17124         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17125         gives NULL; drop sys/types, since unistd gives size_t; and add
17126         stdint for SIZE_MAX.
17127         (SIZE_MAX): Rely on headers.
17128         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17129         and add stdint.
17130         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17131         (SIZE_MAX): Likewise.
17132         (INITIAL_BUF_SIZE): Turn into enum.
17133         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17134
17135 2009-10-08  Jim Meyering  <meyering@redhat.com>
17136
17137         areadlinkat: avoid compilation failure
17138         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17139         Fix typo in comment.
17140
17141 2009-10-07  Eric Blake  <ebb9@byu.net>
17142
17143         areadlinkat-with-size: new module
17144         * modules/areadlinkat-with-size: New module.
17145         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17146         * lib/areadlink.h (areadlinkat): Declare it.
17147         * MODULES.html.sh (File system functions): Mention it.
17148         * modules/areadlinkat-with-size-tests: New test.
17149         * tests/test-areadlinkat-with-size.c: New file.
17150
17151         xreadlinkat: new module
17152         * modules/xreadlinkat: New module.
17153         * lib/xreadlinkat.c (xreadlinkat): New file.
17154         * lib/xreadlink.h (xreadlinkat): Declare it.
17155         * MODULES.html.sh (File system functions): Mention it.
17156
17157         areadlinkat: new module
17158         * lib/at-func.c (FUNC_FAIL): New define.
17159         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17160         * modules/areadlinkat: New module.
17161         * lib/linkat.c (areadlinkat): Move...
17162         * lib/areadlinkat.c (areadlinkat): ...to new file.
17163         * lib/areadlink.h (areadlinkat): Declare it.
17164         * modules/linkat (Depends-on): Add areadlinkat.
17165         * MODULES.html.sh (File system functions): Mention it.
17166         * modules/areadlinkat-tests: New test.
17167         * tests/test-areadlinkat.c: New file.
17168
17169         areadlink, areadlink-with-size: add tests
17170         * modules/areadlink-tests: New test.
17171         * modules/areadlink-with-size-tests: Likewise.
17172         * tests/test-areadlink.h: New file.
17173         * tests/test-areadlink.c: Likewise.
17174         * tests/test-areadlink-with-size.c: Likewise.
17175
17176         maint: minor cleanups
17177         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17178         _UNUSED_PARAMETER_ instead.
17179         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17180         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17181         * modules/linkat-tests (Files): Distribute test-link.h.
17182
17183         openat, utimens: whitespace cleanup
17184         * lib/openat.c: Prefer space throughout, rather than mix of 8
17185         spaces vs. tabs.
17186         * lib/at-func.c: Likewise.
17187         * lib/utimens.c: Likewise.
17188
17189         openat: avoid using wrong fd
17190         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17191         working directory chooses same fd.
17192         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17193
17194         mkdir, mkdirat: fix cygwin 1.5.x bug
17195         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17196         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17197         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17198         bug.
17199         (gl_PREREQ_MKDIR): Delete unused macro.
17200         * modules/mkdir (Files): Track file rename.
17201         (configure.ac): Update macro name.
17202         * modules/openat (Depends-on): Add mkdir.
17203         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17204
17205         mkdir, mkdirat: add tests
17206         * modules/mkdir-tests: New test.
17207         * tests/test-mkdir.h: New file.
17208         * tests/test-mkdir.c: Likewise.
17209         * tests/test-mkdirat.c: Likewise.
17210         * modules/openat-tests (Files): Add new files.
17211         (Makefile.am): Run new test.
17212
17213 2009-10-06  Eric Blake  <ebb9@byu.net>
17214
17215         doc: tweak *at function documentation
17216         * doc/posix-functions/faccessat.texi (faccessat): Mention
17217         known issue with replacement.
17218         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17219         * doc/posix-functions/linkat.texi (linkat): Likewise.
17220         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17221         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17222         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17223         * doc/posix-functions/renameat.texi (renameat): Likewise.
17224         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17225
17226         openat: fix GNU/Hurd bug in unlinkat
17227         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17228         broken.
17229         * doc/posix-functions/unlink.texi (unlink): Document this.
17230         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17231
17232         fdopendir: fix GNU/Hurd bug
17233         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17234         allowing non-directory fds.
17235         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17236         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17237         * modules/dirent (Makefile.am): Substitute it.
17238         * lib/dirent.in.h (fdopendir): Declare replacement.
17239         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17240         * tests/test-fdopendir.c (main): Test something other than
17241         /dev/null, since on Hurd that behaves like a directory.
17242
17243         test-symlink: port to GNU/Hurd
17244         * tests/test-symlink.h (test_symlink): Relax expected errno.
17245
17246         doc: tweak more cygwin information
17247         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17248         now compatible with glibc.
17249         * doc/posix-functions/getopt.texi (getopt): Likewise.
17250
17251         getopt-gnu: add another test
17252         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17253         guarantee behavior relied on by m4.
17254         * tests/test-getopt.c (main): Use it.
17255         * modules/getopt-posix-tests (Depends-on): Add setenv.
17256         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17257
17258         getopt: fix compilation on darwin
17259         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17260         include.
17261         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17262         Reported by Ludovic Courtès.
17263
17264 2009-10-06  Bruno Haible  <bruno@clisp.org>
17265
17266         * modules/size_max (Description): Discourage its use.
17267         Reported by Simon Josefsson.
17268
17269 2009-10-06  Jim Meyering  <meyering@redhat.com>
17270
17271         linkat: avoid compilation failure
17272         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17273
17274 2009-10-05  Eric Blake  <ebb9@byu.net>
17275
17276         linkat: support Linux 2.6.17
17277         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17278         linkat on Linux, but allow cache variable override.
17279         * lib/linkat.c (rpl_linkat): Define override.
17280         * modules/linkat (Depends-on): Add symlinkat.
17281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17282         * modules/unistd (Makefile.am): Substitute it.
17283         * lib/unistd.in.h (linkat): Declare replacement.
17284         Reported by Pádraig Brady.
17285
17286         quotearg: port test to systems with C.UTF-8 locale
17287         * tests/test-quotearg.c (struct result_strings): Add another
17288         member, differentiating between C.ASCII and C.UTF-8 handling.
17289         (compare_strings): Add parameter.
17290         (main): Adjust all callers.
17291
17292         getopt: avoid clash with FreeBSD _getopt_internal
17293         * lib/getopt.in.h (_getopt_internal): Override the name.
17294         * lib/getopt_int.h (includes): Pick up any overrides.
17295         Reported by Reuben Thomas.
17296
17297         hash: allow C89 compilation
17298         * lib/hash.c (check_tuning): Move declaration before statement.
17299         Reported by Reuben Thomas.
17300
17301 2009-10-05  Karl Berry  <karl@gnu.org>
17302
17303         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17304
17305 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17306             Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/uname.c (uname): Use a table-driven algorithm to compute
17309         Windows NT versions.
17310
17311 2009-10-04  Bruno Haible  <bruno@clisp.org>
17312
17313         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17314         program_invocation_short_name.
17315         * modules/progname (configure.ac): Test for presence of
17316         program_invocation_short_name.
17317         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17318
17319 2009-10-04  Bruno Haible  <bruno@clisp.org>
17320
17321         * lib/progname.c (set_program_name): Fix comment.
17322         Reported by Jim Meyering.
17323
17324 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17325             Bruno Haible  <bruno@clisp.org>
17326
17327         * lib/uname.c: Include <string.h>.
17328         (uname): Do only one call to GetVersionEx in the common case.
17329
17330 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17331             Bruno Haible  <bruno@clisp.org>
17332
17333         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17334         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17335         (uname): Add support for Windows CE and various non-x86 CPU types.
17336
17337 2009-10-03  Bruno Haible  <bruno@clisp.org>
17338
17339         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17340         invocation to tests/configure.ac.
17341         Reported by Ian Beckwith <ianb@erislabs.net>.
17342
17343 2009-10-02  Eric Blake  <ebb9@byu.net>
17344
17345         fchdir: avoid compiler warning
17346         * lib/fchdir.c (canonicalize_file_name)
17347         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17348
17349         test-open: support mingw errno values
17350         * tests/test-open.h (test_open): Relax test.
17351         * tests/test-fopen.h (test_fopen): Likewise.
17352         * tests/test-openat-safer.c (main): Likewise.
17353
17354         open: fix opening directory on mingw
17355         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17356
17357         test-open: on GNU/Hurd, /dev/null is a directory
17358         * tests/test-fopen.h (main): Rename...
17359         (test_fopen): ...to this.  Use a guaranteed non-directory when
17360         confirming open behavior on trailing slash.
17361         * tests/test-openat-safer.c (main): Likewise.
17362         * tests/test-open.h (main): Likewise....
17363         (test_open): ...to this.
17364         * tests/test-fopen.c (main): Adjust caller.
17365         * tests/test-fopen-safer.c (main): Likewise.
17366         * tests/test-open.c (main): Likewise.
17367         * tests/test-fcntl-safer.c (main): Likewise.
17368         Reported by Samuel Thibault.
17369
17370         rename, fchdir: don't ignore chdir failure
17371         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17372         * lib/rename.c (rpl_rename) [W32]: Likewise.
17373         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17374         an empty destination directory if source cannot be renamed,
17375         although there is still possibility for failure.
17376         * doc/posix-functions/rename.texi (rename): Document the race.
17377         Reported by Jim Meyering.
17378
17379         maint: cleanup whitespace in recent commits
17380         * lib/rename.c (rpl_rename): Remove tabs.
17381         * tests/test-link.h (test_link): Likewise.
17382         * lib/fchdir.c (get_name): Likewise.
17383         Reported by Jim Meyering.
17384
17385 2009-10-02  Ben Pfaff  <blp@gnu.org>
17386
17387         relocatable-prog-wrapper: Add missing dependency on
17388         double-slash-root.
17389         * modules/relocatable-prog-wrapper: Add dependency.
17390         Reported by Ian Beckwith <ianb@erislabs.net>.
17391
17392 2009-10-02  Eric Blake  <ebb9@byu.net>
17393
17394         renameat: fix Solaris bugs
17395         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17396         needed fixing.
17397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17398         * modules/stdio (Makefile.am): Substitute it.
17399         * lib/stdio.in.h (renameat): Declare replacement.
17400         * lib/renameat.c (rpl_renameat): Implement fix.
17401
17402         renameat: new module
17403         * modules/renameat: New file.
17404         * lib/renameat.c (renameat): Likewise.
17405         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17407         * modules/stdio (Makefile.am): Substitute them.
17408         * lib/stdio.in.h (renameat): Declare it.
17409         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17410         * doc/posix-functions/renameat.texi (renameat): Likewise.
17411         * modules/renameat-tests: New test.
17412         * tests/test-renameat.c: Likewise.
17413
17414         rename: fix mingw bugs
17415         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17416         directory overwrite bugs.
17417
17418         rename: fix another cygwin 1.5 bug
17419         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17420         checks.
17421         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17422         unnecessary cygwin workarounds.  Also work around bug with moving
17423         full directory onto an empty one.
17424         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17425
17426         rename-dest-slash: merge into rename module
17427         * modules/rename-dest-slash (Status): Mark obsolete.
17428         (Depends-on): Add rename.
17429         (Files): Let rename do it all.
17430         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17431         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17432         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17433         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17434         * lib/rename.c (rpl_rename): Update comments.
17435
17436         rename: fix cygwin 1.5.x bugs
17437         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17438         * lib/rename.c (rpl_rename): Work around them.
17439         * modules/rename (Depends-on): Add same-inode.
17440
17441         rename: fix Solaris 10 bug
17442         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17443         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17444         was the only bug.
17445
17446         rename: fix Solaris 9 bug
17447         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17448         on non-directory.  Avoid calling exit.
17449         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17450         strdup.
17451         * modules/rename-tests (Depends-on): Drop lstat.
17452         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17453         (gl_PREREQ_RENAME): Delete unused macro.
17454
17455         rename-dest-slash: fix NetBSD bug
17456         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17457         links.
17458         * modules/rename-dest-slash (Depends-on): Add same-inode.
17459
17460         rename-tests: new test, exposes several platform bugs
17461         * modules/rename-tests: New file.
17462         * tests/test-rename.h: Likewise.
17463         * tests/test-rename.c: Likewise.
17464         * doc/posix-functions/rename.texi (rename): Improve documentation,
17465         including bugs that will eventually be fixed in gnulib.
17466
17467 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17468
17469         * lib/uname.c: Include <stdlib.h>
17470         (uname): Assume version info is available.
17471
17472 2009-10-02  Jim Meyering  <meyering@redhat.com>
17473
17474         gnu-web-doc-update: correct --help output
17475         * build-aux/gnu-web-doc-update: Make --help output relevant.
17476
17477         gnu-web-doc-update: add standard options
17478         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17479
17480         gnu-web-doc-update: New module.
17481         Use this script to automatically update the on-line web documentation
17482         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17483         * modules/gnu-web-doc-update: New file, from coreutils.
17484         * build-aux/gnu-web-doc-update: New script.
17485
17486 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17487
17488         link: LoadLibrary is not needed.
17489         * lib/link.c: Use GetModuleHandle.
17490
17491 2009-10-01  Eric Blake  <ebb9@byu.net>
17492
17493         getopt: bump serial number
17494         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17495         change.
17496
17497         tests: tighten link, rmdir, and remove tests
17498         * tests/test-link.h (includes): No need to use <config.h> here.
17499         Clean up if directory hard link was created, otherwise test for
17500         trailing '.'.
17501         * tests/test-linkat.c (main): Simplify.
17502         * tests/test-remove.c (main): Enhance test for trailing '.'.
17503         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17504
17505 2009-10-01  Jim Meyering  <meyering@redhat.com>
17506
17507         maint.mk: requiring "make major" was annoying, for a "minor" release.
17508         What is intended is "stable", to contrast with alpha and beta,
17509         so require "make stable", not "make major".
17510         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17511         (get_tool_versions): Likewise.
17512         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17513
17514 2009-09-30  Ben Pfaff  <blp@gnu.org>
17515
17516         Fix broken build of replacement for Windows tmpfile().
17517         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17518         flags argument added along with the 'mkostemp' module.
17519
17520 2009-09-28  Bruno Haible  <bruno@clisp.org>
17521
17522         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17523         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17524         to 'remove_elt'.
17525         (gl_list_remove): Update.
17526         * lib/gl_list.c (gl_list_remove): Update.
17527         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17528         to 'remove_elt'.
17529         (gl_oset_remove): Update.
17530         * lib/gl_list.c (gl_oset_remove): Update.
17531         Reported by Eric Blake.
17532
17533 2009-09-28  Eric Blake  <ebb9@byu.net>
17534
17535         doc: mention yet more cygwin 1.7 status
17536         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17537         cygwin.
17538         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17539         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17540
17541         argp: fix test failure
17542         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17543         that are not upper-case.  Pass correct range to tolower.
17544
17545 2009-09-27  Jim Meyering  <meyering@redhat.com>
17546
17547         test-yesno: work around sparc-dash here-document infelicity
17548         Without this change, the literal \177 byte in a here document
17549         would make dash 0.5.5.1-3 access uninitialized memory.
17550         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17551         Instead, use a marker, "@", and filter through tr to create the desired
17552         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17553
17554 2009-09-27  Bruno Haible  <bruno@clisp.org>
17555
17556         Disable untested support for new flavours of ACLs on AIX.
17557         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17558         progress.
17559         * lib/set-mode-acl.c (qset_acl): Likewise.
17560
17561 2008-12-07  Bruno Haible  <bruno@clisp.org>
17562
17563         Add support for new flavours of ACLs on AIX. (Untested.)
17564         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17565         (file_has_acl): Add support for newer AIX.
17566         * lib/set-mode-acl.c (qset_acl): Likewise.
17567         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17568         Rainer Tammer <tammer@tammer.net>.
17569
17570 2009-09-26  Eric Blake  <ebb9@byu.net>
17571
17572         argp: fix compilation of getopt
17573         * lib/getopt.in.h (includes): Use different guard than glibc.
17574         Reported by Sergey Poznyakoff.
17575
17576         doc: mention more cygwin 1.7 status
17577         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17578         bug.
17579         * doc/posix-functions/execl.texi (execl): Likewise.
17580         * doc/posix-functions/execle.texi (execle): Likewise.
17581         * doc/posix-functions/execlp.texi (execlp): Likewise.
17582         * doc/posix-functions/execv.texi (execv): Likewise.
17583         * doc/posix-functions/execve.texi (execve): Likewise.
17584         * doc/posix-functions/execvp.texi (execvp): Likewise.
17585         * doc/glibc-functions/canonicalize_file_name.texi
17586         (canonicalize_file_name): Cygwin 1.7 now provides this.
17587         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17588         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17589         on AT_SYMLINK_NOFOLLOW.
17590
17591 2009-09-24  Eric Blake  <ebb9@byu.net>
17592
17593         test-linkat: make test more robust
17594         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17595
17596         getopt: fix inclusion guards for cygwin
17597         * modules/getopt-posix (Depends-on): Add include-next.
17598         (Makefile.am): Substitute more items in replacement header.
17599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17600         <getopt.h>.
17601         * lib/getopt.in.h (includes): Use split inclusion guard, and
17602         prefer <getopt.h> over include <unistd.h> when one is present.
17603         (option): Also override name of 'struct option'.
17604
17605         same-inode: revert prior change; it is not yet ready
17606         * NEWS: Undo mention of this change.
17607         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17608         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17609         * lib/cycle-check.c (cycle_check): Likewise.
17610         * lib/same.c (same_name): Likewise.
17611         * lib/at-func2.c (at_func2): Likewise.
17612
17613 2009-09-23  Eric Blake  <ebb9@byu.net>
17614
17615         linkat: new module
17616         * modules/linkat: New file.
17617         * lib/at-func2.c (at_func2): Likewise.
17618         * lib/linkat.c (linkat): Likewise.
17619         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17620         * lib/openat-priv.h (at_func2): Add declaration.
17621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17622         * modules/unistd (Makefile.am): Substitute them.
17623         * lib/unistd.in.h (linkat): Declare it.
17624         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17625         * doc/posix-functions/linkat.texi (linkat): Likewise.
17626         * doc/posix-functions/link.texi (link): Tweak wording.
17627         * tests/test-link.c (main): Move guts...
17628         * tests/test-link.h (test_link): ...into new file.
17629         * modules/linkat-tests: New test.
17630         * tests/test-linkat.c: Likewise.
17631         * modules/link-tests (Files): Ship new file.
17632         (Depends-on): Add stdbool.
17633
17634         dirname: add library-safe mdir_name
17635         * lib/dirname.h (mdir_name): New prototype.
17636         * lib/dirname.c (dir_name): Move guts...
17637         (mdir_name): ...to new function that avoids xalloc_die.
17638
17639         fchdir: another mingw fix
17640         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17641         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17642         on mingw (where it has not yet been ported), and make it optional
17643         elsewhere.
17644         (_gl_register_fd): Use it.
17645
17646         same-inode: make SAME_INODE tri-state, to port to mingw
17647         * NEWS: Mention this change.
17648         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17649         st_ino always being 0.
17650         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17651         * lib/cycle-check.c (cycle_check): Likewise.
17652         * lib/same.c (same_name): Likewise.
17653
17654         lstat: avoid mingw compilation error
17655         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17657         lstat ourselves.
17658         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17659         was adequate.
17660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17661         the checks for lstat.
17662         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17663
17664         link: fix test failure on Solaris 9
17665         * lib/link.c (rpl_link): Don't assume link will catch bogus
17666         trailing slash on source.
17667
17668         test-symlinkat: enhance test
17669         * tests/test-readlink.c (main): Move guts...
17670         * tests/test-readlink.h (test_readlink): ...into new file.
17671         * tests/test-symlink.c (main): Move guts...
17672         * tests/test-symlink.h (test_symlink): ...into new file.
17673         * tests/test-symlinkat.c (main): Use new files for further
17674         coverage.
17675         (do_symlink, do_readlink): New helper functions.
17676         * modules/symlink-tests (Files): Ship new file.
17677         (Depends-on): Add stdbool.
17678         * modules/readlink-tests (Files): Ship new file.
17679         (Depends-on): Add stdbool.
17680         * modules/symlinkat-tests (Files): Use new files.
17681
17682 2009-09-23  Eric Blake  <ebb9@byu.net>
17683
17684         readlink: document portability issue with symlink length
17685         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17686         systems have bogus st_size on symlinks, and mention the
17687         areadlink-with-size module.
17688         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17689         * doc/posix-functions/readlink.texi (readlink): Mention the
17690         areadlink module, and ERANGE failure.
17691         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17692         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17693
17694         readlink: fix Solaris 9 bug with trailing slash
17695         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17696         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17697         * doc/posix-functions/readlink.texi (readlink): Document this.
17698         * modules/readlink-tests: New test.
17699         * tests/test-readlink.c: Likewise.
17700
17701         readlink: fix cygwin 1.5.x bug with return type
17702         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17703         * lib/unistd.in.h (readlink): Use ssize_t.
17704         * lib/readlink.c (readlink): Likewise.
17705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17706         * modules/unistd (Makefile.am): Substitute it.
17707         * lib/unistd.in.h (readlink): Declare replacement.
17708         * doc/posix-functions/readlink.texi (readlink): Document this.
17709
17710         symlink: use throughout gnulib
17711         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17712         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17713         symlink is not used.
17714         * modules/symlinkat (Depends-on): Add symlink.
17715         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17716         * modules/canonicalize-tests (Depends-on): Likewise.
17717         * modules/lstat-tests (Depends-on): Likewise.
17718         * modules/openat-tests (Depends-on): Likewise.
17719         * modules/remove-tests (Depends-on): Likewise.
17720         * modules/rmdir-tests (Depends-on): Likewise.
17721         * modules/unlink-tests (Depends-on): Likewise.
17722         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17723         * tests/test-canonicalize.c (symlink): Likewise.
17724         * tests/test-fstatat.c (symlink): Likewise.
17725         * tests/test-lstat.c (symlink): Likewise.
17726         * tests/test-remove.c (symlink): Likewise.
17727         * tests/test-rmdir.c (symlink): Likewise.
17728         * tests/test-unlink.c (symlink): Likewise.
17729         * tests/test-unlinkat.c (symlink): Likewise.
17730
17731         symlink: new module, for Solaris 9 bug
17732         * modules/symlink: New file.
17733         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17734         * lib/symlink.c: Likewise.
17735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17736         * modules/unistd (Makefile.am): Substitute them.
17737         * lib/unistd.in.h (symlink): Declare replacement.
17738         * MODULES.html.sh (File system functions): Mention it.
17739         * doc/posix-functions/symlink.texi (symlink): Likewise.
17740         * modules/symlink-tests: New test.
17741         * tests/test-symlink.c: Likewise.
17742
17743 2009-09-23  Bruno Haible  <bruno@clisp.org>
17744
17745         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17746         when needed.
17747         Test case: gnulib-tool --import --with-tests atexit inttypes.
17748         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17749
17750 2009-09-23  Bruno Haible  <bruno@clisp.org>
17751
17752         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17753         subcommand, not in a subshell.
17754
17755 2009-09-22  Eric Blake  <ebb9@byu.net>
17756
17757         unistd: sort replacement declarations
17758         * lib/unistd.in.h: Sort declarations.
17759
17760         open, openat: minor optimization
17761         * lib/open.c (open): If open succeeded, len is non-zero.
17762         * lib/openat.c (rpl_openat): Likewise.
17763
17764         link-follow: ensure correct result
17765         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17766         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17767         distinguish between possible failures.
17768
17769 2009-09-21  Eric Blake  <ebb9@byu.net>
17770
17771         fts: avoid compiler warning
17772         * lib/fts.c (dirent_inode_sort_may_be_useful)
17773         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17774
17775 2009-09-19  Bruno Haible  <bruno@clisp.org>
17776
17777         * lib/progreloc.c (canonicalize_file_name): New declaration.
17778
17779 2009-09-19  Eric Blake  <ebb9@byu.net>
17780
17781         link: fix quoting
17782         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17783
17784         openat: fix openat bugs on Solaris 9
17785         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17786         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17787         * modules/openat (Depends-on): Add open.
17788         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17789         * modules/fcntl-h (Makefile.am): Substitute it.
17790         * lib/fcntl.in.h (openat): Declare replacement.
17791         * doc/posix-functions/openat.texi (openat): Document this.
17792
17793         openat: move fstatat and unlinkat into correct files
17794         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17795         compiled.
17796         * lib/openat.c (fstatat, unlinkat): Move...
17797         * lib/fstatat.c (fstatat): ...into correct files.
17798         * lib/unlinkat.c (unlinkat): Likewise.
17799
17800         openat: fix unlinkat bugs on Solaris 9
17801         * lib/unlinkat.c (unlinkat): New file.
17802         * modules/openat (Depends-on): Add unlink.
17803         (Files): Distribute it.
17804         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17805         trailing slash behavior is broken.
17806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17807         * modules/unistd (Makefile.am): Substitute it.
17808         * lib/unistd.in.h (unlinkat): Declare replacement.
17809         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17810
17811         openat: fix fstatat bugs on Solaris 9
17812         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17813         stat.
17814         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17815
17816         test-unlinkat: enhance test, to expose Solaris 9 bug
17817         * tests/test-unlink.c (main): Factor guts...
17818         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17819         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17820         * tests/test-rmdir.c (main): Adjust caller.
17821         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17822         (unlinker): New helper function.
17823         (rmdirat): Enhance check.
17824         * modules/rmdir-tests (Depends-on): Add stdbool.
17825         * modules/unlink-tests (Depends-on): Likewise.
17826         (Files): Add test-unlink.h.
17827         * modules/openat-tests (Files): Likewise.
17828         (Depends-on): Add unlinkdir.
17829
17830         test-fstatat: new test, to expose Solaris 9 bugs
17831         * tests/test-stat.c (main): Factor guts...
17832         * tests/test-stat.h (test_stat_func): ...into new file.
17833         * tests/test-lstat.c (main): Factor guts...
17834         * tests/test-lstat.h (test_lstat_func): ...into new file.
17835         * tests/test-fstatat.c: New file.
17836         * modules/stat-tests (Files): Add test-stat.h.
17837         * modules/lstat-tests (Files): Add test-lstat.h.
17838         (Depends-on): Add stdbool.
17839         * modules/openat-tests (Depends-on): Add pathmax.
17840         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17841         (Makefile.am): Run new test.
17842
17843         remove: new module, for mingw and Solaris 9 bugs
17844         * modules/remove: New file.
17845         * lib/remove.c: Likewise.
17846         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17848         * modules/stdio (Makefile.am): Use them.
17849         * lib/stdio.in.h (remove): Declare replacement.
17850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17851         * doc/posix-functions/remove.texi (remove): Likewise.
17852         * modules/remove-tests: New test.
17853         * tests/test-remove.c: Likewise.
17854
17855         unlink: new module, for Solaris 9 bug
17856         * modules/unlink: New file.
17857         * lib/unlink.c: Likewise.
17858         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17860         * modules/unistd (Makefile.am): Use them.
17861         * lib/unistd.in.h (stat): Declare replacement.
17862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17863         * doc/posix-functions/unlink.texi (unlink): Likewise.
17864         * modules/unlink-tests: New test.
17865         * tests/test-unlink.c: Likewise.
17866
17867         lstat: fix Solaris 9 bug
17868         * lib/lstat.c (lstat): Also check for trailing slash on
17869         non-symlink, non-directories.  Use stat module to simplify logic.
17870         * doc/posix-functions/lstat.texi (lstat): Document it.
17871         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17872         (configure.ac): Check for symlink.
17873         * tests/test-lstat.c (main): Add more tests.
17874
17875         stat: add as dependency to other modules
17876         * modules/chown (Depends-on): Add stat.
17877         * modules/euidaccess (Depends-on): Likewise.
17878         * modules/fchdir (Depends-on): Likewise.
17879         * modules/isdir (Depends-on): Likewise.
17880         * modules/link (Depends-on): Likewise.
17881         * modules/lstat (Depends-on): Likewise.
17882         * modules/mkdir-p (Depends-on): Likewise.
17883         * modules/modechange (Depends-on): Likewise.
17884         * modules/open (Depends-on): Likewise.
17885         * modules/readlink (Depends-on): Likewise.
17886         * modules/same (Depends-on): Likewise.
17887
17888         stat: fix Solaris 9 bug
17889         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17890         slash.
17891         * lib/stat.c (rpl_stat): Work around it.
17892         * doc/posix-functions/stat.texi (stat): Update documentation.
17893
17894         stat: new module, for mingw bug
17895         * modules/stat: New file.
17896         * lib/stat.c: Likewise.
17897         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17899         * modules/sys_stat (Makefile.am): Use them.
17900         * lib/sys_stat.in.h (stat): Declare replacement.
17901         * lib/openat.c (fstatat): Deal with lstat and stat being function
17902         macros.
17903         * modules/openat (Depends-on): Add inline.
17904         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17905         * doc/posix-functions/stat.texi (stat): Likewise.
17906         * modules/stat-tests: New test.
17907         * tests/test-stat.c: Likewise.
17908
17909 2009-09-19  Jim Meyering  <meyering@redhat.com>
17910
17911         syntax-check: detect unnecessary inclusion of canonicalize.h
17912         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17913
17914 2009-09-19  Eric Blake  <ebb9@byu.net>
17915
17916         canonicalize-lgpl: adjust clients to use correct header
17917         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17918         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17919         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17920         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17921         * lib/progreloc.c (includes): Likewise.
17922
17923 2009-09-19  Jim Meyering  <meyering@redhat.com>
17924
17925         test-posixtm.c: correct a comment
17926         * tests/test-posixtm.c: Correct first-line comment.
17927         Spotted by Eric Blake.
17928
17929 2009-09-16  Jim Meyering  <meyering@redhat.com>
17930
17931         posixtm-tests: make T const-correct; add a test case
17932         * tests/test-posixtm.c (T): Declare const.
17933         Add a test for -(2^31+1).
17934         Remove useless can-succeed-only-in-2002 test.
17935
17936         posixtm-tests: adjust the sole failing test
17937         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17938         expected output matches what mktime now produces.  Cross-checked via
17939         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17940
17941         posixtm: move #ifdef'd tests into a new module
17942         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17943         * tests/test-posixtm.c: ... this new file.
17944         * modules/posixtm-tests: New module.
17945
17946 2009-09-19  Eric Blake  <ebb9@byu.net>
17947
17948         openat: simplify use of at-func.c
17949         * lib/at-func.c (includes): Include prerequisites here, to
17950         simplify requirements on client files.
17951         * lib/openat-priv.h: Add double-inclusion guard.
17952         * lib/faccessat.c (includes): Simplify.
17953         * lib/fchmodat.c (includes): Likewise.
17954         * lib/fchownat.c (includes): Likewise.
17955         * lib/mkdirat.c (includes): Likewise.
17956         * lib/mkfifoat.c (includes): Likewise.
17957         * lib/symlinkat.c (includes): Likewise.
17958
17959         openat: allow return of fd 0
17960         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17961         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17962         unistd-safer.
17963         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17964         <fcntl.h>; this module does not leak fds.
17965         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17966         must be allowed to return 0, leaving openat_safer to add the
17967         safety.
17968         (openat_permissive): Avoid writing to just-opened fd 2 if
17969         restoring the current directory fails.
17970         * lib/openat-die.c (openat_restore_fail): Add comment.
17971         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17972         (save_cwd): Guarantee safe fd, but without use of open_safer.
17973         * tests/test-openat.c: New test.
17974         * modules/openat-tests (Files, Makefile.am): Distribute and build
17975         new file.
17976
17977         relocatable-prog-wrapper: fix build
17978         * modules/relocatable-prog-wrapper (Files): Update name of
17979         canonicalize m4 file, broken on 2009-09-17.
17980         Reported by emad hajjar <aleppos@hotmail.com>.
17981
17982 2009-09-19  Bruno Haible  <bruno@clisp.org>
17983
17984         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17985         * lib/safe-alloc.c: Likewise.
17986         Reported by Ian Beckwith <ianb@erislabs.net>.
17987
17988 2009-09-18  Bruno Haible  <bruno@clisp.org>
17989
17990         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17991         Reported by <erobles@sensacd.com.mx>.
17992
17993 2009-09-17  Eric Blake  <ebb9@byu.net>
17994
17995         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17996         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17997         slashes when checking if last component is missing.
17998         * tests/test-canonicalize.c (main): Test this.
17999
18000         canonicalize, canonicalize-lgpl: honor // if distinct from /
18001         * modules/canonicalize (Files): Add double-slash-root.m4.
18002         * modules/canonicalize-lgpl (Files): Likewise.
18003         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18004         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18005         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18006         fallback definition.
18007         (canonicalize_filename_mode): Use it to protect //.
18008         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18009         (__realpath): Likewise.
18010         * tests/test-canonicalize.c (main): Test this.
18011         * tests/test-canonicalize-lgpl.c (main): Likewise.
18012         * modules/canonicalize-tests (Depends-on): Add same-inode.
18013         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18014
18015         canonicalize-lgpl: fix glibc bug with trailing slash
18016         * m4/canonicalize-lgpl.m4: Move contents...
18017         * m4/canonicalize.m4: ...here.
18018         (gl_CANONICALIZE_LGPL): Factor realpath check...
18019         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18020         glibc 2.3.5 bug, fixed 2005-04-27.
18021         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18022         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18023         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18024         * modules/canonicalize-lgpl (Files): Manage file rename.
18025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18026         * modules/stdlib (Makefile.am): Substitute witness.
18027         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18028         is needed.
18029         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18030         replacement is required.
18031         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18032         * doc/glibc-functions/canonicalize_file_name.texi
18033         (canonicalize_file_name): Document this.
18034         * doc/posix-functions/realpath.texi (realpath): Likewise.
18035
18036         canonicalize-lgpl: reject non-directory with trailing slash
18037         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18038         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18039         catches failures in glibc 2.3.5.
18040         * tests/test-canonicalize.c (main): Likewise.
18041
18042         canonicalize-lgpl: use native realpath if it works
18043         * lib/canonicalize-lgpl.c (realpath): Guard with
18044         FUNC_REALPATH_WORKS.
18045         * lib/stdlib.in.h (realpath): Make declaration optional based on
18046         HAVE_REALPATH.
18047         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18048         native realpath works.
18049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18050         * modules/stdlib (Makefile.am): Substitute witness.
18051
18052         canonicalize, canonicalize-lgpl: use <stdlib.h>
18053         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18054         (Include): Mention <stdlib.h>.
18055         (configure.ac): Mention functions we provide.
18056         * modules/canonicalize (configure.ac): Likewise.
18057         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18058         realpath if canonicalize_file_name is missing.
18059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18060         * modules/stdlib (Makefile.am): Substitute witnesses.
18061         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18062         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18063         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18064         * NEWS: Document this.
18065         * doc/glibc-functions/canonicalize_file_name.texi
18066         (canonicalize_file_name): Likewise.
18067         * doc/posix-functions/realpath.texi (realpath): Likewise.
18068         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18069
18070         test-canonicalize: consolidate into single C program
18071         * tests/test-canonicalize.sh: Delete; move setup into...
18072         * tests/test-canonicalize.c (main): ...the program, making it
18073         easier to run in debugger.  Add some tests.
18074         * modules/canonicalize-tests (Files): Remove unused file.
18075         (Depends-on): Add progname.
18076         (configure.ac, Makefile.am): Simplify.
18077
18078         test-canonicalize-lgpl: consolidate into single C program
18079         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18080         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18081         easier to run in debugger.  Add some tests.
18082         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18083         (configure.ac, Makefile.am): Simplify.
18084
18085         canonicalize: avoid resolvepath
18086         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18087         unnecessary checks.
18088         * lib/canonicalize.c (includes): Simplify.
18089         (canonicalize_file_name): Drop resolvepath implementation.
18090         * modules/canonicalize (Depends-on): Drop filenamecat.
18091
18092         canonicalize: don't lose errno
18093         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18094         over calls to free.
18095
18096         canonicalize: simplify errno handling
18097         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18098         assignment.
18099
18100         canonicalize, canonicalize-lgpl: update module dependencies
18101         * modules/canonicalize (Depends-on): Add extensions, lstat,
18102         pathmax, stdlib.
18103         (Files): Drop pathmax.h.
18104         (configure.ac): Adjust macro name.
18105         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18106         lstat, stdlib, sys_stat.
18107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18108         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18109         extensions.
18110         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18111         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18112         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18113         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18114         declaration, if available.
18115         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18116         we can rely on the readlink module.
18117         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18118         (includes): Use <unistd.h> unconditionally.
18119
18120 2009-09-17  Eric Blake  <ebb9@byu.net>
18121
18122         maint: make Include sections of modules consistent
18123         * modules/alloca: Use only header name; no need to list #include.
18124         * modules/alloca-opt: Likewise.
18125         * modules/arpa_inet: Likewise.
18126         * modules/canon-host: Likewise.
18127         * modules/configmake: Likewise.
18128         * modules/dirent: Likewise.
18129         * modules/eealloc: Likewise.
18130         * modules/environ: Likewise.
18131         * modules/fchdir: Likewise.
18132         * modules/fcntl: Likewise.
18133         * modules/fcntl-h: Likewise.
18134         * modules/gethrxtime: Likewise.
18135         * modules/gettime: Likewise.
18136         * modules/ignore-value: Likewise.
18137         * modules/inet_ntop: Likewise.
18138         * modules/inet_pton: Likewise.
18139         * modules/inttypes: Likewise.
18140         * modules/isnand-nolibm: Likewise.
18141         * modules/isnanf-nolibm: Likewise.
18142         * modules/mbchar: Likewise.
18143         * modules/mbfile: Likewise.
18144         * modules/mbiter: Likewise.
18145         * modules/mbuiter: Likewise.
18146         * modules/netdb: Likewise.
18147         * modules/netinet_in: Likewise.
18148         * modules/nproc: Likewise.
18149         * modules/pagealign_alloc: Likewise.
18150         * modules/poll: Likewise.
18151         * modules/printf-frexp: Likewise.
18152         * modules/pthread: Likewise.
18153         * modules/putenv: Likewise.
18154         * modules/random_r: Likewise.
18155         * modules/relocatable-prog: Likewise.
18156         * modules/search: Likewise.
18157         * modules/select: Likewise.
18158         * modules/selinux-h: Likewise.
18159         * modules/settime: Likewise.
18160         * modules/signal: Likewise.
18161         * modules/size_max: Likewise.
18162         * modules/socklen: Likewise.
18163         * modules/ssize_t: Likewise.
18164         * modules/stdarg: Likewise.
18165         * modules/stdbool: Likewise.
18166         * modules/stddef: Likewise.
18167         * modules/stdint: Likewise.
18168         * modules/stdio: Likewise.
18169         * modules/stdlib: Likewise.
18170         * modules/string: Likewise.
18171         * modules/strings: Likewise.
18172         * modules/sys_file: Likewise.
18173         * modules/sys_ioctl: Likewise.
18174         * modules/sys_select: Likewise.
18175         * modules/sys_socket: Likewise.
18176         * modules/sys_stat: Likewise.
18177         * modules/sys_time: Likewise.
18178         * modules/sys_times: Likewise.
18179         * modules/sys_utsname: Likewise.
18180         * modules/sys_wait: Likewise.
18181         * modules/sysexits: Likewise.
18182         * modules/time: Likewise.
18183         * modules/times: Likewise.
18184         * modules/tmpfile: Likewise.
18185         * modules/trim: Likewise.
18186         * modules/unistd: Likewise.
18187         * modules/wchar: Likewise.
18188         * modules/wctype: Likewise.
18189
18190 2009-09-17  Bruno Haible  <bruno@clisp.org>
18191
18192         Make getdate.y compile on QNX and NetBSD 5 / i386.
18193         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18194         TIME_T_FITS_IN_LONG_INT.
18195         * lib/getdate.y (long_time_t): New type.
18196         (relative_time): Change type of 'seconds' field to long_time_t.
18197         (get_date): Update types of local variables. Check against overflow
18198         during conversion from long_time_t to time_t.
18199         Reported by Matt Kraai <kraai@ftbfs.org>
18200         and Hasso Tepper <hasso@netbsd.org>.
18201
18202 2009-09-17  Bruno Haible  <bruno@clisp.org>
18203
18204         * modules/COPYING: Update copyright years.
18205         * modules/README: Likeiwse.
18206         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18207         Reported by Ian Beckwith <ianb@erislabs.net>.
18208
18209 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18210
18211         * users.txt: Update references for gnuit package.
18212
18213 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18214
18215         * m4/getdelim.m4: Fix typo in copyright line.
18216
18217 2009-09-17  Bruno Haible  <bruno@clisp.org>
18218
18219         * lib/atoll.c: Use the standard header with GPL copyright.
18220         * lib/argz.in.h: Likewise.
18221         * lib/glob.c: Likewise.
18222         * lib/glob-libc.h: Likewise.
18223         * lib/random_r.c: Likewise.
18224         * lib/siglist.h: Likewise.
18225         * lib/strsignal.c: Likewise.
18226         Reported by Ian Beckwith <ianb@erislabs.net>.
18227
18228 2009-09-17  Eric Blake  <ebb9@byu.net>
18229
18230         rmdir: ensure correct dependency order
18231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18232
18233 2009-09-17  Bruno Haible  <bruno@clisp.org>
18234
18235         Disable assertion that fails on NetBSD 5 / i386.
18236         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18237         Reported by Sam Steingold <sds@gnu.org>
18238         and Hasso Tepper <hasso@netbsd.org>.
18239
18240 2009-09-16  Eric Blake  <ebb9@byu.net>
18241
18242         unlinkdir: port to mingw
18243         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18244         on which no one can unlink a directory.
18245
18246         stdlib: sort witness names
18247         * modules/stdlib (Makefile.am): Sort replacements.
18248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18249         * lib/stdlib.in.h: Likewise.
18250
18251         parse-duration-tests: avoid link failure
18252         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18253         LIBINTL.
18254         Reported by Tom G. Christensen.
18255
18256         openat-tests: ensure unlinkat behaves like rmdir
18257         * tests/test-rmdir.c (main): Factor guts...
18258         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18259         * modules/rmdir-tests (Files): Ship new file.
18260         * modules/openat-tests: New test.
18261         * tests/test-unlinkat.c: Likewise.
18262
18263         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18264         * modules/rmdir-errno (Status, Notice): Now obsolete.
18265
18266         rmdir: work around cygwin 1.5.x and mingw bugs
18267         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18268         * lib/rmdir.c (rmdir): Work around it.
18269         * modules/rmdir (Status, Notice): No longer obsolete.
18270         (Files): Add dos.m4.
18271         (Depends-on): Add unistd.
18272         (configure.ac): Set witnesses.
18273         (License): Relax to LGPLv2+.
18274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18275         * modules/unistd (Makefile.am): Substitute witnesses.
18276         * lib/unistd.in.h (rmdir): Declare replacement.
18277         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18278         * modules/rmdir-tests: New tests.
18279         * tests/test-rmdir.c: Likewise.
18280
18281 2009-09-15  Eric Blake  <ebb9@byu.net>
18282
18283         fchdir: improve use of replacement functions
18284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18287         REPLACE_CLOSEDIR.
18288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18289         * modules/sys_stat (Makefile.am): Substitute correct witness.
18290         * modules/dirent (Makefile.am): Likewise.
18291         * modules/unistd (Makefile.am): Likewise.
18292         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18293         * lib/unistd.in.h (dup): Likewise.
18294         * lib/sys_stat.in.h (fstat): Likewise.
18295
18296         maint: ignore gnulib-tool temp files
18297         * .gitignore: Ignore files created during gnulib-tool --test.
18298
18299 2009-09-13  Jim Meyering  <meyering@redhat.com>
18300
18301         posixtm: don't reject a time that specify "60" as the number of seconds
18302         * lib/posixtm.c (posixtime): The code to reject invalid dates
18303         would also reject a time specified with the .60 suffix.
18304         But POSIX allows that, in order to accommodate leap seconds.
18305         So don't reject it.
18306         (main): Adjust tests accordingly.
18307         * modules/posixtm (Depends-on): Add stpcpy.
18308
18309 2009-09-11  Jim Meyering  <meyering@redhat.com>
18310
18311         announce-gen: include [$release_type] in emitted Subject:
18312         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18313         e.g., [stable] in the emitted Subject: line.
18314
18315 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18316
18317         Remove obsolete macros from several modules.
18318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18319         obsolete Autoconf macros with their modern counterparts.
18320         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18321         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18327         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18328         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18329         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18330         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18332         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18333         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18336         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18337         * m4/time_r.m4 (gl_TIME_R): Likewise.
18338         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18339         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18340         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18341
18342         Fix copyright header in build-aux scripts.
18343         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18344         recommendation.
18345         * build-aux/ncftpput-ftp: Likewise.
18346         * build-aux/update-copyright: Likewise.
18347
18348 2009-09-09  Eric Blake  <ebb9@byu.net>
18349
18350         test-link: allow Linux choice of errno
18351         * tests/test-link.c (main): Relax test for alternate error.
18352
18353         strndup: fix improper m4 caching
18354         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18355         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18356         (gl_PREREQ_STRNDUP): Delete.
18357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18358         * modules/string (Makefile.am): Substitute it.
18359         * lib/string.in.h (strndup): Modernize prototype.
18360
18361         getcwd: port to mingw
18362         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18363         different from the POSIX assumptions made throughout the getcwd
18364         module; fortunately, the mingw getcwd does not need replacement.
18365         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18366         * modules/getcwd-tests: New test.
18367         * tests/test-getcwd.c: Likewise.
18368
18369         link: fix platform bugs
18370         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18371         * lib/link.c (link): Work around them.  Fix related mingw bug.
18372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18373         * modules/unistd (Makefile.am): Substitute it.
18374         * lib/unistd.in.h (link): Declare replacement.
18375         * doc/posix-functions/link.texi (link): Document this.
18376         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18377
18378         test-link: consolidate into single C program, test more cases
18379         * tests/test-link.sh: Delete.
18380         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18381         at least Cygwin and Solaris.
18382         * modules/link-tests (Files): Remove unused file.
18383         (Depends-on): Add errno, sys_stat.
18384         (Makefile.am): Simplify.
18385
18386 2009-09-08  Bruno Haible  <bruno@clisp.org>
18387
18388         Work around towlower, towupper bug on mingw.
18389         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18390         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18391         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18392         * doc/posix-functions/towupper.texi: Likewise.
18393         Reported by Eric Blake.
18394
18395 2009-09-08  Jim Meyering  <meyering@redhat.com>
18396
18397         build: don't try to run autoheader if we don't use it
18398         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18399         is not used in configure.ac.
18400
18401 2009-09-08  Eric Blake  <ebb9@byu.net>
18402
18403         euidaccess: fix compilation error
18404         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18405
18406         rawmemchr: relax license
18407         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18408         okay.
18409         Reported by Jim Meyering.
18410
18411         mkfifoat: new module
18412         * modules/mkfifoat: New file.
18413         * lib/mkfifoat.c: Likewise.
18414         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18416         * modules/sys_stat (Makefile.am): Use them.
18417         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18418         * MODULES.html.sh (File system functions): Mention module.
18419         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18420         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18421         * modules/mkfifoat-tests: New test.
18422         * tests/test-mkfifoat.c: Likewise.
18423
18424         strchrnul: relax license
18425         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18426         okay.
18427         Reported by Jim Meyering.
18428
18429 2009-09-08  Eric Blake  <ebb9@byu.net>
18430
18431         fstatat: fix compilation on Solaris
18432         * lib/fstatat.c (includes): Add fcntl.h.
18433         Reported by Pádraig Brady.
18434
18435 2009-09-07  Eric Blake  <ebb9@byu.net>
18436
18437         rename: modernize replacement
18438         * modules/rename (Depends-on): Add stdio.
18439         (configure.ac): Declare witness.
18440         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18441         stdio take care of replacement.
18442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18443         * modules/stdio (Makefile.am): Substitute them.
18444         * lib/stdio.in.h (rename): Declare replacement.
18445         * lib/rename.c (includes): Allow cross-compilation to non-windows
18446         machines.
18447         * doc/posix-functions/rename.texi (rename): Improve
18448         documentation.
18449
18450         stdio: sort witness names
18451         * modules/stdio (Makefile.am): Sort replacements.
18452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18453         * lib/stdio.in.h: Likewise.
18454
18455         getcwd: minor cleanups
18456         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18457         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18458
18459         openat: provide more convenience names
18460         * modules/faccessat (configure.ac): Add C witness.
18461         * lib/unistd.in.h (readlinkat): Fix typo.
18462         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18463         convenience wrappers.
18464         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18465         wrappers in syntax checks.
18466
18467 2009-09-06  Eric Blake  <ebb9@byu.net>
18468
18469         doc: fix comments in recent patches
18470         * lib/faccessat.c: Mention correct function.
18471         * lib/fchmodat.c: Likewise.
18472         * lib/fchownat.c: Likewise.
18473         * lib/symlinkat.c: Likewise.
18474         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18475         constants.
18476
18477         faccessat, symlinkat: continue cleanup of previous patch
18478         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18479         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18480         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18482         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18483         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18484         set.
18485
18486 2009-09-06  Bruno Haible  <bruno@clisp.org>
18487
18488         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18489         (fstatat): Declare if GNULIB_FSTATAT is set.
18490         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18491         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18492         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18493         * modules/fcntl-h (Files): Remove m4/openat.m4.
18494         * modules/sys_stat (Files): Remove m4/openat.m4.
18495         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18496         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18497         * modules/unistd (Files): Remove m4/openat.m4.
18498         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18499         GNULIB_OPENAT.
18500         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18501         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18503         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18504         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18505         gl_OPENAT_DEFAULTS.
18506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18507         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18508         Don't require gl_OPENAT_DEFAULTS.
18509         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18510         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18511         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18512         (gl_OPENAT_DEFAULTS): Remove macro.
18513
18514 2009-09-06  Bruno Haible  <bruno@clisp.org>
18515
18516         * modules/openat (configure.ac): Remove unneeded witness.
18517
18518 2009-09-06  Bruno Haible  <bruno@clisp.org>
18519
18520         Set errno to ENOSYS when a function is entirely unsupported.
18521         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18522         EOPNOTSUPP.
18523         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18524         * modules/chown (Depends-on): Remove errno.
18525
18526 2009-09-06  Bruno Haible  <bruno@clisp.org>
18527
18528         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18529
18530 2009-09-06  Bruno Haible  <bruno@clisp.org>
18531
18532         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18533
18534 2009-09-06  Ben Pfaff  <blp@gnu.org>
18535             Bruno Haible  <bruno@clisp.org>
18536
18537         Work around a glibc bug in strtok_r.
18538         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18539         Undefine if UNDEFINE_STRTOK_R is set.
18540         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18542         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18543         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18544         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18545         UNDEFINE_STRTOK_R.
18546         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18547
18548 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18549
18550         exclude: minor fix
18551         * lib/exclude.c: Include wctype.h
18552
18553 2009-09-06  Akim Demaille  <demaille@gostai.com>
18554
18555         bootstrap: improve error message
18556         * build-aux/bootstrap (find_tool): Upon failure, report the list
18557         of candidates.
18558         Honor the initial value of the envvar.
18559
18560 2009-09-05  Eric Blake  <ebb9@byu.net>
18561
18562         symlinkat: new module
18563         * modules/symlinkat: New file.
18564         * lib/symlinkat.c: Likewise.
18565         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18567         * modules/unistd (Makefile.am): Use them.
18568         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18569         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18570         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18571         * MODULES.html.sh (File system functions): Mention module.
18572         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18573         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18574         * modules/symlinkat-tests: New test.
18575         * tests/test-symlinkat.c: Likewise.
18576
18577         test-openat-safer: add more checks
18578         * tests/test-openat-safer.c (main): Check more code paths.
18579
18580 2009-09-05  Jim Meyering  <meyering@redhat.com>
18581
18582         syntax-check: detect unnecessary inclusion of openat.h
18583         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18584
18585 2009-09-05  Bruno Haible  <bruno@clisp.org>
18586
18587         Support towlower, towupper.
18588         * doc/posix-functions/towlower.texi: Mention module wctype.
18589         * doc/posix-functions/towupper.texi: Likewise.
18590         * lib/wctype.in.h (towlower, towupper): New functions.
18591         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18592         (ASSERT): New macro.
18593         (e): New variable.
18594         (main): Test also towlower, towupper. Test WEOF argument.
18595         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18596
18597 2009-09-05  Bruno Haible  <bruno@clisp.org>
18598
18599         Fix conversion behaviour when the input is invalid.
18600         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18601         mark occurring in first pass of indirect conversion.
18602         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18603         input.
18604         Found by clang's static analyzer.
18605
18606 2009-09-05  Bruno Haible  <bruno@clisp.org>
18607
18608         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18609         where direct conversion is possible.
18610
18611 2009-09-04  Eric Blake  <ebb9@byu.net>
18612
18613         openat: fail with ENOENT on empty name
18614         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18615         buffer.
18616
18617         link-follow: fix logic bug in prior patch
18618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18619         reversed sense of yes and no in prior patch.  Avoid confusing
18620         compilation failure with desired semantics.
18621
18622         link-follow: accomodate mingw and cross-compilation
18623         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18624         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18625         cross-compilation results to -1, to make linkat easier to
18626         implement when cross-compiling.  Trivially support mingw.
18627         * modules/link-follow (configure.ac): Call new name.
18628         * NEWS: Mention this.
18629
18630 2009-09-03  Eric Blake  <ebb9@byu.net>
18631
18632         faccessat: compile replacement
18633         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18634         needed.
18635
18636         fts: fix compilation error
18637         * lib/fts.c (includes): Re-add "openat.h", for
18638         openat_needs_fchdir.
18639
18640         faccessat: new module
18641         * modules/faccessat: New file.
18642         * lib/faccessat.c: Likewise.
18643         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18645         * modules/unistd (Makefile.am): Use it.
18646         * lib/unistd.in.h (faccessat): Declare it.
18647         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18648         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18649         * MODULES.html.sh (File system functions): Mention it.
18650         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18651         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18652
18653         euidaccess: prefer POSIX over non-standard implementation
18654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18655         * lib/euidaccess.c (euidaccess): Use it if available.
18656
18657         openat: make template easier to use
18658         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18659         AT_FUNC_F2 to be undefined.
18660         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18661         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18662         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18663         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18664         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18665         Likewise.
18666         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18667         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18668         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18669         Likewise.
18670
18671         openat: declare in POSIX headers
18672         * NEWS: Mention this.
18673         * modules/openat (configure.ac): Declare witnesses.
18674         (Depends-on): Add fcntl-h, sys_stat, unistd.
18675         (Include): Mention correct headers.
18676         * modules/fcntl-h (Depends-on): Add link-warning.
18677         (Files): Add openat.m4.
18678         (Makefile.am): Substitute witnesses.
18679         * modules/sys_stat (Files, Makefile.am): Likewise.
18680         * modules/unistd (Files, Makefile.am): Likewise.
18681         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18682         (gl_OPENAT_DEFAULTS): New macro.
18683         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18685         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18686         (SYS_STAT_H): Remove unused variable.
18687         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18688         * lib/fcntl--.h (includes): Remove unneeded header.
18689         * lib/openat-safer.c (includes): Likewise.
18690         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18691         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18692         appropriate headers.
18693         (__OPENAT_PREFIX): Delete.
18694         * lib/fcntl.in.h (openat): Provide declaration.
18695         (AT_FDCWD): Fix Solaris bug.
18696         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18697         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18698         * lib/fchmodat.c (includes):  Adjust to find declaration.
18699         * lib/fchownat.c (includes): Likewise.
18700         * lib/mkdirat.c (includes): Likewise.
18701         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18702         still visible.
18703
18704 2009-09-02  Eric Blake  <ebb9@byu.net>
18705
18706         errno: use consistently
18707         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18708         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18709         * lib/canonicalize.c (ELOOP): Likewise.
18710         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18711         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18712         * lib/lchown.c (EOPNOTSUPP): Likewise.
18713         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18714         * lib/savewd.c (ESTALE): Likewise.
18715         * lib/settime.c (ENOSYS): Likewise.
18716         * lib/utimens.c (ENOSYS): Likewise.
18717         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18718         * lib/chdir-safer.c (ELOOP): Likewise.
18719         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18720         * modules/c-stack (Depends-on): Add errno.
18721         * modules/canonicalize (Depends-on): Likewise.
18722         * modules/chdir-safer (Depends-on): Likewise.
18723         * modules/fdopendir (Depends-on): Likewise.
18724         * modules/inet_ntop (Depends-on): Likewise.
18725         * modules/inet_pton (Depends-on): Likewise.
18726         * modules/lchown (Depends-on): Likewise.
18727         * modules/openat (Depends-on): Likewise.
18728         * modules/savewd (Depends-on): Likewise.
18729         * modules/settime (Depends-on): Likewise.
18730         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18731
18732         fts: avoid leaking fds
18733         * modules/fts (Depends-on): Add cloexec.
18734         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18735         flag.
18736
18737         fts: make directory fds more robust
18738         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18739         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18740
18741         backupfile, chdir-long, fts, savedir: make safer
18742         * lib/backupfile.c (includes): Use "dirent--.h", since
18743         numbered_backup can write to stderr during readdir.
18744         * lib/savedir.c (includes): Likewise.
18745         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18746         emulation can write to stderr on failure.
18747         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18748         * lib/getcwd.c: Document why opendir_safer is unused.
18749         * lib/glob.c: Likewise.
18750         * lib/scandir.c: Likewise.
18751         * lib/openat-proc.c: Likewise, for open_safer.
18752         * modules/backupfile (Depends-on): Add dirent-safer.
18753         * modules/savedir (Depends-on): Likewise.
18754         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18755         * modules/chdir-long (Depends-on): Add openat-safer.
18756
18757         openat-safer: new module
18758         * modules/openat-safer: New file.
18759         * lib/openat-safer.c: Likewise.
18760         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18761         * lib/fcntl-safer.h (openat_safer): Declare.
18762         * lib/fcntl--.h (openat): Override.
18763         * MODULES.html.sh (File descriptor based I/O): Mention it.
18764         * lib/openat.h: Add double-inclusion guards.
18765         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18766         "fcntl--.h", so we can implement openat.
18767         * modules/openat-safer-tests: New test.
18768         * tests/test-openat-safer.c: New file.
18769
18770         dirent-safer: new module
18771         * modules/dirent-safer: New file.
18772         * lib/dirent--.h: Likewise.
18773         * lib/dirent-safer.h: Likewise.
18774         * lib/opendir-safer.c: Likewise.
18775         * m4/dirent-safer.m4: Likewise.
18776         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18777         * modules/dirent-safer-tests: New test.
18778         * tests/test-dirent-safer.c: New file.
18779         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18780
18781         fdopendir: optimize on mingw
18782         * lib/unistd.in.h (_gl_directory_name): New prototype.
18783         * lib/fchdir.c (_gl_directory_name): Implement it.
18784         (fchdir): Use it to simplify implementation.
18785         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18786         fchdir, when available, to avoid calling [f]chdir().
18787
18788         fdopendir: split into its own module
18789         * lib/openat.c (fdopendir): Move...
18790         * lib/fdopendir.c: ...into new file.
18791         * modules/fdopendir: New module.
18792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18793         * modules/openat (Depends-on): Add fdopendir.
18794         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18795         fdopendir here.
18796         * modules/savedir (Depends-on): Only need fdopendir, not full
18797         openat.
18798         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18799         * lib/openat.h (fdopendir): Drop prototype.
18800         * lib/dirent.in.h (fdopendir): Provide prototype.
18801         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18802         * modules/dirent (Makefile.am): Substitute them.
18803         * MODULES.html.sh (File system functions): Mention it.
18804         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18805         * modules/fdopendir-tests: New file.
18806         * tests/test-fdopendir.c: Likewise.
18807
18808         fchdir: use more consistent macro convention
18809         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18810         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18811         REPLACE_FCHDIR, rather than relying on config.h macros.
18812         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18813         inside a single make-time REPLACE_FCHDIR block, rather than using
18814         the config.h FCHDIR_REPLACEMENT.
18815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18816         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18817         Manage fstat replacement.
18818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18819         REPLACE_FCHDIR.
18820         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18821         (Makefile.am): Substitute REPLACE_FCHDIR.
18822         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18823         FCHDIR_REPLACEMENT.
18824         * lib/dup-safer.c (dup_safer): Likewise.
18825         * lib/dup2.c (rpl_dup2): Likewise.
18826         * lib/dup3.c (rpl_dup3): Likewise.
18827         * lib/open.c (rpl_open): Likewise.
18828
18829         fchdir: simplify error handling, and support dup3
18830         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18831         stdbool, malloc-posix, realloc-posix.
18832         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18833         (ensure_dirs_slot): Return false on allocation failure.
18834         (rpl_dup2): Delete.
18835         (_gl_register_dup): New function.
18836         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18837         (_gl_register_fd): Close fd on allocation failure.
18838         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18839         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18840         prototype.
18841         (rpl_dup2_fchdir): Delete prototype.
18842         * lib/open.c (open): Update caller.
18843         * lib/dup2.c (dup2): Track fchdir metadata.
18844         * lib/dup3.c (dup3): Likewise.
18845         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18847
18848 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18849
18850         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18851         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18852         don't pass arguments to AC_OUTPUT.
18853
18854 2009-09-02  Bruno Haible  <bruno@clisp.org>
18855
18856         * modules/mkdtemp (License): Relicense under LGPLv2+.
18857         Reported by Paolo Bonzini.
18858
18859 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18860
18861         Replace uses of obsolete autoconf macros in Jim's modules.
18862         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18863         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18864         can evoke a warning from autoconf when run with -Wobsolete
18865         enabled.  They were declared obsolete for good reasons (see
18866         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18867         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18868         should not continue using the deprecated macros.
18869         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18870         obsolete Autoconf macros with modern counterparts.
18871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18872         * m4/dos.m4 (gl_AC_DOS): Likewise.
18873         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18875         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18876         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18877         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18878         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18879         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18880         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18881         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18882         Likewise.
18883         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18884         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18885         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18886         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18887         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18888         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18889
18890 2009-09-01  Eric Blake  <ebb9@byu.net>
18891
18892         fchdir: fix off-by-one bug in previous patch
18893         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18894         (_gl_unregister_fd): Delete useless if.
18895
18896 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18897
18898         maint.mk: sort the list of syntax-check rules
18899         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18900         easier to get a sense of progress when the rules are run sequentially
18901         and take a long time.
18902
18903 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18904
18905         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18906         * modules/netinet_in: Likewise.
18907         * modules/sys_file: Likewise.
18908         * modules/sys_ioctl: Likewise.
18909         * modules/sys_select: Likewise.
18910         * modules/sys_socket: Likewise.
18911         * modules/sys_stat: Likewise.
18912         * modules/sys_time: Likewise.
18913         * modules/sys_times: Likewise.
18914         * modules/sys_utsname: Likewise.
18915         * modules/sys_wait: Likewise.
18916
18917 2009-09-01  Jim Meyering  <meyering@redhat.com>
18918
18919         fts: help ensure that return values are not ignored
18920         * lib/fts_.h (__GNUC_PREREQ): Define.
18921         (__attribute_warn_unused_result__): Define.
18922         (fts_children, fts_close, fts_open, fts_read): Declare with
18923         __attribute_warn_unused_result__.
18924
18925         fts: fts_close now fails also when closing a dir file descriptor fails
18926         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18927         and propagate to caller, along with errno.
18928
18929         announce-gen: correct formatting in --help output
18930         * build-aux/announce-gen (usage): Move the one-line description in
18931         --help output "up", to where it belongs, just after Usage:.
18932
18933 2009-08-31  Eric Blake  <ebb9@byu.net>
18934
18935         fchdir: port to mingw
18936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18937         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18938         opened, then use a substitute.
18939         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18940         replacement.
18941         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18942         (_gl_register_fd): No need to check stat if open already filters
18943         all directories.
18944         (fchdir): Fix error condition to match POSIX.
18945         * modules/fchdir (Depends-on): Add sys_stat.
18946         * doc/posix-functions/open.texi (open): Document the limitation.
18947         * modules/fchdir-tests: New file.
18948         * tests/test-fchdir.c: Likewise.
18949
18950         canonicalize: allow cross-testing from cygwin to mingw
18951         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18952         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18953         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18954         Likewise.
18955         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18956         target does not support symlinks.
18957         * tests/test-canonicalize-lgpl.sh: Likewise.
18958
18959         chown: avoid compilation warning on mingw
18960         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18961         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18962         mingw.
18963         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18964         * modules/chown (Depends-on): Add errno.
18965
18966 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18967
18968         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18969         command.
18970
18971 2009-08-31  Jim Meyering  <meyering@redhat.com>
18972
18973         canonicalize: remove useless initialization
18974         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18975         initialization of local, "end".
18976
18977 2009-08-30  Bruno Haible  <bruno@clisp.org>
18978
18979         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18980         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18981         ENOSYS.
18982
18983 2009-08-30  Bruno Haible  <bruno@clisp.org>
18984
18985         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18986         /usr/xpg4/bin/tr when it exists.
18987         * tests/test-pipe-filter-gi1.sh: Likewise.
18988
18989 2009-08-30  Bruno Haible  <bruno@clisp.org>
18990
18991         Work around deficient /usr/bin/id program on Solaris.
18992         * tests/test-file-has-acl.sh (ID): New variable.
18993         * tests/test-set-mode-acl.sh (ID): Likewise.
18994         * tests/test-copy-acl.sh (ID): Likewise.
18995         * tests/test-copy-file.sh (ID): Likewise.
18996
18997 2009-08-30  Bruno Haible  <bruno@clisp.org>
18998
18999         New module 'xstriconveh'.
19000         * lib/xstriconveh.h: New file.
19001         * lib/xstriconveh.c: New file.
19002         * modules/xstriconveh: New file.
19003
19004 2009-08-30  Bruno Haible  <bruno@clisp.org>
19005
19006         Make it easier to use mem_cd_iconveh.
19007         * lib/striconveh.h (iconveh_t): New type.
19008         (iconveh_open, iconveh_close): New declarations.
19009         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19010         with a single 'const iconveh_t *' argument.
19011         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19012         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19013         with a single 'const iconveh_t *' argument.
19014         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19015         * tests/test-striconveh.c (main): Update.
19016         * NEWS: Mention the change.
19017
19018 2009-08-30  Bruno Haible  <bruno@clisp.org>
19019
19020         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19021         problem.
19022
19023 2009-08-30  Bruno Haible  <bruno@clisp.org>
19024
19025         Work around iconv_open problem on Solaris.
19026         * lib/iconv_open-solaris.gperf: New file.
19027         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19029         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19030         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19031         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19032         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19033
19034 2009-08-29  Jim Meyering  <meyering@redhat.com>
19035
19036         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19037         * top/maint.mk (cvs-check): Remove target; it was just an alias
19038         to the better-named vc-diff-check.
19039         (maintainer-distcheck): Remove rule.  It was used only from
19040         the (alpha/beta/major) target, and all of its commands but one
19041         were coreutils-specific.
19042         (vc-dist): Remove rule.
19043         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19044         Run vc-diff-check, not vc-dist.
19045         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19046
19047 2009-08-27  Bruno Haible  <bruno@clisp.org>
19048
19049         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19050         of 0.
19051
19052 2009-08-27  Bruno Haible  <bruno@clisp.org>
19053
19054         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19055         compilers.
19056         * doc/func.texi: Document the SunPRO C bug.
19057
19058 2009-08-27  Bruno Haible  <bruno@clisp.org>
19059
19060         Fix link error on Solaris.
19061         * tests/test-parse-duration.c (xstrdup): Remove function.
19062
19063 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19064
19065         ignore-value: handle pointer types, too
19066         * lib/ignore-value.h (__attribute__): Remove definition.
19067         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19068         of a more concise and more-often effective "(void) i" statement.
19069         (ignore_ptr): New function to suppress warnings from functions that
19070         return pointers, and to make it explicit that one function doesn't
19071         handle all cases.
19072
19073 2009-08-25  Bruno Haible  <bruno@clisp.org>
19074
19075         dup2: work around a Linux bug.
19076         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19077         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19078         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19079         Reported by Simon Josefsson.
19080
19081 2009-08-25  Jim Meyering  <meyering@redhat.com>
19082
19083         libguestfs uses gnulib
19084         * users.txt: Add libguestfs.
19085
19086 2009-08-24  Eric Blake  <ebb9@byu.net>
19087
19088         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19089         * lib/pipe2.c (includes): Add binary-io.h.
19090         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19091
19092 2009-08-24  Bruno Haible  <bruno@clisp.org>
19093
19094         Tolerate declared but missing accept4 syscall.
19095         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19096         available.
19097         * lib/sys_socket.in.h (accept4): If the function is already present,
19098         override it.
19099         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19100         * modules/accept4 (Makefile.am): Compile accept4.c always.
19101         Reported by Paolo Bonzini and Eric Blake.
19102
19103 2009-08-23  Bruno Haible  <bruno@clisp.org>
19104
19105         New module 'accept4'.
19106         * lib/sys_socket.in.h (accept4): New declaration.
19107         * lib/accept4.c: New file.
19108         * m4/accept4.m4: New file.
19109         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19110         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19111         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19112         HAVE_ACCEPT4.
19113         * modules/accept4: New file.
19114         * doc/glibc-functions/accept4.texi: Mention the new module.
19115
19116 2009-08-24  Jim Meyering  <meyering@redhat.com>
19117
19118         progname: also set global program_invocation_name, when possible
19119         Before this change, a libtool-enabled program that calls glibc's
19120         error function would report the program name as
19121         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19122         * modules/progname (configure.ac): Check for a declaration of
19123         program_invocation_name.
19124         * lib/progname.c:  Include <errno.h>.
19125         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19126         Set program_invocation_name.
19127
19128 2009-08-23  Bruno Haible  <bruno@clisp.org>
19129
19130         * lib/dup3.c: Include <string.h>.
19131
19132 2009-08-23  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19135         * lib/pipe2.c (pipe2): Likewise.
19136         Suggested by Eric Blake.
19137
19138 2009-08-23  Bruno Haible  <bruno@clisp.org>
19139
19140         Tolerate declared but missing dup3 syscall.
19141         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19142         * lib/unistd.in.h (dup3): If the function is already present,
19143         override it.
19144         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19145         * modules/dup3 (Makefile.am): Compile dup3.c always.
19146         Reported by Paolo Bonzini.
19147
19148 2009-08-23  Bruno Haible  <bruno@clisp.org>
19149
19150         Tolerate declared but missing pipe2 syscall.
19151         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19152         available.
19153         * lib/unistd.in.h (pipe2): If the function is already present,
19154         override it.
19155         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19156         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19157         Reported by Paolo Bonzini.
19158
19159 2009-08-23  Bruno Haible  <bruno@clisp.org>
19160
19161         * lib/pipe2.c (pipe2): Move #ifs inside function.
19162
19163 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19164
19165         quotearg: document limitations of quote_these_too
19166         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19167         those limitations are created.
19168         * lib/quotearg.h (set_char_quoting): Document that digits and
19169         letters that are special after backslash are not permitted.
19170         (quotearg_char): Cross-reference set_char_quoting documentation.
19171
19172 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19173
19174         quotearg: implement custom_quoting_style
19175         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19176         right_quote fields.
19177         (set_custom_quoting): New public function.
19178         (quotearg_buffer_restyled): Add left_quote and right_quote
19179         arguments, handle them very much like locale quoting, and update
19180         all uses.
19181         (quotearg_n_custom): New public function.
19182         (quotearg_n_custom_mem): New public function.
19183         (quotearg_custom): New public function.
19184         (quotearg_custom_mem): New public function.
19185         * lib/quotearg.h: Prototype and document new public functions.
19186         (enum quoting_style): For escape_quoting_style and
19187         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19188         ignored even though they're otherwise like c_quoting_style.
19189         Add custom_quoting_style member and document with comparison to
19190         clocale_quoting_style.
19191         * tests/test-quotearg.c (custom_quotes): New array.
19192         (custom_results): New array.
19193         (main): Extend to test custom quoting.
19194
19195 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19196
19197         quotearg: fix right quote escaping when it's in quote_these_too
19198         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19199         quote, be sure to prepend only one backslash.
19200         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19201         (main): Test it.
19202
19203 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19204
19205         quotearg-tests: test escaping of embedded locale quotes
19206         * tests/test-quotearg.c (struct result_strings): Add member for
19207         new input.
19208         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19209         (inputs): Add new input.
19210         (results_g): Add expected results.
19211         (flag_results): Likewise.
19212         (locale_results): Likewise.
19213         (compare_strings): Check those.
19214
19215 2009-08-23  Bruno Haible  <bruno@clisp.org>
19216
19217         Tests for module 'dup3'.
19218         * modules/dup3-tests: New file.
19219         * tests/test-dup3.c: New file.
19220
19221         New module 'dup3'.
19222         * lib/unistd.in.h (dup3): New declaration.
19223         * lib/dup3.c: New file.
19224         * m4/dup3.m4: New file.
19225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19226         HAVE_DUP3.
19227         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19228         * modules/dup3: New file.
19229         * doc/glibc-functions/dup3.texi: Mention the new module.
19230
19231 2009-08-23  Bruno Haible  <bruno@clisp.org>
19232
19233         Tweak the dup2 test.
19234         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19235         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19236         the test file is still empty. Fix argument order of lseek.
19237
19238 2009-08-23  Bruno Haible  <bruno@clisp.org>
19239
19240         Avoid test link errors when the modules getopt-gnu, gettext are used.
19241         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19243
19244 2009-08-23  Bruno Haible  <bruno@clisp.org>
19245
19246         Fix getdtablesize() on mingw.
19247         * lib/getdtablesize.c (getdtablesize): Implement differently.
19248         * lib/unistd.in.h (getdtablesize): Improve comment.
19249
19250 2009-08-23  Bruno Haible  <bruno@clisp.org>
19251
19252         New module 'mkostemp'.
19253         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19254         * lib/stdlib.in.h (mksotemp): New declaration.
19255         * lib/mkostemp.c: New file, from glibc with modifications.
19256         * lib/tempname.h (GT_FILE): Remove outdated comment.
19257         (gen_tempname): Add flags argument.
19258         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19259         (__GT_FILE): Map to 1.
19260         (small_open, large_open): Remove macros.
19261         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19262         * lib/mkstemp.c (mkstemp): Update.
19263         * lib/mkdtemp.c (mkdtemp): Likewise.
19264         * m4/mkostemp.m4: New file.
19265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19266         HAVE_MKOSTEMP.
19267         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19268         HAVE_MKOSTEMP.
19269         * modules/mkostemp: New file, based on modules/mkstemp.
19270         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19271         * NEWS: Mention the change.
19272
19273 2009-08-23  Bruno Haible  <bruno@clisp.org>
19274
19275         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19276         Reported by Eric Blake.
19277
19278 2009-08-23  Bruno Haible  <bruno@clisp.org>
19279
19280         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19281         Reported by Eric Blake.
19282
19283 2009-08-23  Bruno Haible  <bruno@clisp.org>
19284
19285         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19286         * modules/pipe2 (Depends-on): Likewise.
19287
19288 2009-08-23  Eric Blake  <ebb9@byu.net>
19289
19290         fcntl-h: add O_TTY_INIT support
19291         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19292         * tests/test-fcntl-h.c (o): Test it.
19293         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19294
19295         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19296         * modules/fcntl: Move <fcntl.h> header replacement...
19297         * modules/fcntl-h: ...to new name, so as not to collide with
19298         like-named function.
19299         * tests/test-fcntl.c: Rename...
19300         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19301         * modules/fcntl-tests: Rename...
19302         * modules/fcntl-h-tests: ...to this.  Update test file name.
19303         * modules/chdir-long (Depends-on): Update clients.
19304         * modules/chdir-safer (Depends-on): Likewise.
19305         * modules/fcntl-safer (Depends-on): Likewise.
19306         * modules/fts (Depends-on): Likewise.
19307         * modules/mkancesdirs (Depends-on): Likewise.
19308         * modules/mkdir-p (Depends-on): Likewise.
19309         * modules/open (Depends-on): Likewise.
19310         * modules/savewd (Depends-on): Likewise.
19311         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19312         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19313
19314 2009-08-22  Bruno Haible  <bruno@clisp.org>
19315
19316         * modules/binary-io (License): Relicense under LGPL.
19317         * modules/pipe2 (License): Likewise.
19318
19319 2009-08-22  Bruno Haible  <bruno@clisp.org>
19320
19321         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19322         return value.
19323         * lib/pipe-filter-gi.c (filter_init): Likewise.
19324         Reported by Eric Blake.
19325
19326 2009-08-22  Bruno Haible  <bruno@clisp.org>
19327
19328         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19329         * modules/pipe (Depends-on): Add pipe2.
19330
19331 2009-08-22  Bruno Haible  <bruno@clisp.org>
19332
19333         Tests for module 'pipe2'.
19334         * modules/pipe2-tests: New file.
19335         * tests/test-pipe2.c: New file.
19336
19337         New module 'pipe2'.
19338         * lib/unistd.in.h (pipe2): New declaration.
19339         * lib/pipe2.c: New file.
19340         * m4/pipe2.m4: New file.
19341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19342         HAVE_PIPE2.
19343         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19344         * modules/pipe2: New file.
19345         * doc/glibc-functions/pipe2.texi: Mention the new module.
19346
19347 2009-08-22  Bruno Haible  <bruno@clisp.org>
19348
19349         Reference some new glibc functions.
19350         * doc/glibc-functions/accept4.texi: New file.
19351         * doc/glibc-functions/dup3.texi: New file.
19352         * doc/glibc-functions/mkostemp.texi: New file.
19353         * doc/glibc-functions/pipe2.texi: New file.
19354         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19355         (Glibc sys/socket.h): Refer to accept4.
19356         (Glibc unistd.h): Refer to dup3, pipe2.
19357         Reported by Eric Blake.
19358
19359 2009-08-22  Jim Meyering  <meyering@redhat.com>
19360             Bruno Haible  <bruno@clisp.org>
19361
19362         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19363         This makes it so packages using automake-1.11's silent-rules option
19364         can print e.g., a single "GEN    configmake.h" line, rather than
19365         the 30+ statements that perform the job.  If you want to see the
19366         actual commands, you can still run "make V=1".
19367         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19368         so that make output is abbreviated when those variables are defined
19369         appropriately.
19370         * modules/argz: Likewise.
19371         * modules/arpa_inet: Likewise.
19372         * modules/byteswap: Likewise.
19373         * modules/configmake: Likewise.
19374         * modules/dirent: Likewise.
19375         * modules/errno: Likewise.
19376         * modules/fcntl: Likewise.
19377         * modules/float: Likewise.
19378         * modules/fnmatch: Likewise.
19379         * modules/getopt-posix: Likewise.
19380         * modules/glob: Likewise.
19381         * modules/iconv_open: Likewise.
19382         * modules/inttypes: Likewise.
19383         * modules/localcharset: Likewise.
19384         * modules/locale: Likewise.
19385         * modules/math: Likewise.
19386         * modules/netdb: Likewise.
19387         * modules/netinet_in: Likewise.
19388         * modules/poll: Likewise.
19389         * modules/posix_spawnp-tests: Likewise.
19390         * modules/sched: Likewise.
19391         * modules/search: Likewise.
19392         * modules/selinux-h: Likewise.
19393         * modules/signal: Likewise.
19394         * modules/spawn: Likewise.
19395         * modules/stdarg: Likewise.
19396         * modules/stdbool: Likewise.
19397         * modules/stddef: Likewise.
19398         * modules/stdint: Likewise.
19399         * modules/stdio: Likewise.
19400         * modules/stdlib: Likewise.
19401         * modules/string: Likewise.
19402         * modules/strings: Likewise.
19403         * modules/sys_file: Likewise.
19404         * modules/sys_ioctl: Likewise.
19405         * modules/sys_select: Likewise.
19406         * modules/sys_socket: Likewise.
19407         * modules/sys_stat: Likewise.
19408         * modules/sys_time: Likewise.
19409         * modules/sys_times: Likewise.
19410         * modules/sys_utsname: Likewise.
19411         * modules/sys_wait: Likewise.
19412         * modules/sysexits: Likewise.
19413         * modules/time: Likewise.
19414         * modules/unistd: Likewise.
19415         * modules/wchar: Likewise.
19416         * modules/wctype: Likewise.
19417
19418 2009-08-22  Jim Meyering  <meyering@redhat.com>
19419
19420         announce-gen: detect write failure
19421         * build-aux/announce-gen: Add Coda at end.
19422         Remove equivalent-but-more-verbose block at top.
19423
19424 2009-08-19  Akim Demaille  <demaille@gostai.com>
19425
19426         bootstrap: --help to stdout.
19427         * bootstrap (usage): Don't send --help to stderr.
19428         Use a here doc instead of a long string.
19429
19430 2009-08-21  Eric Blake  <ebb9@byu.net>
19431
19432         test-popen-safer: split from test-popen
19433         * tests/test-popen.c (main): Move...
19434         * tests/test-popen.h: ...into new file.
19435         * tests/test-popen-safer2.c: New file.
19436         * modules/popen-tests (Files): Add test-popen.h.
19437         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19438         Suggested by Bruno Haible.
19439
19440         test-fcntl-safer: split from test-open
19441         * tests/test-open.c (main): Move...
19442         * tests/test-open.h: ...into new file.
19443         * tests/test-fcntl-safer.c: New file.
19444         * modules/open-tests (Files): Add test-open.h.
19445         * modules/fcntl-safer-tests: New file.
19446         Suggested by Bruno Haible.
19447
19448         test-fopen-safer: split from test-fopen
19449         * tests/test-fopen.c (main): Move...
19450         * tests/test-fopen.h: ...into new file.
19451         * tests/test-fopen-safer.c: New file.
19452         * modules/fopen-tests (Files): Add test-fopen.h.
19453         * modules/fopen-safer-tests: New file.
19454         Suggested by Bruno Haible.
19455
19456 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19457
19458         popen-safer: test O_CLOEXEC at run-time.
19459         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19460
19461 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19462
19463         fcntl: move more flags to the header
19464         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19465         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19466         * lib/fcntl.in.h: Do both things here.
19467
19468 2009-08-21  Jim Meyering  <meyering@redhat.com>
19469
19470         consistently remove $@-t before redirecting to it
19471         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19472         * modules/alloca-opt: Likewise.
19473         * modules/byteswap: Likewise.
19474         * modules/fnmatch: Likewise.
19475         * modules/getopt-posix: Likewise.
19476         * modules/glob: Likewise.
19477         * modules/poll: Likewise.
19478         * modules/posix_spawnp-tests: Likewise.
19479         * modules/sys_socket: Likewise.
19480         * modules/sysexits: Likewise.
19481
19482 2009-08-21  Eric Blake  <ebb9@byu.net>
19483
19484         popen: simplify access to original popen
19485         * lib/popen.c (rpl_popen): No need to worry about popen being a
19486         macro.
19487         Reported by Bruno Haible.
19488
19489 2009-08-20  Eric Blake  <ebb9@byu.net>
19490
19491         build: avoid some compiler warnings
19492         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19493         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19494         type.
19495         (new_exclude_segment, excluded_file_pattern_p)
19496         (excluded_file_name_p): Reduce scope.
19497         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19498         old-style declaration.
19499
19500 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19501
19502         * tests/test-exclude1.sh: Handle Windows EOL.
19503         * tests/test-exclude2.sh: Likewise.
19504         * tests/test-exclude3.sh: Likewise.
19505         * tests/test-exclude4.sh: Likewise.
19506         * tests/test-exclude5.sh: Likewise.
19507         * tests/test-exclude6.sh: Likewise.
19508         * tests/test-exclude7.sh: Likewise.
19509
19510 2009-08-19  Akim Demaille  <demaille@gostai.com>
19511
19512         bootstrap: find sha1sum when named gsha1sum.
19513         * bootstrap (find_tool): New.
19514         ($SHA1SUM): New.
19515         Use it.
19516
19517 2009-08-20  Jim Meyering  <meyering@redhat.com>
19518
19519         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19520         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19521         expression that converts "." in a file name to "\." in the resulting
19522         regexp.  Start with a dummy statement, so that prior shell variable
19523         definitions are expanded portably.  Reported by Simon Josefsson.
19524
19525 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19526
19527         Fix polling for writeability of a screen buffer.
19528         * lib/poll.c: Distinguish input and screen buffers for the
19529         Win32 implementation.
19530         * lib/select.c: Likewise.
19531
19532 2009-08-19  Eric Blake  <ebb9@byu.net>
19533
19534         popen-safer: prevent popen from clobbering std descriptors
19535         * modules/popen-safer: New file.
19536         * lib/popen-safer.c: Likewise.
19537         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19538         * lib/stdio--.h (popen): Provide override.
19539         * lib/stdio-safer.h (popen_safer): Provide declaration.
19540         * tests/test-popen.c (includes): Partially test this.
19541         * modules/popen-safer-tests: New file, for more tests.
19542         * tests/test-popen-safer.c: Likewise.
19543         * MODULES.html.sh (file stream based Input/Output): Mention it.
19544
19545         tests: test some of the *-safer modules
19546         * modules/fopen-safer (Depends-on): Add fopen.
19547         * modules/fcntl-safer (Depends-on): Add fcntl.
19548         * modules/stdlib-safer (Depends-on): Add stdlib.
19549         (configure.ac): Set indicator.
19550         * modules/unistd-safer (configure.ac): Likewise.
19551         * modules/tmpfile-safer (configure.ac): Likewise.
19552         (Depends-on): Add tmpfile.
19553         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19554         active.
19555         * tests/test-fopen.c (includes): Test safer versions when they are
19556         in use.
19557         * tests/test-open.c (includes): Likewise.
19558
19559         popen: fix cygwin 1.5 bug when stdin closed
19560         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19561         * modules/popen: New file.
19562         * modules/popen-tests: Likewise.
19563         * tests/test-popen.c: Likewise.
19564         * m4/popen.m4: Likewise.
19565         * lib/popen.c: Likewise.
19566         * lib/stdio.in.h (popen): New declaration.
19567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19568         * modules/stdio (Makefile.am): Likewise.
19569         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19570
19571 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19572
19573         maint.mk: give full control over update-copyright exclusions
19574         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19575         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19576         (update-copyright): Don't force inclusion of top-level
19577         ChangeLog.  Don't force exclusion of all COPYING files, but make
19578         them the default exclusion instead.
19579
19580 2009-08-16  Bruno Haible  <bruno@clisp.org>
19581
19582         Fix test failures on Solaris 10.
19583         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19584         tests when Solaris iconv() is used.
19585         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19586         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19587         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19588         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19589         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19590
19591 2009-08-16  Bruno Haible  <bruno@clisp.org>
19592
19593         Fix test failures on Solaris 10.
19594         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19595         'tr' program and pass it as first argument.
19596         * tests/test-pipe-filter-gi1.sh: Likewise.
19597         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19598         program as first argument.
19599         * tests/test-pipe-filter-gi1.c (main): Likewise.
19600
19601 2009-08-16  Eric Blake  <ebb9@byu.net>
19602
19603         fpurge: fix previous commits
19604         * modules/fpurge (Makefile.am): Make replacement conditional,
19605         partially reverting 2007-04-29 change; missed in previous
19606         attempt.
19607         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19608         is missing.
19609
19610 2009-08-16  Bruno Haible  <bruno@clisp.org>
19611
19612         Clarify fpurge's effect on the file position.
19613         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19614         * tests/test-fpurge.c (main): Make a second pass for checking the file
19615         position.
19616
19617 2009-08-16  Bruno Haible  <bruno@clisp.org>
19618
19619         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19620         declaration of fpurge is missing.
19621         * tests/test-fpurge.c (main): Check that the file has not more contents
19622         than expected. Close the file before removing it.
19623
19624 2009-08-15  Eric Blake  <ebb9@byu.net>
19625
19626         fpurge: don't wrap working cygwin implementation
19627         * lib/fpurge.c (fpurge): Fix comment typo.
19628         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19629         1.7 to avoid replacement.
19630         * tests/test-fpurge.c (main): Enhance test.
19631
19632 2009-08-15  Eric Blake  <ebb9@byu.net>
19633         and Jim Meyering  <meyering@redhat.com>
19634
19635         test-update-copyright: skip if perl is insufficient
19636         * tests/test-update-copyright.sh: Failure to run maintainer tool
19637         should not cause testsuite failure on cygwin 1.5.
19638
19639 2009-08-14  Eric Blake  <ebb9@byu.net>
19640
19641         doc: mention more functions added in cygwin 1.7.0
19642         * doc/posix-headers/limits.texi (limits.h): Update for recent
19643         cygwin additions.
19644         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19645         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19646         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19647         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19648         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19649
19650 2009-08-14  Eric Blake  <ebb9@byu.net>
19651
19652         maint.mk: simplify update-copyright rule
19653         * top/maint.mk (update-copyright-local): Delete, and document how
19654         to do it in cfg.mk instead.
19655         (update-copyright-exclude-regexp): Delete, and document how to do
19656         it in .x-update-copyright instead.
19657         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19658         exclude ChangeLog.
19659
19660 2009-08-14  Bruno Haible  <bruno@clisp.org>
19661
19662         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19663
19664 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19665
19666         maint.mk: support update-copyright-env
19667         * top/maint.mk (update-copyright-env): Define place-holder.
19668         (update-copyright): Expand $(update-copyright-env) before
19669         invoking update-copyright.
19670
19671 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19672
19673         update-copyright: implement forced reformatting
19674         * build-aux/update-copyright: Implement and document
19675         UPDATE_COPYRIGHT_FORCE.
19676         * tests/test-update-copyright.sh: Test it.
19677
19678 2009-08-14  Eric Blake  <ebb9@byu.net>
19679         and Bruno Haible  <bruno@clisp.org>
19680
19681         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19682         * tests/test-locale.c: Revert previous patch related to NULL.
19683         * tests/test-stdio.c: Likewise.
19684         * tests/test-stdlib.c: Likewise.
19685         * tests/test-string.c: Likewise.
19686         * tests/test-unistd.c: Likewise.
19687         * modules/time-tests (Depends-on): Add verify.
19688         * modules/wchar-tests (Depends-on): Likewise.
19689         * tests/test-time.c: Test for NULL compliance.
19690         * tests/test-wchar.c: Likewise.
19691         * modules/locale (Depends-on): Add stddef.
19692         * modules/stdio (Depends-on): Likewise.
19693         * modules/stdlib (Depends-on): Likewise.
19694         * modules/string (Depends-on): Likewise.
19695         * modules/time (Depends-on): Likewise.
19696         * modules/unistd (Depends-on): Likewise.
19697         * modules/wchar (Depends-on): Likewise.
19698         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19699         * lib/stdlib.in.h (includes): Likewise.
19700         * lib/string.in.h (includes): Likewise.
19701         * lib/time.in.h (includes): Likewise.
19702         * lib/unistd.in.h (includes): Likewise.
19703         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19704         replaced.
19705         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19706         * m4/stddef_h.m4: New file.
19707         * modules/stddef: Likewise.
19708         * lib/stddef.in.h: Likewise.
19709         * modules/stddef-tests: Likewise.
19710         * tests/test-stddef.c: Likewise.
19711         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19712         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19713         * doc/posix-headers/locale.texi (locale.h): Likewise.
19714         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19715         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19716         * doc/posix-headers/string.texi (string.h): Likewise.
19717         * doc/posix-headers/time.texi (time.h): Likewise.
19718         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19719         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19720
19721 2009-08-14  Eric Blake  <ebb9@byu.net>
19722
19723         doc: improve git diff of texinfo files
19724         * .gitattributes: Add rule for *.texi files, with hint on how to
19725         use it.
19726         Copied from m4, and based on a report by Bruno Haible.
19727
19728 2009-08-14  Bruno Haible  <bruno@clisp.org>
19729
19730         Disable multithread support by default on Cygwin 1.5.x for real.
19731         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19732
19733 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19734
19735         update-copyright: much ado about intervals
19736         * build-aux/update-copyright: Implement and document
19737         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19738         of copyright year intervals.
19739         Also, document UPDATE_COPYRIGHT_YEAR.
19740         * tests/test-update-copyright.sh: Test it.
19741
19742         update-copyright: convert 2-digit to 4-digit years
19743         * build-aux/update-copyright: Implement and document.
19744         * tests/test-update-copyright.sh: Update.
19745
19746 2009-08-14  Jim Meyering  <meyering@redhat.com>
19747
19748         test-exclude: avoid coreutils "make check" failure
19749         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19750         just as in test-argmatch.c.
19751
19752 2009-08-13  Eric Blake  <ebb9@byu.net>
19753
19754         test-dup2: fix bad assumption
19755         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19756         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19757
19758         test-version-etc: fix CRLF portability issue
19759         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19760         recognize \r.
19761         * tests/test-argp-version-etc-1.sh: Likewise.
19762
19763         getopt: update client modules
19764         * modules/argp (Depends-on): Use getopt-gnu.
19765         * modules/git-merge-changelog (Depends-on): Likewise.
19766         * modules/long-options (Depends-on): Likewise.
19767         * modules/xstrtol (Depends-on): Likewise.
19768
19769 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19770
19771         * tests/test-version-etc.sh: Don't fail on different
19772         project/version.  Don't fail on CRLF differences.  Rewrite to use
19773         multiple -e instead of multiple sed forks, suggested by Eric Blake
19774         <ebb9@byu.net>.
19775         * tests/test-argp-version-etc-1.sh: Likewise.
19776
19777 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19778
19779         * tests/test-version-etc.sh: Don't fail on different
19780         project/version.
19781
19782 2009-08-12  Bruno Haible  <bruno@clisp.org>
19783
19784         Tests for modules 'getopt-posix', 'getopt-gnu'.
19785         * modules/getopt-posix-tests: New file.
19786         * tests/test-getopt.c: New file.
19787         * tests/test-getopt.h: New file.
19788         * tests/test-getopt_long.h: New file.
19789
19790         New modules 'getopt-posix', 'getopt-gnu'.
19791         * modules/getopt-gnu: New file, renamed from modules/getopt.
19792         * modules/getopt-posix: New file.
19793         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19794         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19795         (gl_GETOPT): Remove macro.
19796         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19797         Disable the test against BSD systems that declare optreset. Test
19798         against mingw bug. Test against lack of support of optional arguments
19799         on many platforms.
19800         * doc/glibc-headers/getopt.texi: Update module name and list of
19801         relevant platforms.
19802         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19803         'getopt-gnu' and more portability problems.
19804         * NEWS: Mention the changes.
19805
19806 2009-08-12  Bruno Haible  <bruno@clisp.org>
19807
19808         Ensure that optarg etc. get declared by <unistd.h>.
19809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19810         AC_USE_SYSTEM_EXTENSIONS.
19811         * modules/getopt (Depends-on): Add 'extensions'.
19812
19813 2009-08-12  Bruno Haible  <bruno@clisp.org>
19814
19815         Avoid test link errors.
19816         * modules/pipe-filter-ii-tests (Makefile.am): Define
19817         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19818         * modules/pipe-filter-gi-tests (Makefile.am): Define
19819         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19821
19822 2009-08-12  Bruno Haible  <bruno@clisp.org>
19823
19824         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19825         gl_GETOPT_SUBSTITUTE before.
19826         (gl_GETOPT): Use it.
19827         * m4/argp.m4 (gl_ARGP): Update.
19828         Reported by Sergey Poznyakoff.
19829
19830         * m4/getopt.m4: Reorder macros.
19831         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19832         (gl_GETOPT_SUBSTITUTE): Remove macro.
19833
19834 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19835
19836         Minor improvement in gitlog-to-changelog
19837
19838         * build-aux/gitlog-to-changelog: New option `--format' makes
19839         output format string configurable.
19840
19841 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19842
19843         Optimize exclude: use hash tables for non-wildcard patterns.
19844
19845         * lib/exclude.c: Include hash.h and mbuiter.h
19846         (struct exclude_pattern, exclude_segment): New data types.
19847         (struct exclude): Rewrite.
19848         (fnmatch_pattern_has_wildcards): New function.
19849         (new_exclude_segment, free_exclude_segment): New functions.
19850         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19851         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19852         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19853         * modules/exclude: Depend on hash and mbuiter.
19854
19855         * modules/exclude-tests: New file.
19856         * tests/test-exclude.c: New file.
19857         * tests/test-exclude1.sh: New file.
19858         * tests/test-exclude2.sh: New file.
19859         * tests/test-exclude3.sh: New file.
19860         * tests/test-exclude4.sh: New file.
19861         * tests/test-exclude5.sh: New file.
19862         * tests/test-exclude6.sh: New file.
19863         * tests/test-exclude7.sh: New file.
19864
19865 2009-08-12  Bruno Haible  <bruno@clisp.org>
19866
19867         Ensure that getopt() gets declared by <unistd.h>.
19868         * lib/unistd.in.h: Conditionally include getopt.h.
19869         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19870         Set GNULIB_UNISTD_H_GETOPT.
19871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19872         GNULIB_UNISTD_H_GETOPT.
19873         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19874
19875 2009-08-12  Bruno Haible  <bruno@clisp.org>
19876
19877         Clarify logic.
19878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19879         gl_replace_getopt instead of GETOPT_H.
19880
19881 2009-08-12  Bruno Haible  <bruno@clisp.org>
19882
19883         * m4/getopt.m4: Add comments.
19884
19885 2009-08-12  Bruno Haible  <bruno@clisp.org>
19886
19887         Disable multithread support by default on Cygwin 1.5.x.
19888         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19889         set gl_use_threads=no if not specified otherwise.
19890
19891 2009-08-11  Bruno Haible  <bruno@clisp.org>
19892
19893         Avoid compilation error on NetBSD 5.0.
19894         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19895         * tests/test-stdio.c: Likewise.
19896         * tests/test-stdlib.c: Likewise.
19897         * tests/test-string.c: Likewise.
19898         * tests/test-unistd.c: Likewise.
19899         Reported by Greg Troxel <gdt@ir.bbn.com>
19900         at <https://savannah.gnu.org/support/?106973>.
19901
19902 2009-08-11  Bruno Haible  <bruno@clisp.org>
19903
19904         * modules/dup2-tests (Depends-on): Remove close.
19905
19906         Undo 2009-07-19 commit.
19907         * modules/acl-tests (Depends-on): Remove close.
19908         * modules/binary-io-tests (Depends-on): Likewise.
19909         * modules/closein-tests (Depends-on): Likewise.
19910         * modules/flock-tests (Depends-on): Likewise.
19911         * modules/fsync-tests (Depends-on): Likewise.
19912         * modules/lseek-tests (Depends-on): Likewise.
19913         * modules/pipe-tests (Depends-on): Likewise.
19914         * modules/posix_spawn-tests (Depends-on): Likewise.
19915         * modules/posix_spawnp-tests (Depends-on): Likewise.
19916         * modules/stat-time-tests (Depends-on): Likewise.
19917         * modules/yesno-tests (Depends-on): Likewise.
19918
19919 2009-08-10  Bruno Haible  <bruno@clisp.org>
19920
19921         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19922
19923 2009-08-10  Bruno Haible  <bruno@clisp.org>
19924
19925         Fix a gcc warning.
19926         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19927
19928 2009-08-10  Bruno Haible  <bruno@clisp.org>
19929
19930         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19931         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19932         not only the first time.
19933         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19934         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19935         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19936         is 1, not only the the first time.
19937
19938 2009-08-10  Bruno Haible  <bruno@clisp.org>
19939
19940         Make it possible to use module 'gethostname' without module 'close'.
19941         * lib/unistd.in.h (close): Evoke a link error only if
19942         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19944         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19945         * modules/unistd (Makefile.am): Substitute
19946         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19947         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19948         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19949         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19950         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19951         * modules/sys_ioctl (Makefile.am): Substitute
19952         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19953         * modules/socket (configure.ac): On native Windows, set
19954         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19955         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19956         Reported by Sam Steingold <sds@gnu.org>.
19957
19958 2009-08-10  Bruno Haible  <bruno@clisp.org>
19959
19960         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19961         * modules/ioctl (configure.ac): Likewise.
19962
19963 2009-08-10  Bruno Haible  <bruno@clisp.org>
19964
19965         Avoid collision between gnulib wrapper and libintl wrapper.
19966         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19967         already defined in intl/printf.c.
19968         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19969         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19970
19971 2009-08-09  Bruno Haible  <bruno@clisp.org>
19972
19973         Make <sys/select.h> really self-contained, also on Solaris 10.
19974         * lib/sys_select.in.h: Include <string.h>.
19975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19976         Solaris 10 problem.
19977         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19978         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19979         Reported by Jim Meyering.
19980
19981 2009-08-09  Bruno Haible  <bruno@clisp.org>
19982
19983         Avoid warnings from 'aclocal' that are due to a use of macro name
19984         AM_XGETTEXT_OPTION that is not defined in automake.
19985         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19986         automake.
19987         * modules/error (configure.ac): Likewise.
19988         * modules/propername (configure.ac): Likewise.
19989         * modules/vasprintf (configure.ac): Likewise.
19990         * modules/verror (configure.ac): Likewise.
19991         * modules/xprintf (configure.ac): Likewise.
19992         * modules/xvasprintf (configure.ac): Likewise.
19993
19994 2009-08-08  Bruno Haible  <bruno@clisp.org>
19995
19996         Avoid compilation error in C++ mode.
19997         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19998         Reported by Sam Steingold <sds@gnu.org>.
19999
20000 2009-08-08  Bruno Haible  <bruno@clisp.org>
20001
20002         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20003         for the various Unix platforms.
20004         * doc/posix-headers/limits.texi: Update platforms list regarding
20005         HOST_NAME_MAX.
20006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20007
20008 2009-08-07  Jim Meyering  <meyering@redhat.com>
20009
20010         selinux-at: fix typo in a comment
20011         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20012         Spotted by Paolo Bonzini.
20013
20014         selinux-at: remove redundant m4 code, add documentation
20015         * modules/selinux-at (configure.ac): Remove redundant code.
20016         LIB_SELINUX is already set via the dependent module, selinux-h.
20017         (Include): Add quotes around selinux-at.h.
20018         * lib/selinux-at.h: Add documentation.
20019         Reported by Bruno Haible in
20020         http://marc.info/?l=gnulib-bug&m=124958988300749
20021
20022 2009-08-07  Bruno Haible  <bruno@clisp.org>
20023
20024         Avoid link error on MacOS X 10.3 and 10.4.
20025         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20026         on non-ELF systems.
20027         * lib/argp-pv.c (argp_program_version): Likewise.
20028         Reported by Simon Josefsson.
20029
20030 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20031
20032         * tests/test-version-etc.sh: Use $EXEEXT.
20033
20034 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20035
20036         update-copyright: update documentation to point to maint.mk
20037         * build-aux/update-copyright: Here.
20038
20039 2009-08-06  Jim Meyering  <meyering@redhat.com>
20040
20041         maint.mk: support update-copyright-local
20042         * top/maint.mk (update-copyright-local): Define place-holder.
20043         (update-copyright): Depend on $(update-copyright-local).
20044
20045 2009-08-06  Jim Meyering  <meyering@redhat.com>
20046
20047         selinux-at: new module
20048         Initially written for coreutils, this module will soon be
20049         used by findutils, too.
20050         * MODULES.html.sh [Misc]: Add selinux-at.
20051         * lib/selinux-at.h: New file, from coreutils.
20052         * lib/selinux-at.c: Likewise.
20053         * modules/selinux-at: Likewise.
20054         (License): Change from LGPL to GPL, since it depends
20055         on the GPL'd openat module.
20056
20057         doc: update README
20058         * README: Remove references to cogito.
20059         Remove cvs-repo-updating instructions from 2007.
20060         Don't imply that CVS is better if you have limited disk space.
20061
20062 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20063
20064         update-copyright: support C-style comments
20065         * build-aux/update-copyright: Implement and document.
20066         * tests/test-update-copyright.sh: Test.
20067
20068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20069
20070         update-copyright: support omitted "(C)"
20071         * build-aux/update-copyright: Implement and document.  Also,
20072         allow variable whitespace before "(C)".
20073         * tests/test-update-copyright.sh: Test.
20074
20075 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20076
20077         update-copyright: don't trip on non-FSF copyright statements
20078         * build-aux/update-copyright: Fix so that the first correctly
20079         formatted FSF copyright statement is recognized no matter what
20080         appears before it.  Update documentation.
20081         * tests/test-update-copyright.sh: Test that.
20082
20083 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20084
20085         update-copyright: clean up code a little
20086         * build-aux/update-copyright: Append "_re" to the name of any
20087         variable holding a regular expression.
20088         Replace "old" and "new" with "stmt" in variable names.
20089         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20090         handled correctly.
20091         Format code more consistently.
20092
20093 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20094
20095         update-copyright-tests: improve portability
20096         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20097         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20098
20099 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20100
20101         update-copyright: support @copyright{} and &copy;
20102         * build-aux/update-copyright: Implement and document.
20103         * tests/test-update-copyright.sh: Test.
20104
20105 2009-08-04  Jim Meyering  <meyering@redhat.com>
20106
20107         update-copyright-tests: correctly test EOL=\r\n handling
20108         * tests/test-update-copyright.sh: Put \r at the end of some lines
20109         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20110
20111         maint.mk: make update-copyright exclusion list more configurable
20112         * top/maint.mk (update-copyright): Default to excluding COPYING,
20113         but allow an override, in case someone does want to update that file.
20114
20115         maint.mk: don't update copyright date in COPYING
20116         * top/maint.mk (update-copyright): Exclude COPYING.
20117
20118         maint.mk: add a copyright-updating rule
20119         * top/maint.mk (update-copyright): New rule.
20120         Derived from coreutils/Makefile.am.
20121
20122         update-copyright: rename some variables
20123         * build-aux/update-copyright: Rename a few variables for clarity.
20124         Tweak syntax.  List Joel E. Denny as coauthor.
20125
20126 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20127
20128         update-copyright: fix bug for 2-digit last year and add tests
20129         * build-aux/update-copyright: Fix bug.
20130         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20131         specified.
20132         * modules/update-copyright-tests: New
20133         * tests/test-update-copyright.sh: New.
20134
20135 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20136
20137         update-copyright: handle leading tabs in line prefix
20138         * build-aux/update-copyright: Count leading tabs as 8 spaces
20139         when computing margin.  This helps with the formatting of
20140         ChangeLogs, for example.
20141         Fix documentation a little.
20142
20143 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20144
20145         update-copyright: support EOL=\r\n
20146         * build-aux/update-copyright: Implement that.
20147
20148 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20149
20150         update-copyright: automatically format copyright statements
20151         * build-aux/update-copyright: Implement that.
20152         Also, be a little more predictable and safer by always failing
20153         when the full copyright format is not perfectly recognized as an
20154         unbroken whole.  Discussed at
20155         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20156         Rewrite documentation.
20157
20158 2009-08-03  Bruno Haible  <bruno@clisp.org>
20159
20160         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20161
20162 2009-08-02  Bruno Haible  <bruno@clisp.org>
20163
20164         Tests for module 'uname'.
20165         * modules/uname-tests: New file.
20166         * tests/test-uname.c: New file.
20167
20168         New module 'uname'.
20169         * lib/uname.c: New file.
20170         * m4/uname.m4: New file.
20171         * modules/uname: New file.
20172         * doc/posix-functions/uname.texi: Mention the new module.
20173
20174 2009-08-02  Bruno Haible  <bruno@clisp.org>
20175
20176         Tests for module 'sys_utsname'.
20177         * modules/sys_utsname-tests: New file.
20178         * tests/test-sys_utsname.c: New file.
20179
20180         New module 'sys_utsname'.
20181         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20182         * m4/sys_utsname_h.m4: New file.
20183         * modules/sys_utsname: New file.
20184         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20185
20186 2009-08-02  Bruno Haible  <bruno@clisp.org>
20187
20188         Implicitly initialize the sockets library.
20189         * lib/gethostname.c: Include sockets.h.
20190         (rpl_gethostname): Invoke gl_sockets_startup.
20191         * lib/socket.c: Include sockets.h.
20192         (rpl_socket): Invoke gl_sockets_startup.
20193         * modules/gethostname (Depends-on): Add sockets.
20194         * modules/socket (Depends-on): Likewise.
20195         * tests/test-poll.c: Don't include sockets.h.
20196         (main): Don't invoke gl_sockets_startup.
20197         * tests/test-select.c: Don't include sockets.h.
20198         (main): Don't invoke gl_sockets_startup.
20199
20200 2009-08-02  Bruno Haible  <bruno@clisp.org>
20201
20202         Allow multiple calls to gl_sockets_startup.
20203         * lib/sockets.c (initialized_sockets_version): New variable.
20204         (gl_sockets_startup): Do nothing if already called for this or a higher
20205         version.
20206         (gl_sockets_cleanup): Reset initialized_sockets_version.
20207
20208 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20209
20210         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20211         different project/version.
20212
20213 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20214             Bruno Haible  <bruno@clisp.org>
20215
20216         Tests for module 'pipe-filter-gi'.
20217         * modules/pipe-filter-gi-tests: New file.
20218         * tests/test-pipe-filter-gi1.sh: New file.
20219         * tests/test-pipe-filter-gi1.c: New file.
20220         * tests/test-pipe-filter-gi2.sh: New file.
20221         * tests/test-pipe-filter-gi2-main.c: New file.
20222         * tests/test-pipe-filter-gi2-child.c: New file.
20223
20224         New module 'pipe-filter-gi'.
20225         * lib/pipe-filter-gi.c: New file.
20226         * modules/pipe-filter-gi: New file.
20227
20228 2009-08-02  Bruno Haible  <bruno@clisp.org>
20229             Paolo Bonzini  <bonzini@gnu.org>
20230
20231         Tests for module 'pipe-filter-ii'.
20232         * modules/pipe-filter-ii-tests: New file.
20233         * tests/test-pipe-filter-ii1.sh: New file.
20234         * tests/test-pipe-filter-ii1.c: New file.
20235         * tests/test-pipe-filter-ii2.sh: New file.
20236         * tests/test-pipe-filter-ii2-main.c: New file.
20237         * tests/test-pipe-filter-ii2-child.c: New file.
20238
20239         New module 'pipe-filter-ii'.
20240         * lib/pipe-filter.h: New file.
20241         * lib/pipe-filter-ii.c: New file.
20242         * lib/pipe-filter-aux.h: New file.
20243         * modules/pipe-filter-ii: New file.
20244
20245 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20246
20247         * lib/gc-libgcrypt.c: Change copyright to FSF.
20248         * lib/gc-gnulib.c: Likewise.
20249
20250 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20251
20252         * lib/gethostname.c: Include limits.h.
20253
20254 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20255             Bruno Haible  <bruno@clisp.org>
20256
20257         Ensure HOST_NAME_MAX as part of the gethostname module.
20258         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20259         define also HOST_NAME_MAX.
20260         * tests/test-gethostname.c: Include <limits.h>.
20261         (main): Check also HOST_NAME_MAX.
20262         * doc/posix-headers/limits.texi: Document the mingw problem.
20263
20264 2009-08-02  Bruno Haible  <bruno@clisp.org>
20265
20266         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20267         Add comments.
20268
20269 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20270
20271         * lib/gethostname.c: Add Windows wrapper.
20272         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20273         * modules/gethostname: Depend on sys_socket & errno, for also
20274         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20275         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20276
20277 2009-07-31  Jim Meyering  <meyering@redhat.com>
20278
20279         getloadavg: fix symbol name in comment
20280         * lib/getloadavg.c: Correct a typo I introduced when adding
20281         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20282         Matt Kraai spotted the problem.
20283
20284 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20285
20286         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20287         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20288         code also if ! defined N_NAME_POINTER.
20289         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20290         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20291         but the n_name member is a 12-byte array.
20292
20293 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20294
20295         update-copyright: generalize comment handling
20296         * build-aux/update-copyright: Handle copyright statements
20297         within more comment styles.
20298         Document usage.
20299         Report any file with an external copyright holder or parse failure.
20300
20301 2009-07-29  Jim Meyering  <meyering@redhat.com>
20302
20303         mktime: correct setting of REPLACE_MKTIME
20304         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20305
20306         update-copyright: new module
20307         * modules/update-copyright: New file.
20308         * build-aux/update-copyright: New file.
20309         * MODULES.html.sh (maint+release support): Add update-copyright.
20310
20311 2009-07-27  Bruno Haible  <bruno@clisp.org>
20312
20313         Fix compilation error when <ctime> is used and mktime is replaced.
20314         * lib/time.in.h (mktime): New declaration.
20315         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20316         REPLACE_MKTIME instead of defining mktime in config.h.
20317         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20318         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20319         Reported by Ross McFarland <rwmcfa1@neces.com>.
20320
20321 2009-07-27  Bruno Haible  <bruno@clisp.org>
20322
20323         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20324         Reported by Matt Kraai <mkraai@beckman.com>.
20325
20326 2009-07-25  Jim Meyering  <meyering@redhat.com>
20327
20328         maint.mk: avoid warnings about missing files
20329         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20330         diagnostic when .prev-version does not exist.
20331         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20332         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20333         nonexistent cfg.mk.
20334         Suggestions from Simon Josefsson.
20335
20336 2009-07-25  Bruno Haible  <bruno@clisp.org>
20337
20338         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20339         defined as macros. Needed on QNX 6.4.1.
20340         Reported by Matt Kraai <mkraai@beckman.com>.
20341
20342 2009-07-23  Jim Meyering  <meyering@redhat.com>
20343
20344         maint.mk: invoke "make dist" with a working value of XZ_OPT
20345         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20346
20347 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20348
20349         Make fseeko.c compile on QNX.
20350         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20351
20352 2009-07-22  Peter Simons  <simons@cryp.to>
20353
20354         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20355         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20356         * lib/md4.h: Likewise.
20357         * lib/md5.h: Likewise.
20358         * lib/sha1.h: Likewise.
20359         * lib/sha256.h: Likewise.
20360         * lib/sha512.h: Likewise.
20361
20362         tests-sha1: don't assign literal string to 'char *' variable
20363         * tests/test-sha1.c (main): Declare locals with "const" to match
20364         attributes of the right hand side.
20365
20366 2009-07-21  Eric Blake  <ebb9@byu.net>
20367
20368         dup2: fix more mingw problems
20369         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20370         fd to itself.
20371         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20372         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20373         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20374         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20375         care of mingw bugs.
20376
20377 2009-07-21  Jim Meyering  <meyering@redhat.com>
20378
20379         vc-list-files: avoid failure when /bin/sh is dash
20380         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20381         On some Debian based systems, /bin/sh is a symlink to dash, and running
20382         this command would omit the "/" following each 'tests' prefix:
20383           dash -x build-aux/vc-list-files -C . tests
20384         That is because bash and dash work differently:
20385           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20386           bash ok
20387           dash odd
20388
20389 2009-07-21  Eric Blake  <ebb9@byu.net>
20390
20391         dup2-tests: test previous patch
20392         * modules/dup2-tests: New file.
20393         * tests/test-dup2.c: Likewise.
20394         * tests/test-open.c (main): Avoid unspecified behavior.
20395         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20396         test.
20397
20398         dup2: work around mingw and cygwin 1.5 bug
20399         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20401         * modules/unistd (Makefile.am): Substitute it.
20402         * lib/unistd.in.h (dup2): Declare the replacement.
20403         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20404         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20405         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20406         * modules/execute (Depends-on): Add dup2.
20407         * modules/fseterr (Depends-on): Likewise.
20408         * modules/pipe (Depends-on): Likewise.
20409         * modules/posix_spawn-internal (Depends-on): Likewise.
20410
20411 2009-07-21  Bruno Haible  <bruno@clisp.org>
20412
20413         * modules/.gitattributes: New file.
20414
20415 2009-07-20  Bruno Haible  <bruno@clisp.org>
20416
20417         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20418         (main): Use it.
20419
20420 2009-07-20  Eric Blake  <ebb9@byu.net>
20421
20422         test-pipe: make a bit more robust.
20423         * tests/test-pipe.c (myerr): Allow error messages regardless of
20424         what we do to stderr.
20425         (test_pipe): Rearrange to avoid deadlock.
20426         (child_main): Try a larger read, to ensure we avoided deadlock.
20427         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20428         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20429         if misused.
20430
20431 2009-07-19  Jim Meyering  <meyering@redhat.com>
20432
20433         fts: avoid false-positive cycle-detection
20434         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20435         for each new command line argument.
20436
20437 2009-07-19  Bruno Haible  <bruno@clisp.org>
20438
20439         Fix build error on mingw with the modules sys_select and unistd.
20440         * modules/acl-tests (Depends-on): Add close.
20441         * modules/binary-io-tests (Depends-on): Likewise.
20442         * modules/closein-tests (Depends-on): Likewise.
20443         * modules/flock-tests (Depends-on): Likewise.
20444         * modules/fsync-tests (Depends-on): Likewise.
20445         * modules/lseek-tests (Depends-on): Likewise.
20446         * modules/pipe-tests (Depends-on): Likewise.
20447         * modules/posix_spawn-tests (Depends-on): Likewise.
20448         * modules/posix_spawnp-tests (Depends-on): Likewise.
20449         * modules/stat-time-tests (Depends-on): Likewise.
20450         * modules/yesno-tests (Depends-on): Likewise.
20451
20452 2009-07-19  Bruno Haible  <bruno@clisp.org>
20453
20454         Unify conditionals.
20455         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20456         macros, not at the compiler macros.
20457         * lib/pipe.c: Likewise.
20458         * lib/execute.c: Likewise.
20459         * lib/spawni.c: Likewise.
20460
20461 2009-07-19  Bruno Haible  <bruno@clisp.org>
20462
20463         Fix handling of closed stdin/stdout/stderr on mingw.
20464         * lib/w32spawn.h: Include unistd.h.
20465         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20466         file descriptor with O_NOINHERIT flag.
20467         (fd_safer_noinherit): New function, based on fd-safer.c.
20468         (dup_safer_noinherit): New function, based on dup-safer.c.
20469         (undup_safer_noinherit): New function.
20470         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20471         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20472         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20473         instead of fd_safer.
20474         * tests/test-pipe.c: Include <windows.h>.
20475         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20476
20477         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20478         from main.
20479         (test_pipe): Pass an extra argument for disambiguation.
20480         (main): Invoke parent_main or child_main.
20481
20482         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20483         consistently.
20484
20485 2009-07-18  Eric Blake  <ebb9@byu.net>
20486
20487         test-pipe: fix mingw build
20488         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20489
20490 2009-07-18  Bruno Haible  <bruno@clisp.org>
20491
20492         * modules/pipe-tests (Makefile.am): Fix typo.
20493
20494 2009-07-18  Eric Blake  <ebb9@byu.net>
20495
20496         error: fix mingw build
20497         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20498         Reported by Bruno Haible.
20499
20500         error: avoid undefined use of stdout
20501         * lib/error.c (error, error_at_line): Check that fd 1 is open
20502         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20503         is handling faults and the close_stdout module wants to report the
20504         detection of closed stdout as an error.
20505
20506 2009-07-17  Eric Blake  <ebb9@byu.net>
20507
20508         pipe: be robust in face of closed fds
20509         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20510         should cause child to misbehave.
20511         * modules/pipe-tests: New module.
20512         * tests/test-pipe.c: New file.
20513         * tests/test-pipe.sh: New file.
20514         Reported by Akim Demaille.
20515
20516 2009-07-14  Bruno Haible  <bruno@clisp.org>
20517
20518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20519         Reported by anonymous kc.
20520
20521 2009-07-07  Jim Meyering  <meyering@redhat.com>
20522
20523         maint.mk: don't look for translatable strings in *.m4 or *.mk
20524         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20525         when searching for translatable strings.
20526
20527 2009-07-05  Jim Meyering  <meyering@redhat.com>
20528
20529         remove superfluous parentheses in STREQ definition
20530         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20531         * lib/getugroups.c (STREQ): Likewise.
20532         * lib/fnmatch.c (STREQ): Likewise.
20533         Spotted by Bruno Haible.
20534
20535 2009-07-04  Jim Meyering  <meyering@redhat.com>
20536
20537         argv-iter: new module
20538         * MODULES.html.sh: Add argv-iter.
20539         * lib/argv-iter.c, lib/argv-iter.h: New files.
20540         * modules/argv-iter: New file.
20541         * modules/argv-iter-tests: New file.
20542         * tests/test-argv-iter.c: Test it.
20543
20544 2009-07-04  Bruno Haible  <bruno@clisp.org>
20545
20546         Fix assertion.
20547         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20548         contains more exact copies of a given entry than file2, leave the extra
20549         copies unpaired rather than aborting.
20550         Reported by Eric Blake.
20551
20552 2009-07-02  Bruno Haible  <bruno@clisp.org>
20553
20554         Speedup git-merge-changelog for git cherry-pick.
20555         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20556         (entries_mapping_get): New function, extracted from compute_mapping.
20557         (entries_mapping_reverse_get): New function.
20558         (compute_mapping): Add a 'full' argument. Return the result in a
20559         'struct entries_mapping'.
20560         (main): Update. Access the mappings through entries_mapping_get.
20561         Reported by Eric Blake.
20562
20563 2009-07-02  Bruno Haible  <bruno@clisp.org>
20564
20565         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20566         best_i.
20567
20568 2009-07-02  Bruno Haible  <bruno@clisp.org>
20569
20570         Speed up approximate search for matching ChangeLog entries.
20571         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20572         argument. Call fstrcmp_bounded instead of fstrcmp.
20573         (compute_mapping, try_split_merged_entry, main): Update callers.
20574
20575 2009-07-02  Bruno Haible  <bruno@clisp.org>
20576
20577         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20578
20579 2009-06-30  Bruno Haible  <bruno@clisp.org>
20580
20581         Reduce the number of uc_is_cased calls.
20582         * lib/unicase.h (casing_suffix_context_t): Add
20583         'first_char_except_ignorable' field.
20584         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20585         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20586         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20587         Update initializer.
20588         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20589         case-ignorable characters.
20590         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20591         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20592         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20593         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20594         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20595
20596 2009-06-30  Bruno Haible  <bruno@clisp.org>
20597
20598         Tests for module 'unicase/ignorable'.
20599         * modules/unicase/ignorable-tests: New file.
20600         * tests/unicase/test-ignorable.c: New file, generated by
20601         gen-uni-tables.
20602
20603         Tests for module 'unicase/cased'.
20604         * modules/unicase/cased-tests: New file.
20605         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20606         * tests/unicase/test-predicate-part1.h: New file, derived from
20607         tests/unictype/test-predicate-part1.h.
20608         * tests/unicase/test-predicate-part2.h: New file, same as
20609         tests/unictype/test-predicate-part2.h.
20610
20611         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20612         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20613         (output_casing_properties): New function.
20614         (main): Call it.
20615         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20616         * lib/unicase/cased.c: Include unictype/bitmap.h.
20617         (uc_is_cased): Define through a bitmap lookup.
20618         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20619         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20620         (uc_is_case_ignorable): Define through a bitmap lookup.
20621         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20622         lib/unictype/bitmap.h.
20623         (Depends-on): Add inline. Clean up.
20624         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20625         lib/unictype/bitmap.h.
20626         (Depends-on): Add inline. Clean up.
20627         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20628         recognition.
20629         * tests/unicase/test-u16-tolower.c (main): Likewise.
20630         * tests/unicase/test-u32-tolower.c (main): Likewise.
20631
20632 2009-06-30  Bruno Haible  <bruno@clisp.org>
20633
20634         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20635         * lib/unicase/u16-casemap.c: Likewise.
20636         * lib/unicase/u32-casemap.c: Likewise.
20637
20638 2009-06-29  Bruno Haible  <bruno@clisp.org>
20639
20640         Define u32_casefold as a wrapper around u32_ct_casefold.
20641         * lib/unicase/u32-casefold.c: Update.
20642         * modules/unicase/u32-casefold (Depends-on): Add
20643         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20644         unicase/empty-suffix-context. Clean up.
20645
20646         Define u16_casefold as a wrapper around u16_ct_casefold.
20647         * lib/unicase/u16-casefold.c: Update.
20648         * modules/unicase/u16-casefold (Depends-on): Add
20649         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20650         unicase/empty-suffix-context. Clean up.
20651
20652         Define u8_casefold as a wrapper around u8_ct_casefold.
20653         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20654         * lib/unicase/u8-casefold.c: Update.
20655         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20656         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20657
20658         Define u32_totitle as a wrapper around u32_ct_totitle.
20659         * lib/unicase/u32-totitle.c: Update.
20660         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20661         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20662
20663         Define u16_totitle as a wrapper around u16_ct_totitle.
20664         * lib/unicase/u16-totitle.c: Update.
20665         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20667
20668         Define u8_totitle as a wrapper around u8_ct_totitle.
20669         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20670         functions.
20671         (FUNC): Delegate to U_CT_TOTITLE.
20672         * lib/unicase/u8-totitle.c: Update.
20673         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20674         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20675
20676         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20677         invocation.
20678         * modules/unicase/u32-tolower (Depends-on): Add
20679         unicase/empty-prefix-context, unicase/empty-suffix-context.
20680
20681         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20682         invocation.
20683         * modules/unicase/u16-tolower (Depends-on): Add
20684         unicase/empty-prefix-context, unicase/empty-suffix-context.
20685
20686         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20687         * modules/unicase/u8-tolower (Depends-on): Add
20688         unicase/empty-prefix-context, unicase/empty-suffix-context.
20689
20690         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20691         invocation.
20692         * modules/unicase/u32-toupper (Depends-on): Add
20693         unicase/empty-prefix-context, unicase/empty-suffix-context.
20694
20695         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20696         invocation.
20697         * modules/unicase/u16-toupper (Depends-on): Add
20698         unicase/empty-prefix-context, unicase/empty-suffix-context.
20699
20700         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20701         * modules/unicase/u8-toupper (Depends-on): Add
20702         unicase/empty-prefix-context, unicase/empty-suffix-context.
20703
20704         New module 'unicase/u32-ct-casefold'.
20705         * lib/unicase/u32-ct-casefold.c: New file.
20706         * modules/unicase/u32-ct-casefold: New file.
20707
20708         New module 'unicase/u16-ct-casefold'.
20709         * lib/unicase/u16-ct-casefold.c: New file.
20710         * modules/unicase/u16-ct-casefold: New file.
20711
20712         New module 'unicase/u8-ct-casefold'.
20713         * lib/unicase/u8-ct-casefold.c: New file.
20714         * lib/unicase/u-ct-casefold.h: New file, derived from
20715         lib/unicase/u-casefold.h.
20716         * modules/unicase/u8-ct-casefold: New file.
20717
20718         New module 'unicase/u32-ct-totitle'.
20719         * lib/unicase/u32-ct-totitle.c: New file.
20720         * modules/unicase/u32-ct-totitle: New file.
20721
20722         New module 'unicase/u16-ct-totitle'.
20723         * lib/unicase/u16-ct-totitle.c: New file.
20724         * modules/unicase/u16-ct-totitle: New file.
20725
20726         New module 'unicase/u8-ct-totitle'.
20727         * lib/unicase/u8-ct-totitle.c: New file.
20728         * lib/unicase/u-ct-totitle.h: New file, derived from
20729         lib/unicase/u-totitle.h.
20730         * modules/unicase/u8-ct-totitle: New file.
20731
20732         New module 'unicase/u32-ct-tolower'.
20733         * lib/unicase/u32-ct-tolower.c: New file.
20734         * modules/unicase/u32-ct-tolower: New file.
20735
20736         New module 'unicase/u16-ct-tolower'.
20737         * lib/unicase/u16-ct-tolower.c: New file.
20738         * modules/unicase/u16-ct-tolower: New file.
20739
20740         New module 'unicase/u8-ct-tolower'.
20741         * lib/unicase/u8-ct-tolower.c: New file.
20742         * modules/unicase/u8-ct-tolower: New file.
20743
20744         New module 'unicase/u32-ct-toupper'.
20745         * lib/unicase/u32-ct-toupper.c: New file.
20746         * modules/unicase/u32-ct-toupper: New file.
20747
20748         New module 'unicase/u16-ct-toupper'.
20749         * lib/unicase/u16-ct-toupper.c: New file.
20750         * modules/unicase/u16-ct-toupper: New file.
20751
20752         New module 'unicase/u8-ct-toupper'.
20753         * lib/unicase/u8-ct-toupper.c: New file.
20754         * modules/unicase/u8-ct-toupper: New file.
20755
20756         Add context arguments to u*_casemap functions.
20757         * lib/unicase/unicasemap.h: Include unicase.h.
20758         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20759         suffix_context arguments.
20760         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20761         functions.
20762         (FUNC): Add prefix_context and suffix_context arguments. Use
20763         uc_is_cased and uc_is_case_ignorable.
20764         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20765         * lib/unicase/u16-casemap.c: Likewise.
20766         * lib/unicase/u32-casemap.c: Likewise.
20767         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20768         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20769         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20770         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20771         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20772         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20773
20774         New module 'unicase/u32-suffix-context'.
20775         * lib/unicase/u32-suffix-context.c: New file.
20776         * modules/unicase/u32-suffix-context: New file.
20777
20778         New module 'unicase/u16-suffix-context'.
20779         * lib/unicase/u16-suffix-context.c: New file.
20780         * modules/unicase/u16-suffix-context: New file.
20781
20782         New module 'unicase/u8-suffix-context'.
20783         * lib/unicase/u8-suffix-context.c: New file.
20784         * lib/unicase/u-suffix-context.h: New file.
20785         * modules/unicase/u8-suffix-context: New file.
20786
20787         New module 'unicase/empty-suffix-context'.
20788         * lib/unicase/empty-suffix-context.c: New file.
20789         * modules/unicase/empty-suffix-context: New file.
20790
20791         New module 'unicase/u32-prefix-context'.
20792         * lib/unicase/u32-prefix-context.c: New file.
20793         * modules/unicase/u32-prefix-context: New file.
20794
20795         New module 'unicase/u16-prefix-context'.
20796         * lib/unicase/u16-prefix-context.c: New file.
20797         * modules/unicase/u16-prefix-context: New file.
20798
20799         New module 'unicase/u8-prefix-context'.
20800         * lib/unicase/u8-prefix-context.c: New file.
20801         * lib/unicase/u-prefix-context.h: New file.
20802         * lib/unicase/context.h: New file.
20803         * modules/unicase/u8-prefix-context: New file.
20804
20805         New module 'unicase/empty-prefix-context'.
20806         * lib/unicase/empty-prefix-context.c: New file.
20807         * modules/unicase/empty-prefix-context: New file.
20808
20809         New module 'unicase/ignorable'.
20810         * lib/unicase/ignorable.c: New file.
20811         * modules/unicase/ignorable: New file.
20812
20813         New module 'unicase/cased'.
20814         * lib/unicase/caseprop.h: New file.
20815         * lib/unicase/cased.c: New file.
20816         * modules/unicase/cased: New file.
20817
20818         New functions for case mapping of substrings.
20819         * lib/unicase.h (casing_prefix_context_t): New type.
20820         (unicase_empty_prefix_context): New variable.
20821         (u8_casing_prefix_context, u16_casing_prefix_context,
20822         u32_casing_prefix_context, u8_casing_prefixes_context,
20823         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20824         declarations.
20825         (casing_suffix_context_t): New type.
20826         (unicase_empty_suffix_context): New variable.
20827         (u8_casing_suffix_context, u16_casing_suffix_context,
20828         u32_casing_suffix_context, u8_casing_suffixes_context,
20829         u16_casing_suffixes_context, u32_casing_suffixes_context,
20830         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20831         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20832         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20833         declarations.
20834
20835 2009-06-28  Jim Meyering  <meyering@redhat.com>
20836
20837         boostrap: indent only with spaces
20838         * build-aux/bootstrap: Indent only with spaces, never TABs.
20839
20840         bootstrap: split long lines
20841         * build-aux/bootstrap: Keep line length < 80.
20842
20843         bootstrap: sync from coreutils
20844         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20845         just as autoreconf does.  Verify a list of prerequisite
20846         package-name,version-number pairs if defined in bootstrap.conf.
20847         Refer to README-prereq, if prerequisites are not satisfied.
20848
20849 2009-06-27  Eric Blake  <ebb9@byu.net>
20850
20851         tests: add test for bogus NULL definition
20852         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20853         * tests/test-stdlib.c: Likewise.
20854         * tests/test-string.c: Likewise.
20855         * tests/test-locale.c: Likewise.
20856         * tests/test-unistd.c: Likewise.
20857         * modules/stdio-tests (Depends-on): Add verify.
20858         * modules/stdlib-tests (Depends-on): Likewise.
20859         * modules/string-tests (Depends-on): Likewise.
20860         * modules/locale-tests (Depends-on): Likewise.
20861         * modules/unistd-tests (Depends-on): Likewise.
20862
20863 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20864
20865         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20866         self-explaining comment.
20867         * m4/selinux-selinux-h: Update serial.
20868         (gl_LIBSELINUX): New macro, adding a warning for missing development
20869         packages to code extracted from...
20870         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20871         Add warning for missing development packages here, too.
20872
20873 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20874
20875         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20876
20877 2009-06-25  Eric Blake  <ebb9@byu.net>
20878
20879         version-etc: fix regression
20880         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20881         gcc.
20882         (version_etc): Use it, to catch bugs with trailing NULL.
20883         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20884         (version_etc_va): Fix logic bug.
20885         * modules/version-etc-tests: Add test.
20886         * tests/test-version-etc.c: New file.
20887         * tests/test-version-etc.sh: Likewise.
20888
20889 2009-06-25  Sam Steingold  <sds@gnu.org>
20890
20891         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20892         mbtowc declaration.
20893
20894 2009-06-25  Eric Blake  <ebb9@byu.net>
20895
20896         fpurge: migrate into <stdio.h>
20897         * lib/fpurge.h: Delete...
20898         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20899         * lib/fpurge.c (fpurge): Change declaring header.
20900         * modules/fpurge (Files): Drop deleted file.
20901         (Depends-on): Add stdio.
20902         (configure.ac): Set witness.
20903         * modules/stdio (Makefile.am): Support fpurge macros.
20904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20906         * lib/fflush.c: Update client.
20907         * tests/test-fpurge.c: Likewise.
20908         * NEWS: Mention the change.
20909
20910 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20911
20912         * lib/argp-version-etc.c (program_authors): Add const
20913         qualifier.
20914         * lib/version-etc.c: Fix typos in the comments.
20915         * modules/argp-version-etc: Depends on version-etc.
20916
20917 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20918
20919         argp-version-etc: new module.
20920
20921         * lib/argp-version-etc.c: New file.
20922         * lib/argp-version-etc.h: New file.
20923         * modules/argp-version-etc: New file.
20924         * modules/argp-version-etc-tests: New file.
20925         * tests/test-argp-version-etc.c: New test.
20926         * tests/test-argp-version-etc-1.sh: New test.
20927
20928 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20929
20930         Provide additional interfaces and documentation for version-etc
20931         module.
20932
20933         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20934         interfaces.
20935         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20936         prototypes.
20937
20938 2009-06-24  Bruno Haible  <bruno@clisp.org>
20939
20940         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20941         HAVE_LIB${NAME} macro.
20942         Reported by Sam Steingold <sds@gnu.org>.
20943
20944 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20945
20946         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20947         needed.
20948
20949 2009-06-21  Bruno Haible  <bruno@clisp.org>
20950
20951         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20952         work.
20953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20954         together with LIB${NAME}, LTLIB${NAME}.
20955         Reported by Sam Steingold <sds@gnu.org>.
20956
20957 2009-06-20  Jim Meyering  <meyering@redhat.com>
20958
20959         tests: make sc_require_test_exit_idiom more generic
20960         * top/maint.mk (Exit_witness_file): New overridable variable.
20961         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20962         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20963
20964 2009-06-19  Jim Meyering  <meyering@redhat.com>
20965
20966         hash: reverse order of src/dst parameters in an internal interface
20967         * lib/hash.c (transfer_entries): Reverse order of parameters to
20968         put DST before SRC.  Adjust callers.
20969
20970         tests: test-hash: avoid wholesale duplication
20971         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20972         Instead, use a loop and add a single conditional.
20973
20974         tests: test-hash: allow seed selection via a command line argument
20975         * tests/test-hash.c (get_seed): New function.
20976         (main): Use it.
20977
20978 2009-06-19  Eric Blake  <ebb9@byu.net>
20979
20980         hash: avoid memory leak on allocation failure
20981         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20982         failure.  Factor repeated algorithm...
20983         (transfer_entries): ...into new helper routine.
20984         (hash_delete): React to hash_rehash return value.
20985
20986         hash: reduce memory pressure in hash_rehash no-op case
20987         * lib/hash.c (next_prime): Avoid overflow.
20988         (hash_initialize): Factor bucket size computation...
20989         (compute_bucket_size): ...into new helper function.
20990         (hash_rehash): Use new function and open coding to reduce memory
20991         pressure, and avoid a memory leak in USE_OBSTACK code.
20992         Reported by Jim Meyering.
20993
20994 2009-06-18  Eric Blake  <ebb9@byu.net>
20995
20996         hash: make rotation more obvious
20997         * modules/hash (Depends-on): Add bitrotate and stdint.
20998         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20999         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21000         (SIZE_MAX): Rely on headers for definition.
21001         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21002         (raw_hasher): Use rotr_sz.
21003         Suggested by Jim Meyering.
21004
21005         hash: fix memory leak in last patch
21006         * lib/hash.c (hash_rehash): Avoid memory leak.
21007
21008         hash: avoid no-op rehashing
21009         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21010
21011         hash: provide default callback functions
21012         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21013         (hash_initialize): Use them as defaults.
21014         * tests/test-hash.c (main): Test this.
21015
21016         hash: minor optimization
21017         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21018         when possible.
21019         (hash_initialize): Document this promise.
21020         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21021         * tests/test-hash.c (hash_compare_strings): Test this.
21022
21023 2009-06-18  Bruno Haible  <bruno@clisp.org>
21024
21025         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21026         going to be replaced anyway.
21027
21028 2009-06-18  Bruno Haible  <bruno@clisp.org>
21029
21030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21031         in one place.
21032         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21033         be replaced anyway.
21034
21035 2009-06-18  Eric Blake  <ebb9@byu.net>
21036
21037         hash: check for resize before insertion
21038         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21039         threshold before insertion, so that a pathological hash_rehash
21040         that fills every bucket can still trigger another rehash.
21041
21042 2009-06-18  Jim Meyering  <meyering@redhat.com>
21043
21044         hash-tests: add a loop around the small tests
21045         * tests/test-hash.c (main): Repeat small tests with selected
21046         small initial table sizes.
21047
21048 2009-06-17  Eric Blake  <ebb9@byu.net>
21049
21050         hash: minor cleanups
21051         * lib/hash.h (hash_entry): Make opaque, by moving...
21052         * lib/hash.c (hash_entry): ...here.
21053         (hash_insert): Clarify restrictions on what can be inserted.
21054         (hash_get_next): Clarify when it is safe to remove an element
21055         during traversal.
21056         (check_tuning): Skip verification when tuning is known safe.
21057         (hash_initialize): Clarify restrictions on tuning.
21058
21059 2009-06-17  Jim Meyering  <jim@meyering.net>
21060         and Eric Blake  <ebb9@byu.net>
21061
21062         hash-tests: new module
21063         * modules/hash-tests: New file.
21064         * tests/test-hash.c: New file.
21065
21066 2009-06-17  Eric Blake  <ebb9@byu.net>
21067
21068         strstr-simple: document new module
21069         * MODULES.html.sh: Document new module.
21070
21071         strstr, strcasestr: replace on platforms with broken memchr
21072         * modules/strstr: Split into...
21073         * modules/strstr-simple: ...new module that does not care about
21074         performance, but does care about glibc bug.
21075         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21076         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21077         if platform memchr is broken, per Debian bug 521737.
21078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21079         memchr.
21080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21081         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21082         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21083         * modules/mountlist (Depends-on): Add strstr-simple.
21084         * modules/gen-uni-tables (Depends-on): Likewise.
21085         * modules/argz (Depends-on): Add strstr.
21086
21087 2009-06-17  Bruno Haible  <bruno@clisp.org>
21088
21089         * modules/posix_spawn-internal (Depends-on): Add errno.
21090
21091 2009-06-17  Bruno Haible  <bruno@clisp.org>
21092
21093         Define missing ESTALE on Interix 3.5.
21094         * lib/errno.in.h (ESTALE): Assign a value if missing.
21095         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21096         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21097         missing.
21098         * doc/posix-headers/errno.texi: Mention the Interix bug.
21099         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21100
21101 2009-06-15  Eric Blake  <ebb9@byu.net>
21102
21103         memchr, memchr2: add valgrind exception
21104         * lib/memchr.valgrind: New file.
21105         * lib/memchr2.valgrind: New file.
21106         * modules/memchr (Files): Distribute valgrind file.
21107         * modules/memchr2 (Files): Likewise.
21108
21109         docs: memchr is no longer obsolete
21110         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21111         * lib/string.in.h (memchr): Simplify logic.
21112
21113 2009-06-14  Jim Meyering  <meyering@redhat.com>
21114
21115         link-follow: fix the "checking..." message to not mention trailing slash
21116         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21117         never considered trailing slashes.
21118
21119 2009-06-14  Bruno Haible  <bruno@clisp.org>
21120
21121         * m4/memchr.m4: Mention also the bug on IA-64.
21122         * doc/posix-functions/memchr.texi: Likewise.
21123
21124 2009-06-12  Eric Blake  <ebb9@byu.net>
21125
21126         memchr: detect broken x86_64 and alpha implementations
21127         * modules/memchr-tests (Depends-on): Move mmap detection...
21128         * modules/memchr (Depends-on): ...here.
21129         (configure.ac): Set indicator.
21130         * lib/string.in.h (memchr): Declare replacement.
21131         * modules/string (Makefile.am): Trigger replacement.
21132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21134         bugs.
21135         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21136         * modules/getpagesize (License): Relax license.
21137
21138 2009-06-11  Bruno Haible  <bruno@clisp.org>
21139
21140         * lib/idpriv.h: Add more references.
21141
21142 2009-06-08  Bruno Haible  <bruno@clisp.org>
21143
21144         Tests for module 'idpriv-droptemp'.
21145         * modules/idpriv-droptemp-tests: New file.
21146         * tests/test-idpriv-droptemp.sh: New file.
21147         * tests/test-idpriv-droptemp.su.sh: New file.
21148         * tests/test-idpriv-droptemp.c: New file.
21149
21150         New module 'idpriv-droptemp'.
21151         * lib/idpriv-droptemp.c: New file.
21152         * modules/idpriv-droptemp: New file.
21153
21154 2009-06-08  Bruno Haible  <bruno@clisp.org>
21155
21156         Tests for module 'idpriv-drop'.
21157         * modules/idpriv-drop-tests: New file.
21158         * tests/test-idpriv-drop.sh: New file.
21159         * tests/test-idpriv-drop.su.sh: New file.
21160         * tests/test-idpriv-drop.c: New file.
21161
21162         New module 'idpriv-drop'.
21163         * lib/idpriv.h: New file.
21164         * lib-idpriv-drop.c: New file.
21165         * m4/idpriv.m4: New file.
21166         * modules/idpriv-drop: New file.
21167
21168 2009-06-08  Bruno Haible  <bruno@clisp.org>
21169
21170         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21177
21178 2009-06-08  Eric Blake  <ebb9@byu.net>
21179
21180         test-strstr: use memory fence, when possible
21181         * tests/test-strstr.c (main): Use memory fence, in order to be
21182         more likely to trigger Debian bug 521737.
21183         * modules/strstr-tests (Files): Pull in additional files.
21184
21185         memchr: no longer obsolete, for wider field testing
21186         * modules/memchr (Status, Notice): Delete, this module is no
21187         longer obsolete.
21188         * modules/vasnprintf (Depends-on): Add memchr.
21189
21190 2009-06-07  Jim Meyering  <meyering@redhat.com>
21191
21192         hash: declare some functions with the warn_unused_result attribute
21193         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21194
21195 2009-06-07  Bruno Haible  <bruno@clisp.org>
21196
21197         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21198         Reported by Eric Blake.
21199
21200 2009-06-06  Eric Blake  <ebb9@byu.net>
21201
21202         test-alignof: fix typo with long double
21203         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21204         compiler error.
21205
21206 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21207
21208         Escape non-texinfo { and }s.
21209         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21210         markup error.
21211
21212 2009-06-04  Jim Meyering  <meyering@redhat.com>
21213
21214         gitlog-to-changelog: don't infloop on an empty commit log
21215         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21216         Reported by Boris Petersen <transacid@centerim.org>.
21217
21218 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21219
21220         version-etc: extend for packagers
21221         Add three new configure options, intended for packagers:
21222           --with-packager="packager name"
21223           --with-packager-version="packager-specific version"
21224           --with-packager-bug-reports="packager bug reporting"
21225         An example with coreutils:
21226           $ ./configure \
21227             --with-packager=Gentoo \
21228             --with-packager-bug-report=http://bugs.gentoo.org/ \
21229             --with-packager-version="patchset 1.6"
21230           $ ./src/ls --version | head -n2
21231           ls (GNU coreutils) 7.1-dirty
21232           Packaged by Gentoo (patchset 1.6)
21233         Note that the bug reporting info via --help doesn't show up because
21234         coreutils uses its own custom emit_bug_reporting_address() implementation
21235         in src/system.h.  If it didn't, it'd look like:
21236           $ ./src/ls --help | tail -n4
21237           Report bugs to <bug-coreutils@gnu.org>.
21238           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21239           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21240           General help using GNU software: <http://www.gnu.org/gethelp/>.
21241         * lib/version-etc.c: Print new information, if provided.
21242         * m4/version-etc.m4: New file.
21243         * modules/version-etc (Files): Add m4/version-etc.m4.
21244         (configure.ac): Add gl_VERSION_ETC.
21245
21246 2009-05-31  Bruno Haible  <bruno@clisp.org>
21247
21248         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21249         and 'int64_t'.
21250         * modules/alignof-tests (Dependencies): Add stdint.
21251         Reported by Eric Blake.
21252
21253 2009-05-31  Bruno Haible  <bruno@clisp.org>
21254
21255         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21256         restriction due to compiler bugs.
21257         Reported by Eric Blake.
21258
21259 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21260             Bruno Haible  <bruno@clisp.org>
21261
21262         Fix test-alignof failure.
21263         * lib/alignof.h (alignof_slot): New macro.
21264         (alignof_type): New macro, with the same semantics as the previous
21265         'alignof'.
21266         (alignof): Alias to alignof_slot.
21267         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21268         check that the results are usable as constant expressions.
21269
21270 2009-05-31  Bruno Haible  <bruno@clisp.org>
21271
21272         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21273         * tests/test-memchr.c (main): Check that memchr does not read past the
21274         first occurrence of the byte.
21275         * tests/test-strstr.c (main): Update comment.
21276         Suggested by Eric Blake.
21277
21278 2009-05-30  Bruno Haible  <bruno@clisp.org>
21279
21280         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21281         detail how to use dumpbin.
21282         Reported by David Byron <dbyron@dbyron.com>.
21283
21284 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21285
21286         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21287
21288 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21289
21290         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21291
21292 2009-05-28  Bruno Haible  <bruno@clisp.org>
21293
21294         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21295         build-aux/ files.
21296
21297 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21298
21299         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21300
21301 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21302
21303         * gnulib-tool (sed_transform_main_lib_file)
21304         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21305         regexps.
21306
21307 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21308
21309         * tests/test-strstr.c: Add another self-test.
21310         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21311         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21312
21313 2009-05-23  Bruno Haible  <bruno@clisp.org>
21314
21315         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21316         change.
21317
21318 2009-05-21  Bruno Haible  <bruno@clisp.org>
21319
21320         Simplify use of mode_t varargs.
21321         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21322         uses 'mode_t' or 'int'.
21323         * lib/openat.c (openat): Likewise.
21324         * lib/open-safer.c (open_safer): Likewise.
21325         * m4/mode_t.m4: New file.
21326         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21327         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21329         * modules/open (Files): Add m4/mode_t.m4.
21330         * modules/openat (Files): Likewise.
21331         * modules/fcntl-safer (Files): Likewise.
21332         Suggested by Eric Blake.
21333
21334 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21335
21336         * doc/glibc-functions/fallocate.texi: New file.
21337         * doc/gnulib.texi: Include it.
21338
21339 2009-05-21  Eric Blake  <ebb9@byu.net>
21340             Bruno Haible  <bruno@clisp.org>
21341
21342         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21343         invocations.
21344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21345
21346 2009-05-21  Eric Blake  <ebb9@byu.net>
21347             Bruno Haible  <bruno@clisp.org>
21348
21349         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21350         include_next. Fix of 2008-11-20 commit.
21351         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21352         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21353         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21354         NEXT_MATH_H.
21355         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21356         instead of NEXT_MATH_H.
21357
21358 2009-05-21  Bruno Haible  <bruno@clisp.org>
21359
21360         Avoid redefinition warnings for SIZE_MAX.
21361         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21362         Reported by Simon Josefsson.
21363
21364 2009-05-21  Bruno Haible  <bruno@clisp.org>
21365
21366         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21367         AC_CACHE_VAL.
21368
21369 2009-05-20  Bruno Haible  <bruno@clisp.org>
21370
21371         Make zeroptr.h work on mingw.
21372         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21373         mprotect.
21374         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21375         * modules/memchr2-tests (configure.ac): Likewise.
21376         * modules/memcmp-tests (configure.ac): Likewise.
21377         * modules/memmem-tests (configure.ac): Likewise.
21378         * modules/memrchr-tests (configure.ac): Likewise.
21379         Reported by Simon Josefsson.
21380
21381 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21382
21383         * tests/test-glob.c: Include string.h for strcmp prototype.
21384
21385 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21386
21387         * modules/getdelim (Depends-on): Add explicit stdint, although it
21388         was implicitly already pulled in via realloc-posix.
21389         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21390
21391 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21392
21393         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21394         G. Christensen" <tgc@jupiterrise.com>.
21395         * m4/sys_socket_h.m4: Check for sa_family_t.
21396         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21397         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21398         * tests/test-sys_socket.c: Check that sa_family_t works.
21399
21400 2009-05-18  Eric Blake  <ebb9@byu.net>
21401
21402         maint.mk: allow gnulib_dir in VPATH build
21403         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21404
21405 2009-05-15  Jim Meyering  <meyering@redhat.com>
21406
21407         maint.mk: Give gnulib_dir a default definition.
21408         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21409         Thus, most packages no longer need to specify this variable in cfg.mk
21410
21411 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21412
21413         rename.m4: fix typos that would make non-mingw cross-configure fail
21414         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21415
21416 2009-05-13  Eric Blake  <ebb9@byu.net>
21417
21418         mmap-anon: avoid out-of-order autoconf expansion
21419         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21420         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21421         * modules/memchr-tests (Depends-on): Add extensions.
21422         * modules/memchr2-tests (Depends-on): Add extensions.
21423         * modules/memcmp-tests (Depends-on): Add extensions.
21424         * modules/memmem-tests (Depends-on): Add extensions.
21425         * modules/memrchr-tests (Depends-on): Add extensions.
21426
21427 2009-05-13  Bruno Haible  <bruno@clisp.org>
21428
21429         Make some tests ISO C 99 compliant.
21430         * tests/zerosize-ptr.h: New file.
21431         * tests/test-memchr.c: Include zerosize-ptr.h.
21432         (main): Use a zero-size object pointer instead of NULL.
21433         * tests/test-memchr2.c: Include zerosize-ptr.h.
21434         (main): Use a zero-size object pointer instead of NULL.
21435         * tests/test-memcmp.c: Include zerosize-ptr.h.
21436         (main): Use a zero-size object pointer instead of NULL.
21437         * tests/test-memmem.c: Include zerosize-ptr.h.
21438         (main): Use a zero-size object pointer instead of NULL.
21439         * tests/test-memrchr.c: Include zerosize-ptr.h.
21440         (main): Use a zero-size object pointer instead of NULL.
21441         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21442         m4/mmap-anon.m4.
21443         (Depends-on): Add getpagesize.
21444         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21445         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21446         m4/mmap-anon.m4.
21447         (Depends-on): Add getpagesize.
21448         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21449         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21450         m4/mmap-anon.m4.
21451         (Depends-on): Add getpagesize.
21452         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21453         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21454         m4/mmap-anon.m4.
21455         (Depends-on): Add getpagesize.
21456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21457         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21458         m4/mmap-anon.m4.
21459         (Depends-on): Add getpagesize.
21460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21461
21462 2009-05-12  Bruno Haible  <bruno@clisp.org>
21463
21464         Tests for module 'alignof'.
21465         * modules/alignof-tests: New file.
21466         * tests/test-alignof.c: New file.
21467
21468 2009-05-12  Bruno Haible  <bruno@clisp.org>
21469
21470         Fix alignof macro.
21471         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21472         vendor compilers that are always correct.
21473
21474 2009-05-12  Bruno Haible  <bruno@clisp.org>
21475
21476         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21477         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21478         not whether its fully works.
21479
21480 2009-05-12  Bruno Haible  <bruno@clisp.org>
21481
21482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21483
21484 2009-05-12  Jim Meyering  <meyering@redhat.com>
21485
21486         * top/maint.mk: Adjust backslash alignment.
21487
21488 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21489
21490         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21491
21492 2009-05-11  Eric Blake  <ebb9@byu.net>
21493
21494         argp: avoid undefined behavior
21495         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21496         macros.
21497
21498 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21499
21500         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21501         user.name to prevent git commit from complaining.
21502
21503 2009-05-10  Bruno Haible  <bruno@clisp.org>
21504
21505         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21506         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21507         it rewrites every file name only once.
21508         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21509
21510 2009-05-08  Bruno Haible  <bruno@clisp.org>
21511
21512         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21513         instead of 'max'.
21514
21515 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21516
21517         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21518         sockaddr_storage test.
21519
21520 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21521
21522         * modules/sys_socket (Makefile.am): Substitute
21523         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21524         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21525         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21526         * tests/test-sys_socket.c: Check sockaddr_storage.
21527
21528 2009-05-08  Bruno Haible  <bruno@clisp.org>
21529
21530         New module 'alignof'.
21531         * lib/alignof.h: New file.
21532         * modules/alignof: New file.
21533
21534 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21535             Bruno Haible  <bruno@clisp.org>
21536
21537         Fix test-file-has-acl on FreeBSD.
21538         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21539         mask is implicitly added.
21540         * tests/test-file-has-acl.c: Include <signal.h>.
21541         (main): Terminate the test after 5 seconds.
21542         * modules/acl-tests (configure.ac): Check for alarm function.
21543
21544 2009-05-04  Bruno Haible  <bruno@clisp.org>
21545
21546         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21548         * modules/errno (configure.ac): Drop AC_REQUIRE.
21549         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21550         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21551
21552 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21553
21554         * modules/glob-tests: New module.
21555         * tests/test-glob.c: Add.
21556
21557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21558
21559         * modules/fnmatch-tests: New module.
21560         * tests/test-fnmatch.c: Add.
21561
21562 2009-05-04  Eric Blake  <ebb9@byu.net>
21563
21564         maint: make the new no-submodule-changes rule VPATH-safe
21565         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21566
21567 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21568             Bruno Haible  <bruno@clisp.org>
21569
21570         acl: Fix infinite loop on FreeBSD.
21571         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21572         of return value from acl_get_entry.
21573         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21574         Likewise.
21575
21576 2009-05-03  Bruno Haible  <bruno@clisp.org>
21577
21578         * lib/acl-internal.h (acl_entries): Clarify return value.
21579         * lib/acl_entries.c (acl_entries): Likewise.
21580
21581 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21582
21583         Bug fix in acl module.
21584         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21585
21586 2009-05-03  Bruno Haible  <bruno@clisp.org>
21587
21588         Create gperf-generated file in the source dir, not in the build dir.
21589         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21590         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21591         * modules/unicase/locale-language (unicase/locale-languages.h):
21592         Likewise.
21593         * modules/unicase/special-casing (unicase/special-casing-table.h):
21594         Likewise.
21595         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21596         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21597         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21598         Reported by Ralf Wildenhues.
21599
21600 2009-05-03  Bruno Haible  <bruno@clisp.org>
21601
21602         * modules/fnmatch (Description, configure.ac): Taken from
21603         fnmatch-posix.
21604         * modules/fnmatch-posix: Turn into a symbolic reference to the
21605         'fnmatch' module, and deprecate.
21606         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21607
21608 2009-05-03  Bruno Haible  <bruno@clisp.org>
21609
21610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21611         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21612         Reported by Ralf Wildenhues.
21613
21614 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21615
21616         * m4/fnmatch.m4: Fix fnmatch re-define.
21617
21618 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21619
21620         priv-set: new module and tests; adapt write-any-file
21621         * lib/priv-set.c: New file.
21622         * lib/priv-set.h: New file.
21623         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21624         * lib/write-any-file.c: Simplify by using priv-set module.
21625         * m4/priv-set.m4: New file.
21626         * modules/priv-set: New file.
21627         * modules/unlinkdir: Add dependency on priv-set module.
21628         * modules/write-any-file: Likewise.
21629
21630         Tests for module 'priv-set'.
21631         * modules/priv-set-tests: New file.
21632         * tests/test-priv-set.c: New file.
21633
21634 2009-05-03  Jim Meyering  <meyering@redhat.com>
21635             Bruno Haible  <bruno@clisp.org>
21636
21637         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21638         use the converted UTF-8 variant of the name instead.
21639
21640 2009-05-03  Jim Meyering  <meyering@redhat.com>
21641
21642         tests: tighten some getdate tests
21643         * tests/test-getdate.c (main): Tighten tests: require equality,
21644         not just greater than.  Set TZ envvar to UTC0.
21645
21646 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21647
21648         getdate: correctly interpret "next monday" when run on a Monday
21649         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21650         that e.g., "next tues" (when run on a tuesday) results in a date
21651         that is one week in the future, and not today's date.
21652         I.e., add a week when the wday is the same as the current one.
21653         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21654         and earlier by Martin Bernreuther and Jan Minář.
21655         * tests/test-getdate.c (main): Check that "next DAY" is always in
21656         the future and that "last DAY" is always in the past.
21657
21658 2009-05-02  Jim Meyering  <meyering@redhat.com>
21659
21660         build: ensure that a release build fails when a submodule is unclean
21661         * top/maint.mk (no-submodule-changes): New rule.
21662         (alpha beta major): Depend on it.
21663
21664 2009-05-02  Bruno Haible  <bruno@clisp.org>
21665
21666         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21667         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21668         shell variable gl_fnmatch_required to detect which variant is
21669         requested.
21670         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21671         gl_FUNC_FNMATCH_POSIX.
21672         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21673         exclude fnmatch-posix.
21674
21675 2009-05-02  Bruno Haible  <bruno@clisp.org>
21676
21677         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21678         * modules/mbsrtowcs (License): Change to LGPLv2+.
21679         * modules/strnlen1 (License): Likewise.
21680         Reported by Simon Josefsson.
21681
21682 2009-05-02  Bruno Haible  <bruno@clisp.org>
21683
21684         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21685         "cross".
21686         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21687         gnulib-tool was called with option --source-base=lib.
21688
21689 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21690
21691         Use automake *-local hooks without commands, for extensibility.
21692         * modules/localcharset (Makefile.am): Rename install-exec-local
21693         rule to install-exec-localcharset, and make it a prerequisite of
21694         install-exec-local.  Likewise, rename the uninstall-local rule to
21695         uninstall-localcharset, and make it a prerequisite of the former.
21696
21697 2009-05-01  Bruno Haible  <bruno@clisp.org>
21698
21699         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21700         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21701         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21703         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21704         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21705         m4/locale-zh.m4, m4/codeset.m4.
21706
21707         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21708         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21709         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21710         m4/locale-zh.m4.
21711
21712         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21713         REPLACE_WCRTOMB if mbstate_t must be replaced.
21714         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21715         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21716
21717 2009-05-01  Bruno Haible  <bruno@clisp.org>
21718
21719         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21720         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21721         dngettext, dcngettext, textdomain, bindtextdomain,
21722         bind_textdomain_codeset): Undefine before redefining.
21723
21724 2009-04-30  Bruno Haible  <bruno@clisp.org>
21725
21726         Fix bug introduced on 2009-04-25.
21727         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21728         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21729         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21730         is defined.
21731         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21732         is defined.
21733         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21734         is defined.
21735         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21736
21737 2009-04-28  Bruno Haible  <bruno@clisp.org>
21738
21739         Comment tweaks.
21740         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21741         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21742         * lib/unicase.h (u*_casexfrm): Likewise.
21743         Reported by Paolo Bonzini.
21744
21745 2009-04-28  Bruno Haible  <bruno@clisp.org>
21746
21747         Fix a compilation error.
21748         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21749         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21750         Reported by Jim Meyering.
21751
21752 2009-04-27  Bruno Haible  <bruno@clisp.org>
21753
21754         New module 'libunistring'.
21755         * modules/libunistring: New file.
21756         * m4/libunistring.m4: New file.
21757         * MODULES.html.sh (Unicode string functions): Add it.
21758
21759 2009-04-27  Eric Blake  <ebb9@byu.net>
21760
21761         maint.mk: allow package-specific header to provide <config.h>
21762         * top/maint.mk (sc_require_config_h): New variable.
21763         (sc_require_config_h, sc_require_config_h_first): Use it.
21764
21765 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21766
21767         * top/maint.mk (sc_avoid_if_before_free): Except
21768         useless-if-before-free script.
21769
21770 2009-04-27  Eric Blake  <ebb9@byu.net>
21771
21772         maintainer-makefile: depend on all required helper scripts
21773         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21774         useless-if-before-free.
21775         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21776         version, rather than assuming gnulib checkout is available.
21777         Reported by Simen Josefsson.
21778
21779 2009-04-26  Bruno Haible  <bruno@clisp.org>
21780
21781         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21782         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21783         "../" or "..".
21784
21785 2009-04-26  Bruno Haible  <bruno@clisp.org>
21786
21787         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21788         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21789         AC_LIB_HAVE_LINKFLAGS.
21790
21791 2009-04-26  Bruno Haible  <bruno@clisp.org>
21792
21793         Simplify calling convention of u*_conv_from_encoding.
21794         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21795         u32_conv_from_encoding): Expect a resultbuf argument and return the
21796         result directly as a pointer.
21797         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21798         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21799         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21800         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21801         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21802         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21803         Update.
21804         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21805         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21806         * lib/vasnprintf.c (VASNPRINTF): Update.
21807         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21808         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21809         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21810         * NEWS: Mention the change.
21811
21812 2009-04-26  Bruno Haible  <bruno@clisp.org>
21813
21814         Simplify calling convention of u*_conv_to_encoding.
21815         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21816         u32_conv_to_encoding): Expect a resultbuf argument and return the
21817         result directly as a pointer.
21818         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21819         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21820         freeing scaled_offsets if mem_iconveha failed.
21821         * lib/unicase/u-casexfrm.h (FUNC): Update.
21822         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21823         * lib/vasnprintf.c (VASNPRINTF): Update.
21824         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21825         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21826         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21827         * NEWS: Mention the change.
21828
21829 2009-04-26  Bruno Haible  <bruno@clisp.org>
21830
21831         Avoid test failures on AIX and OSF/1.
21832         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21833         malloc(0).
21834         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21835         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21836         Likewise.
21837         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21838         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21839         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21840         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21841         * doc/posix-functions/malloc.texi: Document the portability problem
21842         related to malloc(0).
21843
21844 2009-04-26  Bruno Haible  <bruno@clisp.org>
21845
21846         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21847         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21848         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21849
21850 2009-04-25  Bruno Haible  <bruno@clisp.org>
21851
21852         Avoid link error when creating a namespace clean library.
21853         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21854         as macro with arguments if already defined as an alias.
21855         * lib/signbitf.c (gl_signbitf): Don't undefine.
21856         * lib/signbitd.c (gl_signbitd): Don't undefine.
21857         * lib/signbitl.c (gl_signbitl): Don't undefine.
21858
21859 2009-04-25  Jim Meyering  <meyering@redhat.com>
21860
21861         vc-list-files: fix another quoting bug
21862         * build-aux/vc-list-files: Avoid sed backslash expansion
21863         of pathological directory names.
21864
21865 2009-04-25  Eric Blake  <ebb9@byu.net>
21866
21867         vc-list-files: fix shell quoting error
21868         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21869         timestamp.
21870
21871 2009-04-25  Jim Meyering  <meyering@redhat.com>
21872
21873         vc-list-files: restore lost functionality with subdir argument
21874         * build-aux/vc-list-files: When given a non-"." sub-directory
21875         argument, substitute the $dir/ prefix back onto each resulting name.
21876         Otherwise, coreutils' root_tests check would fail.
21877
21878 2009-04-24  Eric Blake  <ebb9@byu.net>
21879
21880         vc-list-files: ignore git symlinks
21881         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21882         than ls-files, to ignore git symlinks.
21883
21884         maint.mk: import improvements from m4
21885         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21886         (move_if_change): Delete unused macro.
21887         (news-date-check, vc-diff-check): Support VPATH builds.
21888         (announcement): Likewise.  Split --bootstrap-tools list...
21889         (boostrap-tools): ...into separate list, which can be overridden
21890         in cfg.mk.
21891         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21892         requiring dependency on useless-if-before-free module.
21893         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21894         Support VPATH builds.
21895
21896 2009-04-24  Jim Meyering  <meyering@redhat.com>
21897
21898         maint.mk: remove coreutils-specific rules and variables
21899         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21900         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21901         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21902
21903         maint.mk: remove obsolete rule
21904         * top/maint.mk (rel-check): Remove rule.
21905         (WGET, WGETFLAGS): Remove now-unused variables.
21906
21907 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21908
21909         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21910         consistency.
21911
21912         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21913         '$(PATH_SEPARATOR)' instead of ':'.
21914
21915 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21916
21917         * lib/getopt1.c (main): Use 'const' for static array.
21918
21919 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21920
21921         * top/maint.mk: Sync with coreutils.
21922         * NEWS: Explain incompatibilities.
21923
21924 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21925             Bruno Haible  <bruno@clisp.org>
21926
21927         Fix cross-compilation results.
21928         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21929         statement, as third argument of AC_TRY_RUN.
21930         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21931         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21932         Likewise.
21933         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21934         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21935         Likewise.
21936         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21937         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21938         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21939
21940 2009-04-20  Bruno Haible  <bruno@clisp.org>
21941
21942         Avoid test failure on mingw.
21943         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21944
21945 2009-04-20  Bruno Haible  <bruno@clisp.org>
21946
21947         Avoid compilation error on mingw.
21948         * modules/localename-tests (Depends-on): Add locale.
21949
21950 2009-04-19  Bruno Haible  <bruno@clisp.org>
21951
21952         Support for building a shared library on Windows platforms.
21953         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21954         (main): Test the presence of UNINORM_NFC here.
21955         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21956         (main): Test the presence of UNINORM_NFD here.
21957         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21958         (main): Test the presence of UNINORM_NFKC here.
21959         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21960         (main): Test the presence of UNINORM_NFKD here.
21961
21962 2009-04-19  Bruno Haible  <bruno@clisp.org>
21963
21964         Avoid a compiler warning.
21965         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21966         Change type of variable 'sequence'.
21967
21968 2009-04-19  Bruno Haible  <bruno@clisp.org>
21969
21970         * modules/configmake (Makefile.am): When the contents of configmake.h
21971         does not change, arrange to preserve its modification time.
21972
21973 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21974
21975         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21976         gettext domain.
21977
21978 2009-04-16  Jim Meyering  <meyering@redhat.com>
21979
21980         useless-if-before-free: improve conversion code
21981         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21982         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21983
21984 2009-04-14  Bruno Haible  <bruno@clisp.org>
21985
21986         * modules/fcntl (Depends-on): Add extensions.
21987         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21988
21989 2009-04-12  Ben Pfaff  <blp@gnu.org>
21990
21991         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21992         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21993
21994 2009-03-20  Ben Pfaff  <blp@gnu.org>
21995
21996         Make rename replace existing destinations on Windows.
21997         * m4/rename.m4: Add test for Mingw.
21998         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21999         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22000         * doc/posix-functions/rename.texi: Document.
22001
22002 2009-04-10  Bruno Haible  <bruno@clisp.org>
22003
22004         New include file "iconveh.h".
22005         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22006         * lib/striconveh.h: Include it.
22007         (enum iconv_ilseq_handler): Remove definition.
22008         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22009         striconveh.h.
22010         * lib/striconveha.c: Include striconveh.h.
22011         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22012         * modules/striconveh (Files): Add lib/iconveh.h.
22013         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22014         lib/striconveh.h.
22015
22016 2009-04-10  Bruno Haible  <bruno@clisp.org>
22017
22018         * lib/uniconv.h: Update comment.
22019
22020 2009-04-10  Bruno Haible  <bruno@clisp.org>
22021
22022         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22023         always.
22024         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22025         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22026         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22027         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22028         "unistring-notinline.h", so that the function gets defined always.
22029         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22030         * lib/unistr/u8-uctomb.c: Likewise.
22031         * lib/unistr/u16-mbtouc.c: Likewise.
22032         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22033         * lib/unistr/u16-uctomb.c: Likewise.
22034         * lib/unistr/u32-mbtouc.c: Likewise.
22035         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22036         * lib/unistr/u32-uctomb.c: Likewise.
22037
22038 2009-04-10  Bruno Haible  <bruno@clisp.org>
22039
22040         Mark 'utime' obsolete.
22041         * modules/utime (Status, Notice): New sections.
22042         Suggested by Jim Meyering.
22043
22044         Fix cross-compile guess for utime test.
22045         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22046         autoconf.
22047         * doc/posix-functions/utime.texi: Give more precisions.
22048         Reported by Jan <ipif@ymail.com>.
22049
22050 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22051
22052         filevercmp: correct today's change
22053         * lib/filevercmp.c: Also handle coreutils' test inputs.
22054         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22055
22056         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22057         for reporting it.
22058         * lib/filevercmp.c: Special handle for "", "." and "..".
22059         * tests/test-filevercmp.c: Enlarge the set suite.
22060
22061 2009-04-07  Jim Meyering  <meyering@redhat.com>
22062
22063         useless-if-before-free: show how to remove braced useless free, too
22064         * build-aux/useless-if-before-free: still only in a comment, though.
22065
22066 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22067
22068         maint.mk: import changes to syntax-check macros from coreutils
22069         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22070         Use them in the relevant macros.
22071
22072 2009-04-06  Bruno Haible  <bruno@clisp.org>
22073
22074         Fix unportable use of bit-fields.
22075         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22076         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22077         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22078
22079 2009-04-06  Bruno Haible  <bruno@clisp.org>
22080
22081         Avoid test failures on AIX and OSF/1.
22082         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22083         that malloc(0) = NULL.
22084         * tests/unicase/test-u8-tolower.c (check): Likewise.
22085         * tests/unicase/test-u8-totitle.c (check): Likewise.
22086         * tests/unicase/test-u8-toupper.c (check): Likewise.
22087         * tests/unicase/test-u16-casefold.c (check): Likewise.
22088         * tests/unicase/test-u16-tolower.c (check): Likewise.
22089         * tests/unicase/test-u16-totitle.c (check): Likewise.
22090         * tests/unicase/test-u16-toupper.c (check): Likewise.
22091         * tests/unicase/test-u32-casefold.c (check): Likewise.
22092         * tests/unicase/test-u32-tolower.c (check): Likewise.
22093         * tests/unicase/test-u32-totitle.c (check): Likewise.
22094         * tests/unicase/test-u32-toupper.c (check): Likewise.
22095         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22096         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22097         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22098         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22099         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22100         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22101         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22102         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22103         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22104         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22105         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22106         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22107
22108 2009-04-05  Bruno Haible  <bruno@clisp.org>
22109
22110         Work around an autoconf limitation.
22111         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22112         comment line if it would be longer than 3 KB.
22113
22114 2009-04-05  Bruno Haible  <bruno@clisp.org>
22115
22116         Avoid test failure with libiconv-1.13.
22117         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22118         of the expected test results.
22119
22120 2009-04-05  Bruno Haible  <bruno@clisp.org>
22121
22122         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22123         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22124         that it should be installed.
22125
22126 2009-04-05  Bruno Haible  <bruno@clisp.org>
22127
22128         * gnulib-tool: New option --copy-file.
22129         (func_usage): Document it.
22130         (func_dest_tmpfilename): Moved out of func_import.
22131         (func_add_file, func_update_file): New functions, extracted from
22132         func_import.
22133         (func_import): Update.
22134
22135 2009-04-05  Karl Berry  <karl@gnu.org>
22136
22137         * README: prominently mention gnulib-tool.
22138         Rearrange sections so getting the code is near the top.
22139
22140 2009-04-05  Bruno Haible  <bruno@clisp.org>
22141
22142         * lib/unicase.h: Mention u*_cmp2.
22143         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22144         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22145         * lib/unicase/ulc-casecmp.c: Likewise.
22146         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22147         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22148         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22149         unistr/u8-cmp.
22150         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22151         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22152         unistr/u16-cmp.
22153         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22154         unistr/u32-cmp.
22155
22156         * lib/uninorm.h: Mention u*_cmp2.
22157         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22158         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22159         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22160         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22161         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22162         unistr/u8-cmp.
22163         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22164         unistr/u16-cmp.
22165         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22166         unistr/u32-cmp.
22167
22168         New module 'unistr/u32-cmp2'.
22169         * lib/unistr/u32-cmp2.c: New file.
22170         * modules/unistr/u32-cmp2: New file.
22171
22172         New module 'unistr/u16-cmp2'.
22173         * lib/unistr/u16-cmp2.c: New file.
22174         * modules/unistr/u16-cmp2: New file.
22175
22176         New module 'unistr/u8-cmp2'.
22177         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22178         * lib/unistr/u8-cmp2.c: New file.
22179         * lib/unistr/u-cmp2.h: New file.
22180         * modules/unistr/u8-cmp2: New file.
22181
22182 2009-04-05  Bruno Haible  <bruno@clisp.org>
22183
22184         * lib/unictype.h (uc_property_is_valid): New macro.
22185         * tests/unictype/test-pr_byname.c (main): Use it.
22186
22187         * lib/unistr.h: Doc fixes.
22188         * lib/uniconv.h: Doc fixes.
22189         * lib/unictype.h: Doc fixes.
22190
22191 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22192
22193         Port coreutils 7.2 to Solaris 8.
22194
22195         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22196         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22197         for Solaris 8.  This is a bit of a hack, as it means it's the
22198         caller's responsibility to add -lnsl if needed, but most likely it
22199         won't be needed since only getaddrinfo uses this and getaddrinfo
22200         isn't needed on Solaris 8.
22201
22202         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22203         problem to Solaris 8 encountered with coreutils 7.2, which
22204         resulted in a message "fnmatch.c:292: warning: passing argument 4
22205         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22206         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22207
22208 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22209
22210         * m4/ld-version-script.m4: Add FIXME comment.
22211
22212 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22213
22214         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22215         SOVERSION variable.
22216
22217 2009-04-02  Bruno Haible  <bruno@clisp.org>
22218
22219         * Makefile (info, html, dvi, pdf): Combine the rules.
22220         Suggested by Jim Meyering.
22221
22222 2009-04-01  Bruno Haible  <bruno@clisp.org>
22223
22224         * Makefile (info, html, dvi, pdf): New targets.
22225         Reported by Reuben Thomas <rrt@sc3d.org>.
22226
22227 2009-04-01  Bruno Haible  <bruno@clisp.org>
22228
22229         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22230         can be put into PATH.
22231         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22232
22233 2009-04-01  Bruno Haible  <bruno@clisp.org>
22234
22235         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22236
22237 2009-04-01  Bruno Haible  <bruno@clisp.org>
22238
22239         Rename module 'visibility'.
22240         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22241         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22242         * doc/gnulib.texi: Update.
22243         * MODULES.html.sh (Misc): Update.
22244         * NEWS: Mention the change.
22245
22246 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22247
22248         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22249         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22250         Eric Blake <ebb9@byu.net> for review.
22251         * MODULES.html.sh: Add lib-msvc-compat.
22252         * doc/gnulib.texi: Link to new section.
22253         * m4/ld-output-def.m4: New file.
22254         * doc/ld-output-def.texi: New file.
22255
22256 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22257
22258         Rename ld-version-script to lib-symbol-versions.  Suggested by
22259         Bruno Haible <bruno@clisp.org>.
22260         * modules/ld-version-script: Renamed to lib-symbol-versions.
22261         * doc/ld-version-script.texi: Fix module name.
22262         * MODULES.html.sh: Add lib-symbol-versions.
22263
22264 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22265
22266         * modules/u64-tests: New file.
22267         * tests/test-u64.c: New file.
22268
22269 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22270
22271         * MODULES.html.sh: Mention u64.
22272         * modules/u64: New module.
22273         * modules/crypto/sha512: Depend on u64 module instead of providing
22274         u64.h.
22275
22276 2009-03-27  Eric Blake  <ebb9@byu.net>
22277
22278         test-strerror: make debugging EAI_SYSTEM easier
22279         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22280         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22281         failure was EAI_SYSTEM.
22282
22283 2009-03-25  Bruno Haible  <bruno@clisp.org>
22284
22285         Fix a problem with --enable-relocatable on Solaris 7.
22286         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22287         since 2008-02-24.
22288
22289 2009-03-25  Eric Blake  <ebb9@byu.net>
22290
22291         test-sockets: avoid gcc warning
22292         * tests/test-sockets.c (main): Silence compiler warning.
22293
22294 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22295
22296         New modules nproc, pthread, contributed by Glen Lenker.
22297
22298         * MODULES.html.sh: Add pthread, nproc.
22299         * lib/nproc.c: New file.
22300         * lib/nproc.h: New file.
22301         * lib/pthread.in.h: New file.
22302         * m4/pthread.m4: New file.
22303         * modules/nproc: New file.
22304         * modules/pthread: New file.
22305
22306 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22307
22308         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22309         New variable.
22310
22311 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22312
22313         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22314         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22315         * tests/test-filevercmp.c: Add tests for backup suffixes.
22316
22317 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22318
22319         * modules/stdlib (Depends-on): Add stdint, needed when defining
22320         struct random_data on, for example, HP-UX 10.20.  Reported by
22321         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22322
22323 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22324
22325         * lib/readline.c (readline): Call fflush on stdout after printing
22326         prompt.
22327
22328 2009-03-20  Bruno Haible  <bruno@clisp.org>
22329
22330         Remove dependency from 'close' module to -lws2_32 on native Windows.
22331         * lib/close-hook.h: New file.
22332         * lib/close-hook.c: New file.
22333         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22334         w32sock.h.
22335         (_gl_close_fd_maybe_socket): Remove function.
22336         (rpl_close): Invoke execute_all_close_hooks instead of
22337         _gl_close_fd_maybe_socket.
22338         * lib/sockets.c: Include close-hook.h, w32sock.h.
22339         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22340         (close_sockets_hook): New variable.
22341         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22342         (gl_sockets_cleanup): Unregister it.
22343         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22344         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22345         * modules/close-hook: New file.
22346         * modules/close (Files): Remove lib/w32sock.h.
22347         (Depends-on): Add close-hook.
22348         (Link): Remove section.
22349         * modules/sockets (Files): Add lib/w32sock.h.
22350         (Depends-on): Add close-hook.
22351         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22352         invocation.
22353         * NEWS: Mention that LIB_CLOSE is gone.
22354
22355 2009-03-23  Eric Blake  <ebb9@byu.net>
22356
22357         signal-tests: test previous patch
22358         * tests/test-signal.c: New file.
22359         * modules/signal-tests: Likewise.
22360
22361         signal.h: always support 'volatile sig_atomic_t'
22362         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22363         (gl_SIGNAL_H_DEFAULTS): Add a default.
22364         * modules/signal (Makefile.am): Substitute if needed.
22365         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22366         users can blindly add volatile.
22367         * doc/posix-headers/signal.texi (signal.h): Document it.
22368         Reported by Matthew Woehlke.
22369
22370 2009-03-23  Jim Meyering  <meyering@redhat.com>
22371
22372         pathmax: PATH_MAX: use pathconf only when available
22373         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22374         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22375         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22376         This avoids a link failure in a PSP cross-compilation environment
22377         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22378
22379         * lib/vasnprintf.c (divide): Fix typo in comment.
22380
22381 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22382
22383         * gnulib-tool (func_filter_filelist): Fix comment.
22384
22385 2009-03-20  Bruno Haible  <bruno@clisp.org>
22386
22387         Make sockets.h self-contained.
22388         * lib/sockets.c: Include sockets.h first.
22389         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22390
22391 2009-03-19  Eric Blake  <ebb9@byu.net>
22392
22393         doc: mention more functions added in cygwin 1.7.0
22394         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22395         addition.
22396         * doc/posix-functions/log2f.texi: Likewise.
22397
22398 2009-03-19  Jim Meyering  <meyering@redhat.com>
22399
22400         fsusage: avoid syntax error due to statement-before-declaration
22401         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22402         after all declarations.  Reported by Matthew Woehlke in
22403         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22404
22405 2009-03-18  Eric Blake  <ebb9@byu.net>
22406
22407         build-aux/compile: sync from automake
22408         * build-aux/compile: New file, from automake.
22409         * config/srclist.txt: Mention build-aux/compile.
22410
22411 2009-03-17  Bruno Haible  <bruno@clisp.org>
22412
22413         * lib/git-merge-changelog.c: Fix typo in comment.
22414         Reported by Reuben Thomas <rrt@sc3d.org>.
22415
22416 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22417
22418         * m4/regex.m4: update and improve help for
22419         --without-included-regex.
22420
22421 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22422
22423         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22424         failure on missing include files.
22425
22426 2009-03-17  Eric Blake  <ebb9@byu.net>
22427
22428         doc: mention more functions added in cygwin 1.7.0
22429         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22430         addition.
22431         * doc/posix-functions/fwscanf.texi: Likewise.
22432         * doc/posix-functions/swprintf.texi: Likewise.
22433         * doc/posix-functions/swscanf.texi: Likewise.
22434         * doc/posix-functions/vfwprintf.texi: Likewise.
22435         * doc/posix-functions/vfwscanf.texi: Likewise.
22436         * doc/posix-functions/vswprintf.texi: Likewise.
22437         * doc/posix-functions/vswscanf.texi: Likewise.
22438         * doc/posix-functions/vwprintf.texi: Likewise.
22439         * doc/posix-functions/vwscanf.texi: Likewise.
22440         * doc/posix-functions/wcscasecmp.texi: Likewise.
22441         * doc/posix-functions/wcsdup.texi: Likewise.
22442         * doc/posix-functions/wcsftime.texi: Likewise.
22443         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22444         * doc/posix-functions/wprintf.texi: Likewise.
22445         * doc/posix-functions/wscanf.texi: Likewise.
22446         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22447
22448 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22449
22450         maint.mk: really add $(AM_MAKEFLAGS)
22451         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22452         was inadvertently omitted in the last commit.
22453         Spotted by Bruno Haible.
22454
22455         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22456         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22457         $(AM_MAKEFLAGS)' rather than plain `make'.
22458
22459         gnulib-tool: execute $MAKE not make
22460         * gnulib-tool: Default $MAKE to 'make'.
22461         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22462         than make.  Initialize $MAKE in the do-autobuild script.
22463
22464         gnulib-tool: use $MAKE not make in generated files
22465         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22466         make, in generated files.  Initialize $MAKE in the do-autobuild
22467         script.
22468
22469         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22470
22471         GNUmakefile: disable parallelism only for multiple, recursive targets
22472         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22473         additions in the Makefile.
22474         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22475         by Automake.
22476         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22477         are listed on the command line and at least one of them is
22478         listed in $(ALL_RECURSIVE_TARGETS).
22479
22480 2009-03-14  Bruno Haible  <bruno@clisp.org>
22481
22482         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22483         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22484         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22485         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22486         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22487         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22488         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22489         unistr/u8-uctomb.
22490         * modules/unistr/u8-strchr (Depends-on): Likewise.
22491         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22492         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22493         unistr/u16-uctomb.
22494         * modules/unistr/u16-strchr (Depends-on): Likewise.
22495         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22496
22497 2009-03-12  Bruno Haible  <bruno@clisp.org>
22498
22499         Work around select() bug on Interix 3.5.
22500         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22501         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22502         * m4/select.m4: New file.
22503         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22504         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22505         * modules/select (Files): Add m4/select.m4.
22506         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22507         * modules/nanosleep (Depends-on): Add select.
22508         * modules/poll (Depends-on): Likewise.
22509         * doc/posix-functions/select.texi: Mention the Interix bug.
22510         Reported by Markus Duft <mduft@gentoo.org>.
22511
22512         * lib/select.c: Renamed from lib/winsock-select.c.
22513         * modules/select (Files): Add lib/select.c, remove
22514         lib/winsock-select.c.
22515         (configure.ac): Update.
22516
22517 2009-03-12  Jim Meyering  <meyering@redhat.com>
22518
22519         avoid gcc warnings about unused macro definitions
22520         * lib/readtokens.c (STREQ): Remove unused definition.
22521         * lib/xmalloc.c (SIZE_MAX): Likewise.
22522         * lib/openat-die.c (N_): Likewise.
22523         * lib/mountlist.c (SIZE_MAX): Remove definition.
22524         Instead, include <stdint.h>.
22525         * lib/readutmp.c: Likewise.
22526         * modules/readutmp (Depends-on): Add stdint.
22527         * modules/mountlist (Depends-on): Add stdint.
22528         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22529
22530 2009-03-10  Bruno Haible  <bruno@clisp.org>
22531
22532         Tests for module 'mbmemcasecoll'.
22533         * modules/mbmemcasecoll-tests: New file.
22534         * tests/test-mbmemcasecoll1.sh: New file.
22535         * tests/test-mbmemcasecoll2.sh: New file.
22536         * tests/test-mbmemcasecoll3.sh: New file.
22537         * tests/test-mbmemcasecoll.c: New file.
22538
22539         New module 'mbmemcasecoll'.
22540         * lib/mbmemcasecoll.h: New file.
22541         * lib/mbmemcasecoll.c: New file.
22542         * modules/mbmemcasecoll: New file.
22543
22544         * tests/test-mbmemcasecmp.h: New file, extracted from
22545         tests/test-mbmemcasecmp.c.
22546         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22547         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22548         (main): Update.
22549         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22550
22551 2009-03-09  Bruno Haible  <bruno@clisp.org>
22552
22553         Tests for module 'mbmemcasecmp'.
22554         * modules/mbmemcasecmp-tests: New file.
22555         * tests/test-mbmemcasecmp1.sh: New file.
22556         * tests/test-mbmemcasecmp2.sh: New file.
22557         * tests/test-mbmemcasecmp3.sh: New file.
22558         * tests/test-mbmemcasecmp.c: New file.
22559
22560         New module 'mbmemcasecmp'.
22561         * lib/mbmemcasecmp.h: New file.
22562         * lib/mbmemcasecmp.c: New file.
22563         * modules/mbmemcasecmp: New file.
22564
22565 2009-03-09  Bruno Haible  <bruno@clisp.org>
22566
22567         Tests for module 'unicase/ulc-casecoll'.
22568         * modules/unicase/ulc-casecoll-tests: New file.
22569         * tests/unicase/test-ulc-casecoll1.sh: New file.
22570         * tests/unicase/test-ulc-casecoll2.sh: New file.
22571         * tests/unicase/test-ulc-casecoll.c: New file.
22572
22573         New module 'unicase/ulc-casecoll'.
22574         * lib/unicase.h (ulc_casecoll): New declaration.
22575         * lib/unicase/ulc-casecoll.c: New file.
22576         * modules/unicase/ulc-casecoll: New file.
22577
22578         New module 'unicase/ulc-casexfrm'.
22579         * lib/unicase.h (ulc_casexfrm): New declaration.
22580         * lib/unicase/ulc-casexfrm.c: New file.
22581         * modules/unicase/ulc-casexfrm: New file.
22582
22583 2009-03-09  Bruno Haible  <bruno@clisp.org>
22584
22585         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22586         invocations.
22587
22588         * m4/mbscasecmp.m4: Remove file.
22589         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22590         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22591
22592         * m4/mbscasestr.m4: Remove file.
22593         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22594         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22595
22596         * m4/mbschr.m4: Remove file.
22597         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22598         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22599
22600         * m4/mbscspn.m4: Remove file.
22601         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22602         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22603
22604         * m4/mbslen.m4: Remove file.
22605         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22606         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22607
22608         * m4/mbsncasecmp.m4: Remove file.
22609         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22610         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22611
22612         * m4/mbsnlen.m4: Remove file.
22613         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22614         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22615
22616         * m4/mbspbrk.m4: Remove file.
22617         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22618         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22619
22620         * m4/mbspcasecmp.m4: Remove file.
22621         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22622         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22623
22624         * m4/mbsrchr.m4: Remove file.
22625         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22626         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22627
22628         * m4/mbssep.m4: Remove file.
22629         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22630         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22631
22632         * m4/mbsspn.m4: Remove file.
22633         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22634         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22635
22636         * m4/mbsstr.m4: Remove file.
22637         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22638         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22639
22640         * m4/mbstok_r.m4: Remove file.
22641         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22642         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22643
22644         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22645
22646         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22647         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22648
22649         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22650
22651 2009-03-08  Bruno Haible  <bruno@clisp.org>
22652
22653         Tests for module 'unicase/ulc-casecmp'.
22654         * modules/unicase/ulc-casecmp-tests: New file.
22655         * tests/unicase/test-ulc-casecmp1.sh: New file.
22656         * tests/unicase/test-ulc-casecmp2.sh: New file.
22657         * tests/unicase/test-ulc-casecmp.c: New file.
22658
22659         New module 'unicase/ulc-casecmp'.
22660         * lib/unicase.h (ulc_casecmp): New declaration.
22661         * lib/unicase/ulc-casecmp.c: New file.
22662         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22663         'const SRC_UNIT *'.
22664         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22665         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22666         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22667         * modules/unicase/ulc-casecmp: New file.
22668
22669         Tests for module 'unicase/u32-is-cased'.
22670         * modules/unicase/u32-is-cased-tests: New file.
22671         * tests/unicase/test-u32-is-cased.c: New file.
22672
22673         Tests for module 'unicase/u16-is-cased'.
22674         * modules/unicase/u16-is-cased-tests: New file.
22675         * tests/unicase/test-u16-is-cased.c: New file.
22676
22677         Tests for module 'unicase/u8-is-cased'.
22678         * modules/unicase/u8-is-cased-tests: New file.
22679         * tests/unicase/test-u8-is-cased.c: New file.
22680         * tests/unicase/test-is-cased.h: New file.
22681
22682         New module 'unicase/u32-is-cased'.
22683         * lib/unicase/u32-is-cased.c: New file.
22684         * modules/unicase/u32-is-cased: New file.
22685
22686         New module 'unicase/u16-is-cased'.
22687         * lib/unicase/u16-is-cased.c: New file.
22688         * modules/unicase/u16-is-cased: New file.
22689
22690         New module 'unicase/u8-is-cased'.
22691         * lib/unicase/u8-is-cased.c: New file.
22692         * lib/unicase/u-is-cased.h: New file.
22693         * modules/unicase/u8-is-cased: New file.
22694
22695         Tests for module 'unicase/u32-is-casefolded'.
22696         * modules/unicase/u32-is-casefolded-tests: New file.
22697         * tests/unicase/test-u32-is-casefolded.c: New file.
22698
22699         Tests for module 'unicase/u16-is-casefolded'.
22700         * modules/unicase/u16-is-casefolded-tests: New file.
22701         * tests/unicase/test-u16-is-casefolded.c: New file.
22702
22703         Tests for module 'unicase/u8-is-casefolded'.
22704         * modules/unicase/u8-is-casefolded-tests: New file.
22705         * tests/unicase/test-u8-is-casefolded.c: New file.
22706         * tests/unicase/test-is-casefolded.h: New file.
22707
22708         New module 'unicase/u32-is-casefolded'.
22709         * lib/unicase/u32-is-casefolded.c: New file.
22710         * modules/unicase/u32-is-casefolded: New file.
22711
22712         New module 'unicase/u16-is-casefolded'.
22713         * lib/unicase/u16-is-casefolded.c: New file.
22714         * modules/unicase/u16-is-casefolded: New file.
22715
22716         New module 'unicase/u8-is-casefolded'.
22717         * lib/unicase/u8-is-casefolded.c: New file.
22718         * modules/unicase/u8-is-casefolded: New file.
22719
22720         Tests for module 'unicase/u32-is-titlecase'.
22721         * modules/unicase/u32-is-titlecase-tests: New file.
22722         * tests/unicase/test-u32-is-titlecase.c: New file.
22723
22724         Tests for module 'unicase/u16-is-titlecase'.
22725         * modules/unicase/u16-is-titlecase-tests: New file.
22726         * tests/unicase/test-u16-is-titlecase.c: New file.
22727
22728         Tests for module 'unicase/u8-is-titlecase'.
22729         * modules/unicase/u8-is-titlecase-tests: New file.
22730         * tests/unicase/test-u8-is-titlecase.c: New file.
22731         * tests/unicase/test-is-titlecase.h: New file.
22732
22733         New module 'unicase/u32-is-titlecase'.
22734         * lib/unicase/u32-is-titlecase.c: New file.
22735         * modules/unicase/u32-is-titlecase: New file.
22736
22737         New module 'unicase/u16-is-titlecase'.
22738         * lib/unicase/u16-is-titlecase.c: New file.
22739         * modules/unicase/u16-is-titlecase: New file.
22740
22741         New module 'unicase/u8-is-titlecase'.
22742         * lib/unicase/u8-is-titlecase.c: New file.
22743         * modules/unicase/u8-is-titlecase: New file.
22744
22745         Tests for module 'unicase/u32-is-lowercase'.
22746         * modules/unicase/u32-is-lowercase-tests: New file.
22747         * tests/unicase/test-u32-is-lowercase.c: New file.
22748
22749         Tests for module 'unicase/u16-is-lowercase'.
22750         * modules/unicase/u16-is-lowercase-tests: New file.
22751         * tests/unicase/test-u16-is-lowercase.c: New file.
22752
22753         Tests for module 'unicase/u8-is-lowercase'.
22754         * modules/unicase/u8-is-lowercase-tests: New file.
22755         * tests/unicase/test-u8-is-lowercase.c: New file.
22756         * tests/unicase/test-is-lowercase.h: New file.
22757
22758         New module 'unicase/u32-is-lowercase'.
22759         * lib/unicase/u32-is-lowercase.c: New file.
22760         * modules/unicase/u32-is-lowercase: New file.
22761
22762         New module 'unicase/u16-is-lowercase'.
22763         * lib/unicase/u16-is-lowercase.c: New file.
22764         * modules/unicase/u16-is-lowercase: New file.
22765
22766         New module 'unicase/u8-is-lowercase'.
22767         * lib/unicase/u8-is-lowercase.c: New file.
22768         * modules/unicase/u8-is-lowercase: New file.
22769
22770         Tests for module 'unicase/u32-is-uppercase'.
22771         * modules/unicase/u32-is-uppercase-tests: New file.
22772         * tests/unicase/test-u32-is-uppercase.c: New file.
22773
22774         Tests for module 'unicase/u16-is-uppercase'.
22775         * modules/unicase/u16-is-uppercase-tests: New file.
22776         * tests/unicase/test-u16-is-uppercase.c: New file.
22777
22778         Tests for module 'unicase/u8-is-uppercase'.
22779         * modules/unicase/u8-is-uppercase-tests: New file.
22780         * tests/unicase/test-u8-is-uppercase.c: New file.
22781         * tests/unicase/test-is-uppercase.h: New file.
22782
22783         New module 'unicase/u32-is-uppercase'.
22784         * lib/unicase/u32-is-uppercase.c: New file.
22785         * modules/unicase/u32-is-uppercase: New file.
22786
22787         New module 'unicase/u16-is-uppercase'.
22788         * lib/unicase/u16-is-uppercase.c: New file.
22789         * modules/unicase/u16-is-uppercase: New file.
22790
22791         New module 'unicase/u8-is-uppercase'.
22792         * lib/unicase/u8-is-uppercase.c: New file.
22793         * modules/unicase/u8-is-uppercase: New file.
22794
22795         New module 'unicase/u32-is-invariant'.
22796         * lib/unicase/u32-is-invariant.c: New file.
22797         * modules/unicase/u32-is-invariant: New file.
22798
22799         New module 'unicase/u16-is-invariant'.
22800         * lib/unicase/u16-is-invariant.c: New file.
22801         * modules/unicase/u16-is-invariant: New file.
22802
22803         New module 'unicase/u8-is-invariant'.
22804         * lib/unicase/u8-is-invariant.c: New file.
22805         * lib/unicase/invariant.h: New file.
22806         * lib/unicase/u-is-invariant.h: New file.
22807         * modules/unicase/u8-is-invariant: New file.
22808
22809         Tests for module 'unicase/u32-casecoll'.
22810         * modules/unicase/u32-casecoll-tests: New file.
22811         * tests/unicase/test-u32-casecoll.c: New file.
22812
22813         Tests for module 'unicase/u16-casecoll'.
22814         * modules/unicase/u16-casecoll-tests: New file.
22815         * tests/unicase/test-u16-casecoll.c: New file.
22816
22817         Tests for module 'unicase/u8-casecoll'.
22818         * modules/unicase/u8-casecoll-tests: New file.
22819         * tests/unicase/test-u8-casecoll.c: New file.
22820
22821         New module 'unicase/u32-casecoll'.
22822         * lib/unicase/u32-casecoll.c: New file.
22823         * modules/unicase/u32-casecoll: New file.
22824
22825         New module 'unicase/u16-casecoll'.
22826         * lib/unicase/u16-casecoll.c: New file.
22827         * modules/unicase/u16-casecoll: New file.
22828
22829         New module 'unicase/u8-casecoll'.
22830         * lib/unicase/u8-casecoll.c: New file.
22831         * lib/unicase/u-casecoll.h: New file.
22832         * modules/unicase/u8-casecoll: New file.
22833
22834         New module 'unicase/u32-casexfrm'.
22835         * lib/unicase/u32-casexfrm.c: New file.
22836         * modules/unicase/u32-casexfrm: New file.
22837
22838         New module 'unicase/u16-casexfrm'.
22839         * lib/unicase/u16-casexfrm.c: New file.
22840         * modules/unicase/u16-casexfrm: New file.
22841
22842         New module 'unicase/u8-casexfrm'.
22843         * lib/unicase/u8-casexfrm.c: New file.
22844         * lib/unicase/u-casexfrm.h: New file.
22845         * modules/unicase/u8-casexfrm: New file.
22846
22847         Tests for module 'unicase/u32-casecmp'.
22848         * modules/unicase/u32-casecmp-tests: New file.
22849         * tests/unicase/test-u32-casecmp.c: New file.
22850
22851         Tests for module 'unicase/u16-casecmp'.
22852         * modules/unicase/u16-casecmp-tests: New file.
22853         * tests/unicase/test-u16-casecmp.c: New file.
22854
22855         Tests for module 'unicase/u8-casecmp'.
22856         * modules/unicase/u8-casecmp-tests: New file.
22857         * tests/unicase/test-u8-casecmp.c: New file.
22858         * tests/unicase/test-casecmp.h: New file.
22859
22860         New module 'unicase/u32-casecmp'.
22861         * lib/unicase/u32-casecmp.c: New file.
22862         * modules/unicase/u32-casecmp: New file.
22863
22864         New module 'unicase/u16-casecmp'.
22865         * lib/unicase/u16-casecmp.c: New file.
22866         * modules/unicase/u16-casecmp: New file.
22867
22868         New module 'unicase/u8-casecmp'.
22869         * lib/unicase/u8-casecmp.c: New file.
22870         * lib/unicase/u-casecmp.h: New file.
22871         * modules/unicase/u8-casecmp: New file.
22872
22873         Tests for module 'unicase/u32-casefold'.
22874         * modules/unicase/u32-casefold-tests: New file.
22875         * tests/unicase/test-u32-casefold.c: New file.
22876
22877         Tests for module 'unicase/u16-casefold'.
22878         * modules/unicase/u16-casefold-tests: New file.
22879         * tests/unicase/test-u16-casefold.c: New file.
22880
22881         Tests for module 'unicase/u8-casefold'.
22882         * modules/unicase/u8-casefold-tests: New file.
22883         * tests/unicase/test-u8-casefold.c: New file.
22884
22885         New module 'unicase/u32-casefold'.
22886         * lib/unicase/u32-casefold.c: New file.
22887         * modules/unicase/u32-casefold: New file.
22888
22889         New module 'unicase/u16-casefold'.
22890         * lib/unicase/u16-casefold.c: New file.
22891         * modules/unicase/u16-casefold: New file.
22892
22893         New module 'unicase/u8-casefold'.
22894         * lib/unicase/u8-casefold.c: New file.
22895         * lib/unicase/u-casefold.h: New file.
22896         * modules/unicase/u8-casefold: New file.
22897
22898         New module 'unicase/tocasefold'.
22899         * lib/unicase/casefold.h: New file.
22900         * lib/unicase/tocasefold.c: New file.
22901         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22902         * modules/unicase/tocasefold: New file.
22903
22904         Tests for module 'unicase/u32-totitle'.
22905         * modules/unicase/u32-totitle-tests: New file.
22906         * tests/unicase/test-u32-totitle.c: New file.
22907
22908         Tests for module 'unicase/u16-totitle'.
22909         * modules/unicase/u16-totitle-tests: New file.
22910         * tests/unicase/test-u16-totitle.c: New file.
22911
22912         Tests for module 'unicase/u8-totitle'.
22913         * modules/unicase/u8-totitle-tests: New file.
22914         * tests/unicase/test-u8-totitle.c: New file.
22915
22916         New module 'unicase/u32-totitle'.
22917         * lib/unicase/u32-totitle.c: New file.
22918         * modules/unicase/u32-totitle: New file.
22919
22920         New module 'unicase/u16-totitle'.
22921         * lib/unicase/u16-totitle.c: New file.
22922         * modules/unicase/u16-totitle: New file.
22923
22924         New module 'unicase/u8-totitle'.
22925         * lib/unicase/u8-totitle.c: New file.
22926         * lib/unicase/u-totitle.h: New file.
22927         * modules/unicase/u8-totitle: New file.
22928
22929         Tests for module 'unicase/u32-tolower'.
22930         * modules/unicase/u32-tolower-tests: New file.
22931         * tests/unicase/test-u32-tolower.c: New file.
22932
22933         Tests for module 'unicase/u16-tolower'.
22934         * modules/unicase/u16-tolower-tests: New file.
22935         * tests/unicase/test-u16-tolower.c: New file.
22936
22937         Tests for module 'unicase/u8-tolower'.
22938         * modules/unicase/u8-tolower-tests: New file.
22939         * tests/unicase/test-u8-tolower.c: New file.
22940
22941         New module 'unicase/u32-tolower'.
22942         * lib/unicase/u32-tolower.c: New file.
22943         * modules/unicase/u32-tolower: New file.
22944
22945         New module 'unicase/u16-tolower'.
22946         * lib/unicase/u16-tolower.c: New file.
22947         * modules/unicase/u16-tolower: New file.
22948
22949         New module 'unicase/u8-tolower'.
22950         * lib/unicase/u8-tolower.c: New file.
22951         * modules/unicase/u8-tolower: New file.
22952
22953         Tests for module 'unicase/u32-toupper'.
22954         * modules/unicase/u32-toupper-tests: New file.
22955         * tests/unicase/test-u32-toupper.c: New file.
22956
22957         Tests for module 'unicase/u16-toupper'.
22958         * modules/unicase/u16-toupper-tests: New file.
22959         * tests/unicase/test-u16-toupper.c: New file.
22960
22961         Tests for module 'unicase/u8-toupper'.
22962         * modules/unicase/u8-toupper-tests: New file.
22963         * tests/unicase/test-u8-toupper.c: New file.
22964
22965         New module 'unicase/u32-toupper'.
22966         * lib/unicase/u32-toupper.c: New file.
22967         * modules/unicase/u32-toupper: New file.
22968
22969         New module 'unicase/u16-toupper'.
22970         * lib/unicase/u16-toupper.c: New file.
22971         * modules/unicase/u16-toupper: New file.
22972
22973         New module 'unicase/u8-toupper'.
22974         * lib/unicase/u8-toupper.c: New file.
22975         * modules/unicase/u8-toupper: New file.
22976
22977         New module 'unicase/u32-casemap'.
22978         * lib/unicase/u32-casemap.c: New file.
22979         * modules/unicase/u32-casemap: New file.
22980
22981         New module 'unicase/u16-casemap'.
22982         * lib/unicase/u16-casemap.c: New file.
22983         * modules/unicase/u16-casemap: New file.
22984
22985         New module 'unicase/u8-casemap'.
22986         * lib/unicase/unicasemap.h: New file.
22987         * lib/unicase/u8-casemap.c: New file.
22988         * lib/unicase/u-casemap.h: New file.
22989         * modules/unicase/u8-casemap: New file.
22990
22991         New module 'unicase/special-casing'.
22992         * lib/unicase/special-casing.h: New file.
22993         * lib/unicase/special-casing.c: New file.
22994         * lib/unicase/special-casing-table.gperf: New file, generated by
22995         gen-uni-tables.c.
22996         * modules/unicase/special-casing: New file.
22997
22998         Tests for module 'unicase/locale-language'.
22999         * modules/unicase/locale-language-tests: New file.
23000         * tests/unicase/test-locale-language.sh: New file.
23001         * tests/unicase/test-locale-language.c: New file.
23002
23003         New module 'unicase/locale-language'.
23004         * lib/unicase/locale-language.c: New file.
23005         * lib/unicase/locale-languages.gperf: New file.
23006         * modules/unicase/locale-language: New file.
23007
23008         Generate more tables for case conversion and case folding.
23009         * lib/gen-uni-tables.c (SCC_*): New enum items.
23010         (struct special_casing_rule): New type.
23011         (casing_rules, num_casing_rules, allocated_casing_rules): New
23012         variables.
23013         (add_casing_rule, fill_casing_rules): New functions.
23014         (struct casefold_rule): New type.
23015         (casefolding_rules, num_casefolding_rules,
23016         allocated_casefolding_rules): New variables.
23017         (fill_casefolding_rules): New function.
23018         (unicode_casefold): New variable.
23019         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23020         sort_casing_rules, output_casing_rules): New functions.
23021         (main): Accept to more arguments: SpecialCasing.txt and
23022         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23023         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23024         Output mapping for casefolding.
23025
23026         * lib/unicase.h: Include stdbool.h, uninorm.h.
23027         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23028         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23029         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23030         arguments.
23031         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23032         resultp arguments.
23033         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23034         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23035         resultp arguments.
23036         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23037         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23038         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23039         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23040         declarations.
23041         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23042
23043 2009-03-08  Bruno Haible  <bruno@clisp.org>
23044
23045         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23046         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23047         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23048         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23049
23050 2009-03-07  Bruno Haible  <bruno@clisp.org>
23051
23052         Adjust u*_normcmp, u*_normcoll API.
23053         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23054         u16_normcoll, u32_normcoll): Change failure conventions.
23055         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23056         errno and return -1.
23057         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23058
23059 2009-03-07  Bruno Haible  <bruno@clisp.org>
23060
23061         Tests for module 'uninorm/u32-normcoll'.
23062         * modules/uninorm/u32-normcoll-tests: New file.
23063         * tests/uninorm/test-u32-normcoll.c: New file.
23064
23065         Tests for module 'uninorm/u16-normcoll'.
23066         * modules/uninorm/u16-normcoll-tests: New file.
23067         * tests/uninorm/test-u16-normcoll.c: New file.
23068
23069         Tests for module 'uninorm/u8-normcoll'.
23070         * modules/uninorm/u8-normcoll-tests: New file.
23071         * tests/uninorm/test-u8-normcoll.c: New file.
23072
23073 2009-03-07  Bruno Haible  <bruno@clisp.org>
23074
23075         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23076         tests/uninorm/test-u32-normcmp.c.
23077         * tests/uninorm/test-u32-normcmp.c: Include it.
23078         (test_nonascii): New function, extracted from main. Add some more
23079         tests.
23080         (main): Invoke test_ascii and test_nonascii.
23081         * modules/uninorm/u32-normcmp-tests (Files): Add
23082         tests/uninorm/test-u32-normcmp.h.
23083         (Depends-on): Remove uninorm/u32-normcmp.
23084
23085         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23086         tests/uninorm/test-u16-normcmp.c.
23087         * tests/uninorm/test-u16-normcmp.c: Include it.
23088         (test_nonascii): New function, extracted from main. Add some more
23089         tests.
23090         (main): Invoke test_ascii and test_nonascii.
23091         * modules/uninorm/u16-normcmp-tests (Files): Add
23092         tests/uninorm/test-u16-normcmp.h.
23093         (Depends-on): Remove uninorm/u16-normcmp.
23094
23095         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23096         tests/uninorm/test-u8-normcmp.c.
23097         * tests/uninorm/test-u8-normcmp.c: Include it.
23098         (test_nonascii): New function, extracted from main. Add some more
23099         tests.
23100         (main): Invoke test_ascii and test_nonascii.
23101         * modules/uninorm/u8-normcmp-tests (Files): Add
23102         tests/uninorm/test-u8-normcmp.h.
23103         (Depends-on): Remove uninorm/u8-normcmp.
23104
23105 2009-03-07  Bruno Haible  <bruno@clisp.org>
23106
23107         New module 'uninorm/u32-normcoll'.
23108         * lib/uninorm/u32-normcoll.c: New file.
23109         * modules/uninorm/u32-normcoll: New file.
23110
23111         New module 'uninorm/u16-normcoll'.
23112         * lib/uninorm/u16-normcoll.c: New file.
23113         * modules/uninorm/u16-normcoll: New file.
23114
23115         New module 'uninorm/u8-normcoll'.
23116         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23117         declarations.
23118         * lib/uninorm/u8-normcoll.c: New file.
23119         * lib/uninorm/u-normcoll.h: New file.
23120         * modules/uninorm/u8-normcoll: New file.
23121
23122         New module 'uninorm/u32-normxfrm'.
23123         * lib/uninorm/u32-normxfrm.c: New file.
23124         * modules/uninorm/u32-normxfrm: New file.
23125
23126         New module 'uninorm/u16-normxfrm'.
23127         * lib/uninorm/u16-normxfrm.c: New file.
23128         * modules/uninorm/u16-normxfrm: New file.
23129
23130         New module 'uninorm/u8-normxfrm'.
23131         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23132         declarations.
23133         * lib/uninorm/u8-normxfrm.c: New file.
23134         * lib/uninorm/u-normxfrm.h: New file.
23135         * modules/uninorm/u8-normxfrm: New file.
23136
23137 2009-03-07  Bruno Haible  <bruno@clisp.org>
23138
23139         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23140         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23141         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23142
23143 2009-03-07  Bruno Haible  <bruno@clisp.org>
23144
23145         New module 'memxfrm'.
23146         * lib/memxfrm.h: New file.
23147         * lib/memxfrm.c: New file.
23148         * modules/memxfrm: New file.
23149
23150 2009-03-07  Bruno Haible  <bruno@clisp.org>
23151
23152         New module 'memcmp2'.
23153         * lib/memcmp2.h: New file.
23154         * lib/memcmp2.c: New file.
23155         * modules/memcmp2: New file.
23156
23157 2009-03-07  Bruno Haible  <bruno@clisp.org>
23158
23159         Tests for module 'uninorm/decomposing-form'.
23160         * modules/uninorm/decomposing-form-tests: New file.
23161         * tests/uninorm/test-decomposing-form.c: New file.
23162
23163         New module 'uninorm/decomposing-form'.
23164         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23165         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23166         Add 'decomposing_variant' field.
23167         * lib/uninorm/decomposing-form.c: New file.
23168         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23169         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23170         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23171         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23172         * modules/uninorm/decomposing-form: New file.
23173         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23174         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23175
23176 2009-03-07  Bruno Haible  <bruno@clisp.org>
23177
23178         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23179         strings.
23180
23181 2009-03-06  Bruno Haible  <bruno@clisp.org>
23182
23183         Tests for module 'uninorm/u32-normcmp'.
23184         * tests/uninorm/test-u32-normcmp.c: New file.
23185         * modules/uninorm/u32-normcmp-tests: New file.
23186
23187         Tests for module 'uninorm/u16-normcmp'.
23188         * tests/uninorm/test-u16-normcmp.c: New file.
23189         * modules/uninorm/u16-normcmp-tests: New file.
23190
23191         Tests for module 'uninorm/u8-normcmp'.
23192         * tests/uninorm/test-u8-normcmp.c: New file.
23193         * modules/uninorm/u8-normcmp-tests: New file.
23194
23195         New module 'uninorm/u32-normcmp'.
23196         * lib/uninorm/u32-normcmp.c: New file.
23197         * modules/uninorm/u32-normcmp: New file.
23198
23199         New module 'uninorm/u16-normcmp'.
23200         * lib/uninorm/u16-normcmp.c: New file.
23201         * modules/uninorm/u16-normcmp: New file.
23202
23203         New module 'uninorm/u8-normcmp'.
23204         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23205         declarations.
23206         * lib/uninorm/u8-normcmp.c: New file.
23207         * lib/uninorm/u-normcmp.h: New file.
23208         * modules/uninorm/u8-normcmp: New file.
23209
23210 2009-03-06  Bruno Haible  <bruno@clisp.org>
23211
23212         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23213         Reported by Eric Blake.
23214
23215 2009-03-06  Eric Blake  <ebb9@byu.net>
23216             Bruno Haible  <bruno@clisp.org>
23217
23218         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23219         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23220         condition.
23221         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23222         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23223         condition.
23224         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23225
23226 2009-03-06  Eric Blake  <ebb9@byu.net>
23227
23228         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23229         to avoid compiler warnings.
23230         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23231
23232 2009-03-05  Bruno Haible  <bruno@clisp.org>
23233
23234         * tests/test-ftell.c (main): Disable test beyond end of file on
23235         FreeMiNT.
23236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23237
23238 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23239
23240         * lib/filevercmp.c: Move hidden files up in ordering.
23241         * tests/test-filevercmp.c: Add tests for hidden files.
23242
23243 2009-03-04  Bruno Haible  <bruno@clisp.org>
23244
23245         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23246         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23247         AM_CFLAGS.
23248         Reported by Simon Josefsson.
23249
23250 2009-03-03  Bruno Haible  <bruno@clisp.org>
23251
23252         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23253         Reported by Simon Josefsson.
23254
23255         * doc/ld-version-script.texi: Update node reference.
23256
23257 2009-03-03  Bruno Haible  <bruno@clisp.org>
23258
23259         * modules/visibility (License): Change to 'unlimited'.
23260         Suggested by Simon Josefsson.
23261
23262 2009-03-03  Jim Meyering  <meyering@redhat.com>
23263
23264         unlinkdir: cannot_unlink_dir may modify process state
23265         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23266         it's neither thread-safe nor appropriate for use in a library.
23267
23268 2009-03-03  Eric Blake  <ebb9@byu.net>
23269
23270         test-closein: silence test under Darwin
23271         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23272         care if it dies from EPIPE or EBADF.
23273
23274 2009-03-03  Bruno Haible  <bruno@clisp.org>
23275
23276         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23277         earlier.
23278         * doc/visibility.texi: Fix @node and @section.
23279
23280 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23281
23282         * doc/gnulib.texi: Link to sections for ld version script and
23283         visibility.
23284         * doc/visibility.texi: Add @node and @section.
23285         * modules/ld-version-script: New module.
23286         * m4/ld-version-script.m4: New file.
23287         * doc/ld-version-script.texi: New file.
23288
23289 2009-03-02  David Lutterkort  <lutter@redhat.com>
23290
23291         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23293
23294 2009-03-02  Bruno Haible  <bruno@clisp.org>
23295
23296         * doc/visibility.texi: Mention libtool's -export-symbols option.
23297
23298 2009-03-02  Jim Meyering  <meyering@redhat.com>
23299
23300         announce-gen: new option: --no-print-checksums
23301         * build-aux/announce-gen (usage): Describe it.
23302         (print_checksums): Print a newline here, not in the [*] footnote.
23303         (main): Honor it.
23304
23305 2009-03-01  Bruno Haible  <bruno@clisp.org>
23306
23307         Use socklen_t in the native Windows replacements prototypes.
23308         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23309         instead of 'int'.
23310         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23311         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23312         * modules/getsockopt (Depends-on): Add socklen.
23313         * modules/setsockopt (Depends-on): Add socklen.
23314
23315 2009-03-01  Bruno Haible  <bruno@clisp.org>
23316
23317         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23318         least 4.2.
23319
23320 2009-03-01  Eric Blake  <ebb9@byu.net>
23321             Bruno Haible  <bruno@clisp.org>
23322
23323         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23324         error messages.
23325         * lib/wait-process.c (wait_subprocess): Omit error message about
23326         deadly signal sent to the child of termsigp != NULL.
23327
23328 2009-03-01  Eric Blake  <ebb9@byu.net>
23329
23330         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23331
23332 2009-03-01  Bruno Haible  <bruno@clisp.org>
23333
23334         Avoid a gcc warning.
23335         * tests/test-sched.c (b): Make global.
23336         Reported by Eric Blake.
23337
23338 2009-01-19  Martin Lambers  <marlam@marlam.de>
23339
23340         Provide POSIX semantics for socket timeout options on W32.
23341         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23342         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23343         * modules/setsockopt: Depend on sys_time module for struct timeval.
23344         * modules/getsockopt: Depend on sys_time module for struct timeval.
23345
23346 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23347
23348         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23349         __USE_GNU, for consistency with netdb.in.h.
23350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23351
23352 2009-03-01  Bruno Haible  <bruno@clisp.org>
23353
23354         More support for FreeMiNT.
23355         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23356         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23357
23358 2009-03-01  Bruno Haible  <bruno@clisp.org>
23359
23360         More support for FreeMiNT.
23361         * lib/fpurge.c (fpurge): Correct last commit.
23362         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23363
23364 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23365
23366         Fix unportable awk script in vc-list-files.
23367         * build-aux/vc-list-files: In the replacement awk script, use
23368         substr with a second argument of 1, not zero.
23369         Report by Simon Josefsson.
23370
23371 2009-02-28  Bruno Haible  <bruno@clisp.org>
23372
23373         More support for FreeMiNT.
23374         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23375         to FreeMiNT today.
23376         * lib/fwriting.c (fwriting): Likewise.
23377         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23378
23379 2009-02-28  Bruno Haible  <bruno@clisp.org>
23380
23381         * tests/test-freadseek.c (main): Disable test beyond end of file on
23382         FreeMiNT.
23383         * tests/test-ftello.c (main): Likewise.
23384         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23385
23386 2009-02-28  Bruno Haible  <bruno@clisp.org>
23387
23388         Add tentative support for FreeMiNT.
23389         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23390         * lib/fpurge.c (fpurge): Likewise.
23391         * lib/freadable.c (freadable): Likewise.
23392         * lib/freading.c (freading): Likewise.
23393         * lib/freadptr.c (freadptr): Likewise.
23394         * lib/freadseek.c (freadptrinc): Likewise.
23395         * lib/fseeko.c (rpl_fseeko): Likewise.
23396         * lib/fseterr.c (fseterr): Likewise.
23397         * lib/fwritable.c (fwritable): Likewise.
23398         * lib/fwriting.c (fwriting): Likewise.
23399         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23400         Hourihane.
23401         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23402
23403 2009-02-28  Bruno Haible  <bruno@clisp.org>
23404
23405         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23406         SIGCHLD.
23407         Reported by Jim Meyering.
23408
23409 2009-02-28  Bruno Haible  <bruno@clisp.org>
23410
23411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23412         Mention the results of these tests on various platforms.
23413         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23414         order.
23415         * doc/posix-functions/printf.texi: Likewise.
23416         * doc/posix-functions/snprintf.texi: Likewise.
23417         * doc/posix-functions/sprintf.texi: Likewise.
23418         * doc/posix-functions/vfprintf.texi: Likewise.
23419         * doc/posix-functions/vprintf.texi: Likewise.
23420         * doc/posix-functions/vsnprintf.texi: Likewise.
23421         * doc/posix-functions/vsprintf.texi: Likewise.
23422         * doc/glibc-functions/obstack_printf.texi: Likewise.
23423         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23424
23425 2009-02-28  Bruno Haible  <bruno@clisp.org>
23426
23427         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23428         Reported by Loïc Minier <lool@dooz.org>.
23429
23430 2009-02-27  Bruno Haible  <bruno@clisp.org>
23431
23432         * gnulib-tool (func_import): Make the sed expression used to create the
23433         sed script for updating the .gitignore file POSIX compliant.
23434         Reported by Eric Blake.
23435
23436 2009-02-27  Bruno Haible  <bruno@clisp.org>
23437
23438         * gnulib-tool (sed): Don't alias as "sed --posix".
23439         Reported by Eric Blake.
23440
23441 2009-02-27  Bruno Haible  <bruno@clisp.org>
23442
23443         Avoid test link errors.
23444         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23445         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23446         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23447         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23449
23450 2009-02-27  Bruno Haible  <bruno@clisp.org>
23451
23452         Avoid spurious "(cached)" in configure output.
23453         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23454         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23455         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23456         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23457         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23458         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23459         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23460         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23461         Reported by Eric Blake.
23462
23463 2009-02-27  Eric Blake  <ebb9@byu.net>
23464
23465         printf: fix regression in previous patch
23466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23467
23468 2009-02-27  Bruno Haible  <bruno@clisp.org>
23469
23470         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23471         value.
23472         * lib/stdint.in.h: Likewise.
23473         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23474
23475 2009-02-27  Eric Blake  <ebb9@byu.net>
23476
23477         doc: mention more functions added in cygwin 1.7.0
23478         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23479         addition.
23480         * doc/posix-functions/open_wmemstream.texi: Likewise.
23481         * doc/posix-functions/wcsnlen.texi: Likewise.
23482         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23483         * doc/posix-functions/wcstod.texi: Likewise.
23484         * doc/posix-functions/wcstof.texi: Likewise.
23485         * doc/posix-functions/wcstoimax.texi: Likewise.
23486         * doc/posix-functions/wcstok.texi: Likewise.
23487         * doc/posix-functions/wcstoumax.texi: Likewise.
23488
23489         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23491         * doc/posix-functions/fprintf.texi: Update.
23492         * doc/posix-functions/printf.texi: Update.
23493         * doc/posix-functions/snprintf.texi: Update.
23494         * doc/posix-functions/sprintf.texi: Update.
23495         * doc/posix-functions/vfprintf.texi: Update.
23496         * doc/posix-functions/vprintf.texi: Update.
23497         * doc/posix-functions/vsnprintf.texi: Update.
23498         * doc/posix-functions/vsprintf.texi: Update.
23499         * doc/glibc-functions/obstack_printf.texi: Update.
23500         * doc/glibc-functions/obstack_vprintf.texi: Update.
23501
23502 2009-02-26  Eric Blake  <ebb9@byu.net>
23503
23504         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23505         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23506         compilation bug by using runtime conversion.
23507         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23508         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23509         * modules/ceill-tests (Files): Use nan.h.
23510         * modules/floorl-tests (Files): Likewise.
23511         * modules/frexpl-tests (Files): Likewise.
23512         * modules/isnanl-tests (Files): Likewise.
23513         * modules/ldexpl-tests (Files): Likewise.
23514         * modules/roundl-tests (Files): Likewise.
23515         * modules/truncl-tests (Files): Likewise.
23516         * tests/test-ceill.c (main): Use a working NaN.
23517         * tests/test-floorl.c (main): Likewise.
23518         * tests/test-frexpl.c (main): Likewise.
23519         * tests/test-isnan.c (test_long_double): Likewise.
23520         * tests/test-isnanl.h (main): Likewise.
23521         * tests/test-ldexpl.h (main): Likewise.
23522         * tests/test-roundl.h (main): Likewise.
23523         * tests/test-truncl.h (main): Likewise.
23524         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23525
23526 2009-02-26  Eric Blake  <ebb9@byu.net>
23527             Bruno Haible  <bruno@clisp.org>
23528
23529         Work around a *printf bug with %ls on Solaris.
23530         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23531         precision is specified, sprintf stops converting the wide string
23532         argument when the number of bytes that have been produced by this
23533         conversion equals or exceeds the precision.
23534         * doc/posix-functions/fprintf.texi: Update.
23535         * doc/posix-functions/printf.texi: Update.
23536         * doc/posix-functions/snprintf.texi: Update.
23537         * doc/posix-functions/sprintf.texi: Update.
23538         * doc/posix-functions/vfprintf.texi: Update.
23539         * doc/posix-functions/vprintf.texi: Update.
23540         * doc/posix-functions/vsnprintf.texi: Update.
23541         * doc/posix-functions/vsprintf.texi: Update.
23542         * doc/glibc-functions/obstack_printf.texi: Update.
23543         * doc/glibc-functions/obstack_vprintf.texi: Update.
23544
23545 2009-02-26  Eric Blake  <ebb9@byu.net>
23546
23547         stdlib: favor compiler check of random.h
23548         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23549         to avoid an ObjC random.h installed by Swarm.
23550
23551 2009-02-26  Bruno Haible  <bruno@clisp.org>
23552
23553         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23554         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23555         Reported by Gary V. Vaughan <gary@gnu.org>.
23556
23557 2009-02-26  Bruno Haible  <bruno@clisp.org>
23558
23559         Fix *printf behaviour regarding the %ls directive.
23560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23561         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23562         NEED_PRINTF_DIRECTIVE_LS.
23563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23564         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23566         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23567         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23568         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23569         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23574         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23578         * doc/posix-functions/fprintf.texi: Update.
23579         * doc/posix-functions/printf.texi: Update.
23580         * doc/posix-functions/snprintf.texi: Update.
23581         * doc/posix-functions/sprintf.texi: Update.
23582         * doc/posix-functions/vfprintf.texi: Update.
23583         * doc/posix-functions/vprintf.texi: Update.
23584         * doc/posix-functions/vsnprintf.texi: Update.
23585         * doc/posix-functions/vsprintf.texi: Update.
23586         * doc/glibc-functions/obstack_printf.texi: Update.
23587         * doc/glibc-functions/obstack_vprintf.texi: Update.
23588         Reported by Eric Blake.
23589
23590 2009-02-25  Bruno Haible  <bruno@clisp.org>
23591
23592         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23593         with known value.
23594         Reported by Gary V. Vaughan <gary@gnu.org>.
23595
23596 2009-02-25  Bruno Haible  <bruno@clisp.org>
23597
23598         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23599         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23600         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23601         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23602         Reported by Gary V. Vaughan <gary@gnu.org>.
23603
23604 2009-02-25  Bruno Haible  <bruno@clisp.org>
23605
23606         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23607         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23608         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23609         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23610         Reported by Gary V. Vaughan <gary@gnu.org>.
23611
23612 2009-02-25  Eric Blake  <ebb9@byu.net>
23613
23614         tests: skip fseek/ftell tests if ungetc is broken
23615         * m4/ungetc.m4: New file.
23616         * modules/fseek-tests: Split test, so ungetc dependency is
23617         separate from rest of test.
23618         * modules/fseeko-tests: Likewise.
23619         * modules/ftell-tests: Likewise.
23620         * modules/ftello-tests: Likewise.
23621         * tests/test-fseek.c (main): Isolate ungetc dependency.
23622         * tests/test-fseeko.c (main): Likewise.
23623         * tests/test-ftell.c (main): Likewise.
23624         * tests/test-ftello.c (main): Likewise.
23625         * tests/test-fseek2.sh: New file.
23626         * tests/test-fseeko2.sh: Likewise.
23627         * tests/test-ftell2.sh: Likewise.
23628         * tests/test-ftello2.sh: Likewise.
23629
23630 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23631
23632         test-getaddrinfo: fix usage of skip return code 77
23633         * tests/test-gettaddrinfo.c: Return skip code 77 only
23634         for first occurance of skip (4x77 is not 77)
23635
23636 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23637
23638         strtod: avoid C99 decl-after-statement
23639         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23640
23641 2009-02-24  Eric Blake  <ebb9@byu.net>
23642
23643         strtod: detect HP-UX 11.31 bug
23644         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23645         Reported by Gary V. Vaughan.
23646
23647 2009-02-23  Bruno Haible  <bruno@clisp.org>
23648
23649         Fix invalid read past end of memory block.
23650         * lib/vasnprintf.c (DCHAR_SET): Define.
23651         (local_wcslen): Define only when needed.
23652         (local_strnlen, local_wcsnlen): New functions.
23653         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23654         directives that involve a conversion ourselves.
23655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23656         wcsnlen, mbrtowc, wcrtomb.
23657         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23658         * tests/test-vasprintf-posix.c (test_function): Likewise.
23659         * tests/test-snprintf-posix.h (test_function): Likewise.
23660         * tests/test-sprintf-posix.h (test_function): Likewise.
23661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23662
23663 2009-02-22  Bruno Haible  <bruno@clisp.org>
23664
23665         Implement new clarified decomposition of Hangul syllables.
23666         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23667         of type LTV, return only a pairwise decomposition.
23668         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23669         Likewise.
23670         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23671         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23672         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23673
23674 2009-02-22  Bruno Haible  <bruno@clisp.org>
23675
23676         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23677         zero-length results and shrink excess allocated memory.
23678         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23679         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23680         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23681         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23682         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23683         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23684         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23685         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23686         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23687         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23688         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23689         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23690
23691 2009-02-21  Bruno Haible  <bruno@clisp.org>
23692
23693         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23694         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23695         spaces after a period. Put a space between a macro name and its
23696         argument list. Trivial rewordings.
23697         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23698         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23699         (main): Return 0 explicitly.
23700
23701 2009-02-21  Bruno Haible  <bruno@clisp.org>
23702
23703         Tests for module 'uninorm/filter'.
23704         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23705         * modules/uninorm/filter-tests: New file.
23706
23707         New module 'uninorm/filter'.
23708         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23709         uninorm_filter_flush, uninorm_filter_free): New declarations.
23710         * lib/uninorm/uninorm-filter.c: New file.
23711         * modules/uninorm/filter: New file.
23712
23713 2009-02-21  Bruno Haible  <bruno@clisp.org>
23714
23715         Tests for module 'uninorm/nfkc'.
23716         * tests/uninorm/test-nfkc.c: New file.
23717         * tests/uninorm/test-u8-nfkc.c: New file.
23718         * tests/uninorm/test-u16-nfkc.c: New file.
23719         * tests/uninorm/test-u32-nfkc.c: New file.
23720         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23721         * tests/uninorm/test-u32-nfkc-big.c: New file.
23722         * modules/uninorm/nfkc-tests: New file.
23723
23724         New module 'uninorm/nfkc'.
23725         * lib/uninorm/nfkc.c: New file.
23726         * modules/uninorm/nfkc: New file.
23727
23728         Tests for module 'uninorm/nfkd'.
23729         * tests/uninorm/test-nfkd.c: New file.
23730         * tests/uninorm/test-u8-nfkd.c: New file.
23731         * tests/uninorm/test-u16-nfkd.c: New file.
23732         * tests/uninorm/test-u32-nfkd.c: New file.
23733         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23734         * tests/uninorm/test-u32-nfkd-big.c: New file.
23735         * modules/uninorm/nfkd-tests: New file.
23736
23737         New module 'uninorm/nfkd'.
23738         * lib/uninorm/nfkd.c: New file.
23739         * modules/uninorm/nfkd: New file.
23740
23741         Tests for module 'uninorm/nfc'.
23742         * tests/uninorm/test-nfc.c: New file.
23743         * tests/uninorm/test-u8-nfc.c: New file.
23744         * tests/uninorm/test-u16-nfc.c: New file.
23745         * tests/uninorm/test-u32-nfc.c: New file.
23746         * tests/uninorm/test-u32-nfc-big.sh: New file.
23747         * tests/uninorm/test-u32-nfc-big.c: New file.
23748         * modules/uninorm/nfc-tests: New file.
23749
23750         New module 'uninorm/nfc'.
23751         * lib/uninorm/nfc.c: New file.
23752         * modules/uninorm/nfc: New file.
23753
23754         Tests for module 'uninorm/nfd'.
23755         * tests/uninorm/test-nfd.c: New file.
23756         * tests/uninorm/test-u8-nfd.c: New file.
23757         * tests/uninorm/test-u16-nfd.c: New file.
23758         * tests/uninorm/test-u32-nfd.c: New file.
23759         * tests/uninorm/test-u32-nfd-big.sh: New file.
23760         * tests/uninorm/test-u32-nfd-big.c: New file.
23761         * tests/uninorm/test-u32-normalize-big.h: New file.
23762         * tests/uninorm/test-u32-normalize-big.c: New file.
23763         * tests/uninorm/NormalizationTest.txt: New file, created from
23764         Unicode 5.1.0 NormalizationTest.txt.
23765         * modules/uninorm/nfd-tests: New file.
23766
23767         New module 'uninorm/nfd'.
23768         * lib/uninorm/nfd.c: New file.
23769         * modules/uninorm/nfd: New file.
23770
23771         New module 'uninorm/u32-normalize'.
23772         * lib/uninorm/u32-normalize.c: New file.
23773         * modules/uninorm/u32-normalize: New file.
23774
23775         New module 'uninorm/u16-normalize'.
23776         * lib/uninorm/u16-normalize.c: New file.
23777         * modules/uninorm/u16-normalize: New file.
23778
23779         New module 'uninorm/u8-normalize'.
23780         * lib/uninorm/u8-normalize.c: New file.
23781         * lib/uninorm/normalize-internal.h: New file.
23782         * lib/uninorm/u-normalize-internal.h: New file.
23783         * modules/uninorm/u8-normalize: New file.
23784
23785         New module 'uninorm/decompose-internal'.
23786         * lib/uninorm/decompose-internal.c: New file.
23787         * modules/uninorm/decompose-internal: New file.
23788
23789         Tests for module 'uninorm/composition'.
23790         * tests/uninorm/test-composition.c: New file.
23791         * modules/uninorm/composition-tests: New file.
23792
23793         New module 'uninorm/composition'.
23794         * lib/uninorm/composition.c: New file.
23795         * lib/uninorm/composition-table.gperf: New file, generated by
23796         gen-uni-tables.
23797         * modules/uninorm/composition: New file.
23798
23799         Tests for module 'uninorm/compat-decomposition'.
23800         * tests/uninorm/test-compat-decomposition.c: New file.
23801         * modules/uninorm/compat-decomposition-tests: New file.
23802
23803         New module 'uninorm/compat-decomposition'.
23804         * lib/uninorm/decompose-internal.h: New file.
23805         * lib/uninorm/compat-decomposition.c: New file.
23806         * modules/uninorm/compat-decomposition: New file.
23807
23808         Tests for module 'uninorm/canonical-decomposition'.
23809         * tests/uninorm/test-canonical-decomposition.c: New file.
23810         * modules/uninorm/canonical-decomposition-tests: New file.
23811
23812         New module 'uninorm/canonical-decomposition'.
23813         * lib/uninorm/canonical-decomposition.c: New file.
23814         * modules/uninorm/canonical-decomposition: New file.
23815
23816         Tests for module 'uninorm/decomposition'.
23817         * tests/uninorm/test-decomposition.c: New file.
23818         * modules/uninorm/decomposition-tests: New file.
23819
23820         New module 'uninorm/decomposition'.
23821         * lib/uninorm/decomposition.c: New file.
23822         * modules/uninorm/decomposition: New file.
23823
23824         New module 'uninorm/decomposition-table'.
23825         * lib/uninorm/decomposition-table.h: New file.
23826         * lib/uninorm/decomposition-table.c: New file.
23827         * lib/uninorm/decomposition-table1.h: New file, generated by
23828         gen-uni-tables.
23829         * lib/uninorm/decomposition-table2.h: New file, generated by
23830         gen-uni-tables.
23831         * modules/uninorm/decomposition-table: New file.
23832
23833         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23834         (UC_DECOMP_*): New enumeration items.
23835         (get_decomposition): New function.
23836         (struct decomp_table): New type.
23837         (output_decomposition, output_decomposition_tables): New functions.
23838         (unicode_composition_exclusions): New variable.
23839         (fill_composition_exclusions, debug_output_composition_tables): New
23840         functions.
23841         (main): Accept one more argument. Invoke fill_composition_exclusions.
23842         Output decomposition and composition tables.
23843
23844         New module 'uninorm/base'.
23845         * lib/uninorm.h: New file.
23846         * lib/unictype.h: Update comment.
23847         * modules/uninorm/base: New file.
23848
23849 2009-02-21  David Lutterkort  <lutter@redhat.com>
23850
23851         Tests for module 'safe-alloc'.
23852         * tests/test-safe-alloc.c: New file.
23853         * modules/safe-alloc-tests: New file.
23854
23855         New module 'safe-alloc'.
23856         * lib/safe-alloc.h: New file.
23857         * lib/safe-alloc.c: New file.
23858         * m4/safe-alloc.m4: New file.
23859         * modules/safe-alloc: New file.
23860         * doc/safe-alloc.texi: New file.
23861         * doc/gnulib.texi: Include it.
23862         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23863         safe-alloc.
23864
23865 2009-02-18  Bruno Haible  <bruno@clisp.org>
23866
23867         Fix link error on non-glibc systems.
23868         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23869         variable.
23870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23871
23872 2009-02-18  Jim Meyering  <meyering@redhat.com>
23873
23874         fts: avoid used-uninitialized error due to recent change
23875         * lib/fts.c (fts_read): Guard uses of the new member,
23876         parent->fts_n_dirs_remaining, since it's not relevant for
23877         the parent of a directory specified on the command-line.
23878
23879 2009-02-17  James Youngman  <jay@gnu.org>
23880             Bruno Haible  <bruno@clisp.org>
23881
23882         * m4/include_next.m4: Reformulate comment.
23883
23884 2009-02-16  Jim Meyering  <meyering@redhat.com>
23885
23886         fts: add #if guards so that the fts_lgpl module still builds
23887         * lib/fts.c: Guard just-added hash-table-using parts with
23888         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23889         Reported by Simon Josefsson.
23890
23891 2009-02-15  Bruno Haible  <bruno@clisp.org>
23892
23893         * modules/array-mergesort-tests: New file.
23894         * tests/test-array-mergesort.c: New file.
23895
23896         New module 'array-mergesort'.
23897         * modules/array-mergesort: New file.
23898         * lib/array-mergesort.h: New file.
23899
23900 2009-02-15  Bruno Haible  <bruno@clisp.org>
23901
23902         Fix 2009-02-07 commit.
23903         * lib/gen-uni-tables.c (output_predicate, output_category,
23904         output_combclass, output_bidi_category, output_decimal_digit,
23905         output_digit, output_numeric, output_mirror, output_scripts,
23906         output_ident_category, output_simple_mapping): Fix format directives.
23907         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23908
23909 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23910
23911         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23912         fixes are available from IBM.
23913
23914 2009-02-13  Jim Meyering  <meyering@redhat.com>
23915
23916         fts: arrange not to stat non-directories in more cases
23917         This makes GNU find (when it doesn't need to stat each file)
23918         *much* more efficient at traversing reiserfs file systems.
23919         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23920         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23921         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23922         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23923         (leaf_optimization_applies): New function.
23924         (LCO_hash, LCO_compare): New helper functions.
23925         (link_count_optimize_ok): New function.
23926         (fts_stat): Initialize new member (if dir).
23927         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23928         we've just stat'ed a directory.  Skip the stat call when possible.
23929         ---
23930         Note this AFS-related exchange:
23931         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23932         and note find's pioctl call in find/fstype.c.
23933         But that is necessary only if you want to enable the
23934         optimization for AFS, and for now, I don't.
23935
23936         fts: move a function definition "up" (no semantic change)
23937         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23938         "up" to precede upcoming use of a related function.
23939
23940 2009-02-11  Jim Meyering  <meyering@redhat.com>
23941
23942         fts: correct internal computation of nlinks (optimization-related)
23943         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23944         whether the current entry is a directory, so don't test it.
23945
23946 2009-02-10  Bruno Haible  <bruno@clisp.org>
23947
23948         Tests for module 'uniwbrk/ulc-wordbreaks'.
23949         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23950         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23951         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23952
23953         Tests for module 'uniwbrk/u32-wordbreaks'.
23954         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23955         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23956
23957         Tests for module 'uniwbrk/u16-wordbreaks'.
23958         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23959         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23960
23961         Tests for module 'uniwbrk/u8-wordbreaks'.
23962         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23963         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23964
23965 2009-02-10  Bruno Haible  <bruno@clisp.org>
23966
23967         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23968         property.
23969         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23970         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23971         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23972
23973 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23974
23975         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23976         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23977
23978 2009-02-10  Bruno Haible  <bruno@clisp.org>
23979
23980         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23981         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23982         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23983         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23984         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23985         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23986
23987 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23988
23989         * lib/sockets.h (gl_fd_to_handle): New function.
23990
23991         * tests/test-sockets.c: Call gl_fd_to_handle.
23992
23993 2009-02-09  Bruno Haible  <bruno@clisp.org>
23994
23995         * doc/havelib.texi: Document the conventions on bi-arch systems.
23996
23997 2009-02-08  Bruno Haible  <bruno@clisp.org>
23998
23999         Document the AC_LIB_LINKFLAGS macro.
24000         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24001         * doc/gnulib.texi: Include it.
24002
24003 2009-02-08  Bruno Haible  <bruno@clisp.org>
24004
24005         Fix wrong order of sections, compared to TOC.
24006         * doc/gnulib.texi: Include relocatable-maint.texi after the
24007         "Regular expressions" node, not before.
24008
24009 2009-02-08  Bruno Haible  <bruno@clisp.org>
24010
24011         Tests for module 'unicase/totitle'.
24012         * modules/unicase/totitle-tests: New file.
24013
24014         Tests for module 'unicase/tolower'.
24015         * modules/unicase/tolower-tests: New file.
24016
24017         Tests for module 'unicase/toupper'.
24018         * modules/unicase/toupper-tests: New file.
24019         * tests/unicase/test-mapping-part1.h: New file.
24020         * tests/unicase/test-mapping-part2.h: New file.
24021
24022         New module 'unicase/totitle'.
24023         * modules/unicase/totitle: New file.
24024         * lib/unicase/totitle.c: New file.
24025
24026         New module 'unicase/tolower'.
24027         * modules/unicase/tolower: New file.
24028         * lib/unicase/tolower.c: New file.
24029
24030         New module 'unicase/toupper'.
24031         * modules/unicase/toupper: New file.
24032         * lib/unicase/toupper.c: New file.
24033         * lib/unicase/simple-mapping.h: New file.
24034
24035         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24036         (mapping_table): New structure.
24037         (output_simple_mapping): New function.
24038         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24039         * modules/gen-uni-tables (Description): Update.
24040         * lib/unicase/toupper.h: New file, automatically generated by
24041         gen-uni-tables.
24042         * lib/unicase/tolower.h: New file, automatically generated by
24043         gen-uni-tables.
24044         * lib/unicase/totitle.h: New file, automatically generated by
24045         gen-uni-tables.
24046         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24047         gen-uni-tables.
24048         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24049         gen-uni-tables.
24050         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24051         gen-uni-tables.
24052
24053         New module 'unicase/base'.
24054         * modules/unicase/base: New file.
24055         * lib/unicase.h: New file.
24056
24057 2009-02-08  Bruno Haible  <bruno@clisp.org>
24058
24059         New module 'uniwbrk/ulc-wordbreaks'.
24060         * modules/uniwbrk/ulc-wordbreaks: New file.
24061         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24062
24063         New module 'uniwbrk/u32-wordbreaks'.
24064         * modules/uniwbrk/u32-wordbreaks: New file.
24065         * lib/uniwbrk/u32-wordbreaks.c: New file.
24066
24067         New module 'uniwbrk/u16-wordbreaks'.
24068         * modules/uniwbrk/u16-wordbreaks: New file.
24069         * lib/uniwbrk/u16-wordbreaks.c: New file.
24070
24071         New module 'uniwbrk/u8-wordbreaks'.
24072         * modules/uniwbrk/u8-wordbreaks: New file.
24073         * lib/uniwbrk/u8-wordbreaks.c: New file.
24074         * lib/uniwbrk/u-wordbreaks.h: New file.
24075
24076         New module 'uniwbrk/table'.
24077         * modules/uniwbrk/table: New file.
24078         * lib/uniwbrk/wbrktable.h: New file.
24079         * lib/uniwbrk/wbrktable.c: New file.
24080
24081         New module 'uniwbrk/wordbreak-property'.
24082         * modules/uniwbrk/wordbreak-property: New file.
24083         * lib/uniwbrk/wordbreak-property.c: New file.
24084
24085         * lib/gen-uni-tables.c (WBP_*): New enum items.
24086         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24087         (unicode_org_wbp): New variable.
24088         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24089         New functions.
24090         (wbp_table): New structure.
24091         (output_wbp, output_wbrk_tables): New functions.
24092         (main): Accept additional argument. Invoke fill_org_wbp,
24093         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24094         output_wbrk_tables.
24095         * modules/gen-uni-tables (Description): Update.
24096         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24097         gen-uni-tables.
24098
24099         New module 'uniwbrk/base'.
24100         * modules/uniwbrk/base: New file.
24101         * lib/uniwbrk.h: New file.
24102
24103 2009-02-08  Bruno Haible  <bruno@clisp.org>
24104
24105         Update to Unicode 5.1.0.
24106         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24107         U+2185..U+2188.
24108         (is_property_default_ignorable_code_point): Don't include characters
24109         of category Cc or Cs and not-a-characters.
24110         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24111         U+0D79, U+109E, U+109F, U+A60C.
24112         * lib/unictype/bidi_of.h: Regenerated.
24113         * lib/unictype/blocks.h: Regenerated.
24114         * lib/unictype/categ_C.h: Regenerated.
24115         * lib/unictype/categ_Cf.h: Regenerated.
24116         * lib/unictype/categ_Cn.h: Regenerated.
24117         * lib/unictype/categ_L.h: Regenerated.
24118         * lib/unictype/categ_Ll.h: Regenerated.
24119         * lib/unictype/categ_Lm.h: Regenerated.
24120         * lib/unictype/categ_Lo.h: Regenerated.
24121         * lib/unictype/categ_Lu.h: Regenerated.
24122         * lib/unictype/categ_M.h: Regenerated.
24123         * lib/unictype/categ_Mc.h: Regenerated.
24124         * lib/unictype/categ_Me.h: Regenerated.
24125         * lib/unictype/categ_Mn.h: Regenerated.
24126         * lib/unictype/categ_N.h: Regenerated.
24127         * lib/unictype/categ_Nd.h: Regenerated.
24128         * lib/unictype/categ_Nl.h: Regenerated.
24129         * lib/unictype/categ_No.h: Regenerated.
24130         * lib/unictype/categ_P.h: Regenerated.
24131         * lib/unictype/categ_Pd.h: Regenerated.
24132         * lib/unictype/categ_Pe.h: Regenerated.
24133         * lib/unictype/categ_Pf.h: Regenerated.
24134         * lib/unictype/categ_Pi.h: Regenerated.
24135         * lib/unictype/categ_Po.h: Regenerated.
24136         * lib/unictype/categ_Ps.h: Regenerated.
24137         * lib/unictype/categ_S.h: Regenerated.
24138         * lib/unictype/categ_Sk.h: Regenerated.
24139         * lib/unictype/categ_Sm.h: Regenerated.
24140         * lib/unictype/categ_So.h: Regenerated.
24141         * lib/unictype/categ_of.h: Regenerated.
24142         * lib/unictype/combining.h: Regenerated.
24143         * lib/unictype/ctype_alnum.h: Regenerated.
24144         * lib/unictype/ctype_alpha.h: Regenerated.
24145         * lib/unictype/ctype_graph.h: Regenerated.
24146         * lib/unictype/ctype_lower.h: Regenerated.
24147         * lib/unictype/ctype_print.h: Regenerated.
24148         * lib/unictype/ctype_punct.h: Regenerated.
24149         * lib/unictype/ctype_upper.h: Regenerated.
24150         * lib/unictype/decdigit.h: Regenerated.
24151         * lib/unictype/digit.h: Regenerated.
24152         * lib/unictype/mirror.h: Regenerated.
24153         * lib/unictype/numeric.h: Regenerated.
24154         * lib/unictype/pr_alphabetic.h: Regenerated.
24155         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24156         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24157         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24158         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24159         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24160         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24161         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24162         * lib/unictype/pr_combining.h: Regenerated.
24163         * lib/unictype/pr_dash.h: Regenerated.
24164         * lib/unictype/pr_decimal_digit.h: Regenerated.
24165         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24166         * lib/unictype/pr_deprecated.h: Regenerated.
24167         * lib/unictype/pr_diacritic.h: Regenerated.
24168         * lib/unictype/pr_extender.h: Regenerated.
24169         * lib/unictype/pr_format_control.h: Regenerated.
24170         * lib/unictype/pr_grapheme_base.h: Regenerated.
24171         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24172         * lib/unictype/pr_grapheme_link.h: Regenerated.
24173         * lib/unictype/pr_id_continue.h: Regenerated.
24174         * lib/unictype/pr_id_start.h: Regenerated.
24175         * lib/unictype/pr_ideographic.h: Regenerated.
24176         * lib/unictype/pr_ignorable_control.h: Regenerated.
24177         * lib/unictype/pr_lowercase.h: Regenerated.
24178         * lib/unictype/pr_math.h: Regenerated.
24179         * lib/unictype/pr_numeric.h: Regenerated.
24180         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24181         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24182         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24183         * lib/unictype/pr_other_id_continue.h: Regenerated.
24184         * lib/unictype/pr_other_lowercase.h: Regenerated.
24185         * lib/unictype/pr_other_math.h: Regenerated.
24186         * lib/unictype/pr_punctuation.h: Regenerated.
24187         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24188         * lib/unictype/pr_soft_dotted.h: Regenerated.
24189         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24190         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24191         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24192         * lib/unictype/pr_uppercase.h: Regenerated.
24193         * lib/unictype/pr_xid_continue.h: Regenerated.
24194         * lib/unictype/pr_xid_start.h: Regenerated.
24195         * lib/unictype/pr_zero_width.h: Regenerated.
24196         * lib/unictype/scripts.h: Regenerated.
24197         * lib/unictype/scripts_byname.gperf: Regenerated.
24198         * lib/unictype/sy_java_ident.h: Regenerated.
24199         * lib/unilbrk/lbrkprop1.h: Regenerated.
24200         * lib/unilbrk/lbrkprop2.h: Regenerated.
24201         * tests/unictype/test-categ_C.c: Regenerated.
24202         * tests/unictype/test-categ_Cf.c: Regenerated.
24203         * tests/unictype/test-categ_Cn.c: Regenerated.
24204         * tests/unictype/test-categ_L.c: Regenerated.
24205         * tests/unictype/test-categ_Ll.c: Regenerated.
24206         * tests/unictype/test-categ_Lm.c: Regenerated.
24207         * tests/unictype/test-categ_Lo.c: Regenerated.
24208         * tests/unictype/test-categ_Lu.c: Regenerated.
24209         * tests/unictype/test-categ_M.c: Regenerated.
24210         * tests/unictype/test-categ_Mc.c: Regenerated.
24211         * tests/unictype/test-categ_Me.c: Regenerated.
24212         * tests/unictype/test-categ_Mn.c: Regenerated.
24213         * tests/unictype/test-categ_N.c: Regenerated.
24214         * tests/unictype/test-categ_Nd.c: Regenerated.
24215         * tests/unictype/test-categ_Nl.c: Regenerated.
24216         * tests/unictype/test-categ_No.c: Regenerated.
24217         * tests/unictype/test-categ_P.c: Regenerated.
24218         * tests/unictype/test-categ_Pd.c: Regenerated.
24219         * tests/unictype/test-categ_Pe.c: Regenerated.
24220         * tests/unictype/test-categ_Pf.c: Regenerated.
24221         * tests/unictype/test-categ_Pi.c: Regenerated.
24222         * tests/unictype/test-categ_Po.c: Regenerated.
24223         * tests/unictype/test-categ_Ps.c: Regenerated.
24224         * tests/unictype/test-categ_S.c: Regenerated.
24225         * tests/unictype/test-categ_Sk.c: Regenerated.
24226         * tests/unictype/test-categ_Sm.c: Regenerated.
24227         * tests/unictype/test-categ_So.c: Regenerated.
24228         * tests/unictype/test-ctype_alnum.c: Regenerated.
24229         * tests/unictype/test-ctype_alpha.c: Regenerated.
24230         * tests/unictype/test-ctype_graph.c: Regenerated.
24231         * tests/unictype/test-ctype_lower.c: Regenerated.
24232         * tests/unictype/test-ctype_print.c: Regenerated.
24233         * tests/unictype/test-ctype_punct.c: Regenerated.
24234         * tests/unictype/test-ctype_upper.c: Regenerated.
24235         * tests/unictype/test-decdigit.h: Regenerated.
24236         * tests/unictype/test-digit.h: Regenerated.
24237         * tests/unictype/test-numeric.h: Regenerated.
24238         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24239         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24240         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24241         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24242         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24243         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24244         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24245         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24246         * tests/unictype/test-pr_combining.c: Regenerated.
24247         * tests/unictype/test-pr_dash.c: Regenerated.
24248         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24249         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24250         * tests/unictype/test-pr_deprecated.c: Regenerated.
24251         * tests/unictype/test-pr_diacritic.c: Regenerated.
24252         * tests/unictype/test-pr_extender.c: Regenerated.
24253         * tests/unictype/test-pr_format_control.c: Regenerated.
24254         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24255         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24256         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24257         * tests/unictype/test-pr_id_continue.c: Regenerated.
24258         * tests/unictype/test-pr_id_start.c: Regenerated.
24259         * tests/unictype/test-pr_ideographic.c: Regenerated.
24260         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24261         * tests/unictype/test-pr_lowercase.c: Regenerated.
24262         * tests/unictype/test-pr_math.c: Regenerated.
24263         * tests/unictype/test-pr_numeric.c: Regenerated.
24264         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24265         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24266         Regenerated.
24267         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24268         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24269         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24270         * tests/unictype/test-pr_other_math.c: Regenerated.
24271         * tests/unictype/test-pr_punctuation.c: Regenerated.
24272         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24273         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24274         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24275         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24276         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24277         * tests/unictype/test-pr_uppercase.c: Regenerated.
24278         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24279         * tests/unictype/test-pr_xid_start.c: Regenerated.
24280         * tests/unictype/test-pr_zero_width.c: Regenerated.
24281
24282         Update to Unicode 5.1.0.
24283         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24284         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24285         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24286         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24287         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24288         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24289         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24290         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24291         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24292         (nonspacing_table_ind): Update.
24293         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24294
24295         Update to Unicode 5.1.0.
24296         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24297         code transform.
24298         * lib/uniname/uniname.c (unicode_character_name,
24299         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24300         * lib/uniname/uninames.h: Regenerated.
24301         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24302
24303 2009-02-07  Bruno Haible  <bruno@clisp.org>
24304
24305         Merge gen-ctype and gen-lbrk into a single program.
24306         * lib/gen-uni-tables.c: New file, incorporating
24307         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24308         Add directory prefixes to the names of the generated files.
24309         * lib/unictype/gen-ctype.c: Remove file.
24310         * lib/unilbrk/gen-lbrk.c: Remove file.
24311         * modules/gen-uni-tables: New file.
24312         * modules/unictype/gen-ctype: Remove file.
24313         * modules/unilbrk/gen-lbrk: Remove file.
24314
24315 2009-02-07  Bruno Haible  <bruno@clisp.org>
24316
24317         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24318
24319         New module 'unistr/u32-strcoll'.
24320         * modules/unistr/u32-strcoll: New file.
24321         * lib/unistr/u32-strcoll.c: New file.
24322
24323         New module 'unistr/u16-strcoll'.
24324         * modules/unistr/u16-strcoll: New file.
24325         * lib/unistr/u16-strcoll.c: New file.
24326
24327         New module 'unistr/u8-strcoll'.
24328         * modules/unistr/u8-strcoll: New file.
24329         * lib/unistr/u8-strcoll.c: New file.
24330         * lib/unistr/u-strcoll.h: New file.
24331
24332 2009-02-07  Bruno Haible  <bruno@clisp.org>
24333
24334         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24335         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24336         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24337         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24338         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24339         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24340
24341 2009-02-07  Bruno Haible  <bruno@clisp.org>
24342
24343         Make 64-bit clean.
24344         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24345         output_combclass, output_bidi_category, output_decimal_digit,
24346         output_digit, output_numeric, output_mirror, output_scripts,
24347         output_ident_category): Use proper width specifier in format strings.
24348
24349 2009-02-07  Bruno Haible  <bruno@clisp.org>
24350
24351         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24352         failure behaviour.
24353
24354 2009-02-07  Jim Meyering  <meyering@redhat.com>
24355
24356         regex: avoid compilation failure with upcoming gcc-4.4
24357         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24358         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24359         "... error: integer overflow in preprocessor expression".
24360
24361 2009-02-05  Ben Pfaff  <blp@gnu.org>
24362
24363         Fix link errors on Windows when close module is used.
24364         * modules/close: Add $(LIB_CLOSE) to Link section.
24365         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24366         $(LIB_CLOSE) on Windows.
24367
24368 2009-02-05  Jim Meyering  <meyering@redhat.com>
24369
24370         still avoid unused-parameter warnings, but do it cleanly
24371         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24372         (get_fs_usage): Cast to void instead.
24373         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24374         (dev_from_mount_options, read_file_system_list): Cast to void.
24375         Prompted by Bruno Haible.
24376
24377 2009-02-04  Jim Meyering  <meyering@redhat.com>
24378
24379         fsusage.c: correct copyright year
24380         * lib/fsusage.c: Reflect year in which the change is pushed into
24381
24382         avoid misc. warnings
24383         * lib/fsusage.c (UNUSED_PARAM): Define.
24384         (get_fs_usage): Mark parameter "disk" as unused.
24385         * lib/getugroups.c (getgrent): Use "void" in prototype.
24386         * lib/mountlist.c: Mark unused parameters.
24387         (read_file_system_list): Declare a local with "const".
24388         * lib/nanosleep.c (getnow): Declare static.
24389         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24390
24391         dirfd: set errno upon failure
24392         * lib/dirfd.c: Include <errno.h>.
24393         Set errno to ENOTSUP when returning -1.
24394         * modules/dirfd (Depends-on): Add errno.
24395         Suggested by John Kodis <kodis@comcast.net>.
24396
24397 2009-02-01  Bruno Haible  <bruno@clisp.org>
24398
24399         Don't assume sizeof (long) >= sizeof (void *).
24400         * lib/memcmp.c: Include stdint.h.
24401         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24402         srcp2 to 'const byte *'.
24403         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24404         types to uintptr_t.
24405         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24406         * modules/memcmp (Depends-on): Add stdint.
24407         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24408
24409 2009-01-30  Eric Blake  <ebb9@byu.net>
24410
24411         fix more require-before-expand issues
24412         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24413         expand, AC_PROG_AWK.
24414         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24415
24416 2009-01-28  Eric Blake  <ebb9@byu.net>
24417
24418         version-etc: use consistent URL formatting
24419         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24420         Improve formatting.  Use fputs for string without %.
24421
24422 2009-01-28  Jim Meyering  <meyering@redhat.com>
24423
24424         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24425         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24426         "underquoted definition of NAME" from autoconf-2.59.
24427
24428 2009-01-28  Bruno Haible  <bruno@clisp.org>
24429
24430         * doc/gnulib.texi: Add "Obsolete modules" to index.
24431
24432 2009-01-28  Jim Meyering  <meyering@redhat.com>
24433
24434         useless-if-before-free: recognize more variants
24435         * build-aux/useless-if-before-free: Also recognize e.g.,
24436         if (NULL != p) free (p);
24437
24438 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24439
24440         test-getaddrinfo: skip (don't fail) this test when there's no network
24441         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24442         on the presumption that it means you lack network access.
24443
24444 2009-01-26  Jim Meyering  <meyering@redhat.com>
24445
24446         fflush: avoid warnings on modern systems
24447         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24448         pos and result, into scopes where they're used.
24449
24450 2009-01-26  Eric Blake  <ebb9@byu.net>
24451
24452         Silence warning reintroduced by recent extensions patch.
24453         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24454         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24455         autoconf.
24456
24457         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24458         * m4/00gnulib.m4: New file.
24459         * gnulib-tool (func_get_filelist): Always use it.
24460         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24461         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24462
24463 2009-01-25  Bruno Haible  <bruno@clisp.org>
24464
24465         Make test-quotearg work on MacOS X and AIX.
24466         * tests/test-quotearg.sh: New file.
24467         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24468         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24469         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24470         include <libintl.h>.
24471         (fake_locale): Remove variable.
24472         (gettext, dgettext, dcgettext): Remove functions.
24473         (main): Instead of setting a fake locale, set a real locale. Call
24474         textdomain and bindtextdomain.
24475         * modules/quotearg-tests (Files): Add the new files.
24476         (Depends-on): Add gettext, setenv, unsetenv.
24477         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24478         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24479         Augment TESTS_ENVIRONMENT.
24480
24481 2009-01-25  Bruno Haible  <bruno@clisp.org>
24482
24483         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24484         fr_FR.ISO8859-1 locale on MacOS X.
24485         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24486         ja_JP.eucJP locale on MacOS X.
24487         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24488         zh_CN.GB18030 locale on MacOS X.
24489
24490 2009-01-25  Bruno Haible  <bruno@clisp.org>
24491
24492         Avoid link errors on MacOS X 10.3.
24493         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24494         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24495
24496 2009-01-25  Bruno Haible  <bruno@clisp.org>
24497
24498         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24499         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24500         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24501         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24502         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24503         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24504         posix_spawnattr_init, posix_spawnattr_setsigmask,
24505         posix_spawnattr_setflags, posix_spawnattr_destroy.
24506
24507         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24508         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24509         * modules/execute (Files): Remove m4/posix_spawn.m4.
24510         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24511         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24512         posix_spawnattr_init, posix_spawnattr_setsigmask,
24513         posix_spawnattr_setflags, posix_spawnattr_destroy.
24514
24515 2009-01-25  Bruno Haible  <bruno@clisp.org>
24516
24517         * lib/glthread/threadlib.c: Include <stdlib.h>.
24518
24519 2009-01-25  Bruno Haible  <bruno@clisp.org>
24520
24521         * lib/glthread/threadlib.c (dummy): New declaration.
24522
24523 2009-01-25  Bruno Haible  <bruno@clisp.org>
24524
24525         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24526         multibyte characters also for the GB18030 encoding. Don't crash when
24527         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24528
24529 2009-01-25  Bruno Haible  <bruno@clisp.org>
24530
24531         Avoid redefining 'struct random_data' on OSF/1 5.1.
24532         * lib/stdlib.in.h: Include <random.h> if it exists.
24533         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24534         HAVE_RANDOM_H. Include <random.h> when testing whether
24535         'struct random_data' exists.
24536         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24537
24538 2009-01-25  Bruno Haible  <bruno@clisp.org>
24539
24540         Don't install charset.alias on MacOS X >= 10.3.
24541         * lib/localcharset.c (DARWIN7): New macro.
24542         (get_charset_aliases): Hardcode the result for Darwin7.
24543         * modules/localcharset (install-exec-local): Don't install
24544         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24545
24546 2009-01-25  Bruno Haible  <bruno@clisp.org>
24547
24548         Don't install charset.alias on mingw and Cygwin.
24549         * modules/localcharset (install-exec-local): Don't install
24550         charset.alias on mingw and Cygwin, if the file does not yet exist.
24551         The result for these platforms is hardcoded in localcharset.c.
24552
24553 2009-01-25  Bruno Haible  <bruno@clisp.org>
24554
24555         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24556         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24557         before requiring AC_USE_SYSTEM_EXTENSIONS.
24558
24559 2009-01-25  Jim Meyering  <meyering@redhat.com>
24560
24561         c-strtod: avoid warnings
24562         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24563         "assignment discards qualifiers from pointer target type" warnings.
24564
24565 2009-01-24  Bruno Haible  <bruno@clisp.org>
24566
24567         Add support for non-UTF-8 locales on MacOS X.
24568         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24569         canonical encodings. For Darwin 7 and newer, don't map traditional
24570         encodings to UTF-8.
24571         Reported by Vincent Lefevre <vincent@vinc17.org>
24572         at <http://savannah.gnu.org/bugs/?25235>.
24573
24574 2009-01-24  Bruno Haible  <bruno@clisp.org>
24575
24576         * doc/gnulib.texi (Obsolete modules): New section.
24577         Reported by Mike Frysinger <vapier@gentoo.org>.
24578
24579 2009-01-24  Bruno Haible  <bruno@clisp.org>
24580
24581         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24582         (%.dvi): New rule.
24583
24584 2009-01-24  Bruno Haible  <bruno@clisp.org>
24585
24586         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24587         Reported by Eric Blake.
24588
24589 2009-01-24  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24592         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24593         Reported by Gary V. Vaughan <gary@gnu.org>.
24594
24595 2009-01-24  Bruno Haible  <bruno@clisp.org>
24596
24597         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24598
24599 2009-01-23  Bruno Haible  <bruno@clisp.org>
24600
24601         Make c-strtod, c-strtold usable in libraries.
24602         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24603         (C_STRTOD): Call strdup instead of xstrdup.
24604         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24605         * modules/c-strtold (Depends-on): Likewise.
24606         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24607         * NEWS: Mention the change.
24608         Reported by Michael Gold <mgold@ncf.ca>.
24609
24610 2009-01-23  Jim Meyering  <meyering@redhat.com>
24611
24612         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24613         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24614         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24615
24616 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24617
24618         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24619         GNU CoreUtils.
24620         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24621         * modules/version-etc (Description): Update.
24622
24623 2009-01-22  Bruno Haible  <bruno@clisp.org>
24624
24625         Cache the C locale object.
24626         * lib/c-strtod.c (c_locale_cache): New variable.
24627         (c_locale): New function.
24628         (C_STRTOD): Use it, and don't call freelocale.
24629         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24630         Suggested by Paolo Bonzini.
24631
24632 2009-01-21  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24635         conditions other than overflow.
24636
24637 2009-01-21  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/c-strtod.c: Include errno.h.
24640         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24641         value from STRTOD_L and STRTOD.
24642
24643 2009-01-21  Bruno Haible  <bruno@clisp.org>
24644         and Jim Meyering  <meyering@redhat.com>
24645
24646         nanosleep: skip configure test (fail it) for apple universal builds
24647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24648         universal builds, assume that nanosleep does not work.
24649         * modules/nanosleep (Depends-on): Add multiarch.
24650
24651         mktime: skip configure test (fail it) for apple universal builds
24652         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24653         universal builds, assume that mktime does not work.
24654         * modules/mktime (Depends-on): Add multiarch.
24655
24656 2009-01-21  Eric Blake  <ebb9@byu.net>
24657
24658         multiarch: avoid expand-before-require warning
24659         * modules/multiarch (configure.ac): Require, rather than expand,
24660         gl_MULTIARCH.
24661         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24662         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24663         enforce that all clients require it.  Partial reversion of
24664         2008-12-29 patch.
24665
24666         error: avoid expand-before-require warning
24667         * modules/errno (configure.ac): Require, rather than expand,
24668         gl_HEADER_ERRNO_H.
24669         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24670         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24671         enforce that all clients require it.
24672
24673         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24674         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24675         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24676         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24677
24678 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24679
24680         Revert:
24681         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24682
24683         regex: do not depend on obsolete modules.
24684         * modules/regex: Remove memcmp and memmove.
24685
24686 2009-01-20  Bruno Haible  <bruno@clisp.org>
24687
24688         Make the 'link' module link on Windows NT 4.
24689         * lib/link.c (_WIN32_WINNT): Don't define.
24690         (CreateHardLinkFuncType): New type.
24691         (CreateHardLinkFunc, initialized): New variables.
24692         (initialize): New function.
24693         (link): Invoke CreateHardLink indirectly through the function pointer.
24694
24695 2009-01-20  Bruno Haible  <bruno@clisp.org>
24696
24697         Fix compilation failure on mingw.
24698         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24699
24700 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24701
24702         * doc/c-strtod.texi: Mention a couple of restrictions.
24703
24704 2009-01-20  Jim Meyering  <meyering@redhat.com>
24705
24706         gettimeofday: move more declarations out of functions
24707         * lib/gettimeofday.c: Move extern declarations of tzset and
24708         gmtime out of containing functions.  Prompted by Bruno Haible.
24709
24710 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24711
24712         regex: do not depend on obsolete modules.
24713         * modules/regex: Remove memcmp and memmove.
24714
24715 2009-01-19  Bruno Haible  <bruno@clisp.org>
24716
24717         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24718         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24719         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24720         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24721         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24722
24723 2009-01-19  Bruno Haible  <bruno@clisp.org>
24724
24725         * tests/test-link.c: Include <errno.h>.
24726         (main): Exit with code 77 when a hard link cannot be created due to
24727         the file system.
24728         * tests/test-link.sh: Skip test when a hard link cannot be created due
24729         to the file system.
24730         Suggested by Eric Blake.
24731
24732 2009-01-19  Martin Lambers  <marlam@marlam.de>
24733
24734         * modules/link-tests: New file.
24735         * tests/test-link.sh: New file.
24736         * tests/test-link.c: New file.
24737
24738 2009-01-19  Eric Blake  <ebb9@byu.net>
24739
24740         doc: mention another function added in cygwin 1.7.0
24741         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24742         Another new function in cygwin 1.7.
24743
24744 2009-01-19  Bruno Haible  <bruno@clisp.org>
24745
24746         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24747         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24748         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24749         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24750         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24751         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24753         * m4/md4.m4 (gl_MD4): Likewise.
24754         * m4/md5.m4 (gl_MD5): Likewise.
24755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24756         * m4/sha1.m4 (gl_SHA1): Likewise.
24757         * m4/sha256.m4 (gl_SHA256): Likewise.
24758         * m4/sha512.m4 (gl_SHA512): Likewise.
24759
24760 2009-01-19  Bruno Haible  <bruno@clisp.org>
24761
24762         * modules/uniname/uniname-tests (Depends-on): Add progname.
24763         * tests/uniname/test-uninames.c: Include progname.h.
24764         (main): Call set_program_name.
24765
24766         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24767         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24768         (main): Call set_program_name.
24769
24770         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24771         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24772         (main): Call set_program_name.
24773
24774         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24775         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24776         (main): Call set_program_name.
24777
24778         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24779         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24780         (main): Call set_program_name.
24781
24782         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24783         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24784         (main): Call set_program_name.
24785
24786         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24787         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24788         (main): Call set_program_name.
24789
24790         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24791         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24792         (main): Call set_program_name.
24793
24794         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24795         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24796         (main): Call set_program_name.
24797
24798 2009-01-19  Eric Blake  <ebb9@byu.net>
24799
24800         test-unistd: test previous patch
24801         * tests/test-unistd.c: Test *_FILENO macros.
24802
24803         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24804         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24805         Guarantee a definition.
24806         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24807         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24808         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24809         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24810         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24811         Likewise.
24812         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24813         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24814         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24815         Likewise.
24816         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24817         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24818         (STDERR_FILENO): Likewise.
24819         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24820         (STDERR_FILENO): Likewise.
24821         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24822         (STDERR_FILENO): Likewise.
24823         Reported by Elbert Pol.
24824
24825 2009-01-19  Eric Blake  <ebb9@byu.net>
24826
24827         doc: mention more functions added in cygwin 1.7.0
24828         * doc/posix-functions/abort.texi (abort): Update wording related
24829         to cygwin.
24830         * doc/posix-functions/daylight.texi (daylight): Likewise.
24831         * doc/posix-functions/optarg.texi (optarg): Likewise.
24832         * doc/posix-functions/optarg.texi (opterr): Likewise.
24833         * doc/posix-functions/optarg.texi (optind): Likewise.
24834         * doc/posix-functions/optarg.texi (optopt): Likewise.
24835         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24836         worked in 1.5.x, and was withdrawn in 1.7.
24837         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24838         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24839         cygwin versions.
24840         * doc/posix-functions/perror.texi (perror): Likewise.
24841         * doc/posix-functions/printf.texi (printf): Likewise.
24842         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24843         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24844         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24845         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24846         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24847         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24848         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24849         Likewise.
24850         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24851         Likewise.
24852         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24853         this function.
24854         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24855         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24856         Likewise.
24857         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24858         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24859         * doc/posix-functions/confstr.texi (confstr): Likewise.
24860         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24861         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24862         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24863         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24864         * doc/posix-functions/fputws.texi (fputws): Likewise.
24865         * doc/posix-functions/fwide.texi (fwide): Likewise.
24866         * doc/posix-functions/getwc.texi (getwc): Likewise.
24867         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24868         * doc/posix-functions/putwc.texi (putwc): Likewise.
24869         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24870         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24871         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24872         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24873         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24874         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24875         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24876         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24877         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24878         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24879         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24880
24881 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24882
24883         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24884         * lib/ioctl.c: Include <sys/ioctl.h>.
24885
24886 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24887
24888         * modules/getdate-tests (Depends-on): Add progname.
24889         * tests/test-getdate.c: Use progname module, to avoid link errors
24890         on non-glibc systems.
24891
24892 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24893
24894         * modules/filenamecat-tests (Depends-on): Add progname.
24895         * modules/fstrcmp-tests (Depends-on): Likewise.
24896
24897         * tests/test-filenamecat.c: Use progname module, to avoid link
24898         errors on non-glibc systems.
24899         * tests/test-fstrcmp.c: Likewise.
24900
24901 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24902
24903         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24904         * lib/gettimeofday.c: Move extern declaration out of function.
24905
24906 2009-01-18  Bruno Haible  <bruno@clisp.org>
24907
24908         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24909         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24910         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24911
24912 2009-01-18  Bruno Haible  <bruno@clisp.org>
24913
24914         * lib/strftime.c (MEMPCPY): Remove unused macro.
24915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24916
24917 2009-01-18  Martin Lambers  <marlam@marlam.de>
24918
24919         New module 'link'.
24920         * lib/unistd.in.h (link): New declaration.
24921         * lib/link.c: New file.
24922         * m4/link.m4: New file.
24923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24924         HAVE_LINK.
24925         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24926         * modules/link: New file.
24927         * doc/posix-functions/link.texi: Mention the new module.
24928
24929 2009-01-18  Bruno Haible  <bruno@clisp.org>
24930
24931         * tests/test-avltree_list.c (main): Call set_program_name.
24932         * tests/test-avltree_oset.c (main): Likewise.
24933         * tests/test-obstack-printf.c: Include progname.h.
24934         (main): Call set_program_name.
24935         * tests/test-quotearg.c: Include progname.h.
24936         (main): Call set_program_name.
24937         * tests/test-xmemdup0.c: Include progname.h.
24938         (main): Call set_program_name.
24939
24940 2009-01-18  Bruno Haible  <bruno@clisp.org>
24941
24942         New module 'alphasort'.
24943         * lib/dirent.in.h (alphasort): New declaration.
24944         * lib/alphasort.c: New file, from glibc with modifications.
24945         * m4/alphasort.m4: New file.
24946         * modules/alphasort: New file.
24947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24948         HAVE_ALPHASORT.
24949         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24950         HAVE_ALPHASORT.
24951         * doc/posix-functions/alphasort.texi: Mention the new module and the
24952         portability problems.
24953
24954 2009-01-18  Bruno Haible  <bruno@clisp.org>
24955
24956         New module 'scandir'.
24957         * lib/dirent.in.h (scandir): New declaration.
24958         * lib/scandir.c: New file, from glibc with modifications.
24959         * m4/scandir.m4: New file.
24960         * modules/scandir: New file.
24961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24962         HAVE_SCANDIR.
24963         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24964         HAVE_SCANDIR.
24965         * doc/posix-functions/scandir.texi: Mention the new module and the
24966         portability problems.
24967
24968 2009-01-17  Bruno Haible  <bruno@clisp.org>
24969
24970         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24971         Update documentation.
24972         (func_remove_suffix): Escape all dots in the suffix. Update
24973         documentation.
24974         (func_filter_filelist): Update documentation.
24975         Reported by Ralf Wildenhues.
24976
24977 2009-01-17  Bruno Haible  <bruno@clisp.org>
24978
24979         * modules/dprintf-posix-tests: New file.
24980         * tests/test-dprintf-posix.sh: New file.
24981         * tests/test-dprintf-posix.c: New file.
24982
24983         New modules 'dprintf', 'dprintf-posix'.
24984         * lib/stdio.in.h (dprintf): New declaration.
24985         * lib/dprintf.c: New file.
24986         * m4/dprintf.m4: New file.
24987         * m4/dprintf-posix.m4: New file.
24988         * modules/dprintf: New file.
24989         * modules/dprintf-posix: New file.
24990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24991         HAVE_DPRINTF, REPLACE_DPRINTF.
24992         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24993         HAVE_DPRINTF, REPLACE_DPRINTF.
24994         * doc/posix-functions/dprintf.texi: Mention the new modules.
24995
24996 2009-01-17  Bruno Haible  <bruno@clisp.org>
24997
24998         * modules/vdprintf-posix-tests: New file.
24999         * tests/test-vdprintf-posix.sh: New file.
25000         * tests/test-vdprintf-posix.c: New file.
25001
25002         New modules 'vdprintf', 'vdprintf-posix'.
25003         * lib/stdio.in.h (vdprintf): New declaration.
25004         * lib/vdprintf.c: New file.
25005         * m4/vdprintf.m4: New file.
25006         * m4/vdprintf-posix.m4: New file.
25007         * modules/vdprintf: New file.
25008         * modules/vdprintf-posix: New file.
25009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25010         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25011         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25012         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25013         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25014
25015 2009-01-17  Bruno Haible  <bruno@clisp.org>
25016
25017         Fix replacement of fopen on mingw.
25018         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25019         mingw.
25020
25021 2009-01-17  Bruno Haible  <bruno@clisp.org>
25022
25023         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25024         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25025
25026 2009-01-17  Bruno Haible  <bruno@clisp.org>
25027
25028         Avoid test-fflush2.sh failure on mingw.
25029         * tests/test-fflush2.c: Include binary-io.h.
25030         (main): Put standard input into binary mode.
25031         * modules/fflush-tests (Depends-on): Add binary-io.
25032
25033 2009-01-17  Bruno Haible  <bruno@clisp.org>
25034
25035         * lib/wchar.in.h: In another particular situation, include only the
25036         system's <wchar.h> file.
25037         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25038         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25039         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25040
25041 2009-01-17  Bruno Haible  <bruno@clisp.org>
25042
25043         Support for stripping executables in --enable-relocatable.
25044         * build-aux/install-reloc: Expect one more argument, or an environment
25045         variable RELOC_STRIP_PROG. If set, strip the destination program and
25046         its wrapper.
25047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25048         RELOC_STRIP_PROG.
25049         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25050         to set RELOCATABLE_STRIP.
25051         * NEWS: Mention the new Makefile requirement.
25052
25053 2009-01-17  Bruno Haible  <bruno@clisp.org>
25054
25055         * build-aux/install-reloc: Remove debugging information left over by
25056         C compiler on MacOS X.
25057
25058 2009-01-17  Bruno Haible  <bruno@clisp.org>
25059
25060         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25061         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25062         _NSGetExecutablePath.
25063
25064 2009-01-16  Jim Meyering  <meyering@redhat.com>
25065
25066         strerror: avoid warnings about discarding "const"
25067         * lib/strerror.c (rpl_strerror): Instead of returning a const
25068         string from each and every "case", use a variable, and add a single
25069         cast after the switch.
25070
25071 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25072
25073         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25074
25075 2009-01-16  Bruno Haible  <bruno@clisp.org>
25076
25077         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25078         array initializer syntax that also works in C++ mode.
25079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25080
25081 2009-01-16  Jim Meyering  <meyering@redhat.com>
25082
25083         poll: suppress a warning
25084         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25085         to ignore "...unsigned expression < 0 is always false" warnings.
25086
25087 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25088
25089         poll: remove declarations of unused variables
25090         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25091         sockbuf and optlen.
25092
25093 2009-01-15  Bruno Haible  <bruno@clisp.org>
25094
25095         Make fflush-after-ungetc POSIX compliant on BSD systems.
25096         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25097         (clear_ungetc_buffer): Implement also for other systems.
25098         (rpl_fflush): On glibc systems, invoke
25099         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25100         clear_ungetc_buffer after fetching the stream's position, not before.
25101
25102 2009-01-15  Bruno Haible  <bruno@clisp.org>
25103
25104         Make fflush-after-ungetc POSIX compliant on glibc systems.
25105         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25106         after ungetc.
25107         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25108         (rpl_fflush): On glibc systems, simply call the system's fflush
25109         function after clearing the ungetc buffer.
25110         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25111         Instead, lseek only to the end of file, then use the system's fseeko
25112         for the rest. On glibc systems, reset the EOF indicator bit.
25113
25114 2009-01-15  Jim Meyering  <meyering@redhat.com>
25115
25116         openmp.m4: revert quote-adding change, for portability to older autoconf
25117         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25118         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25119         Simon Josefsson noticed the problem when using autoconf-2.61.
25120
25121 2009-01-15  Bruno Haible  <bruno@clisp.org>
25122
25123         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25124         * tests/test-fflush2.c (ASSERT): Always fail.
25125         (main): Add two tests for fflush() after ungetc(), taking into account
25126         the Austin Group's clarification.
25127         Suggested by Eric Blake.
25128
25129 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25130
25131         mktime.m4: remove K&R-style function prototypes
25132         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25133         for the Sun C++ compiler.
25134
25135 2009-01-14  Bruno Haible  <bruno@clisp.org>
25136
25137         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25138         while including <wchar.h>.
25139         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25140         the system's <wchar.h> file.
25141         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25142
25143 2009-01-14  Bruno Haible  <bruno@clisp.org>
25144
25145         * m4/csharp.m4: Don't mention gettext on the serial number line.
25146         * m4/csharpexec.m4: Likewise.
25147         * m4/eaccess.m4: Likewise.
25148         * m4/javaexec.m4: Likewise.
25149         * m4/sig_atomic_t.m4: Likewise.
25150         * m4/tmpdir.m4: Likewise.
25151         * m4/intldir.m4: Bump gettext version.
25152         * m4/lib-ld.m4: Likewise.
25153
25154 2009-01-14  Bruno Haible  <bruno@clisp.org>
25155
25156         * lib/progname.c (set_program_name): Add more comments.
25157         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25158
25159 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25160
25161         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25162         were sys/stat.h does not define it.
25163
25164 2009-01-14  Jim Meyering  <meyering@redhat.com>
25165
25166         many *.m4 files: improve m4 quoting
25167         99% of this change was performed by running the following commands:
25168         git ls-files | grep '\.m4$' | xargs perl -pi \
25169           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25170           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25171           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25172           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25173         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25174         The remainder were to add Copyright dates, increment serial numbers,
25175         undo some changes in comments, exclude m4/intl.m4, and add quotes
25176         around the "1" in ",1" where the unusual spacing prohibited the
25177         above regexps from doing the job.  For more details, see
25178         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25179         * m4/acl.m4: Modified.
25180         * m4/afs.m4: Likewise.
25181         * m4/alloca.m4: Likewise.
25182         * m4/argp.m4: Likewise.
25183         * m4/argz.m4: Likewise.
25184         * m4/atexit.m4: Likewise.
25185         * m4/bison-i18n.m4: Likewise.
25186         * m4/bison.m4: Likewise.
25187         * m4/byteswap.m4: Likewise.
25188         * m4/c-stack.m4: Likewise.
25189         * m4/c-strtod.m4: Likewise.
25190         * m4/calloc.m4: Likewise.
25191         * m4/canonicalize-lgpl.m4: Likewise.
25192         * m4/chown.m4: Likewise.
25193         * m4/clock_time.m4: Likewise.
25194         * m4/codeset.m4: Likewise.
25195         * m4/copy-file.m4: Likewise.
25196         * m4/csharp.m4: Likewise.
25197         * m4/csharpcomp.m4: Likewise.
25198         * m4/csharpexec.m4: Likewise.
25199         * m4/d-ino.m4: Likewise.
25200         * m4/d-type.m4: Likewise.
25201         * m4/dirfd.m4: Likewise.
25202         * m4/double-slash-root.m4: Likewise.
25203         * m4/eaccess.m4: Likewise.
25204         * m4/eealloc.m4: Likewise.
25205         * m4/environ.m4: Likewise.
25206         * m4/errno_h.m4: Likewise.
25207         * m4/euidaccess.m4: Likewise.
25208         * m4/execute.m4: Likewise.
25209         * m4/fatal-signal.m4: Likewise.
25210         * m4/fchdir.m4: Likewise.
25211         * m4/fcntl_h.m4: Likewise.
25212         * m4/fileblocks.m4: Likewise.
25213         * m4/filenamecat.m4: Likewise.
25214         * m4/findprog.m4: Likewise.
25215         * m4/flexmember.m4: Likewise.
25216         * m4/fnmatch.m4: Likewise.
25217         * m4/fopen.m4: Likewise.
25218         * m4/fpending.m4: Likewise.
25219         * m4/fprintf-posix.m4: Likewise.
25220         * m4/free.m4: Likewise.
25221         * m4/frexp.m4: Likewise.
25222         * m4/frexpl.m4: Likewise.
25223         * m4/fsusage.m4: Likewise.
25224         * m4/ftruncate.m4: Likewise.
25225         * m4/gc-camellia.m4: Likewise.
25226         * m4/gc-random.m4: Likewise.
25227         * m4/gc.m4: Likewise.
25228         * m4/getaddrinfo.m4: Likewise.
25229         * m4/getcwd-abort-bug.m4: Likewise.
25230         * m4/getcwd-path-max.m4: Likewise.
25231         * m4/getdate.m4: Likewise.
25232         * m4/getdomainname.m4: Likewise.
25233         * m4/getgroups.m4: Likewise.
25234         * m4/gethostname.m4: Likewise.
25235         * m4/gethrxtime.m4: Likewise.
25236         * m4/getline.m4: Likewise.
25237         * m4/getloadavg.m4: Likewise.
25238         * m4/getndelim2.m4: Likewise.
25239         * m4/getpass.m4: Likewise.
25240         * m4/gettext.m4: Likewise.
25241         * m4/gettime.m4: Likewise.
25242         * m4/gettimeofday.m4: Likewise.
25243         * m4/gnulib-common.m4: Likewise.
25244         * m4/group-member.m4: Likewise.
25245         * m4/host-os.m4: Likewise.
25246         * m4/iconv.m4: Likewise.
25247         * m4/iconv_open.m4: Likewise.
25248         * m4/inet_ntop.m4: Likewise.
25249         * m4/inet_pton.m4: Likewise.
25250         * m4/inline.m4: Likewise.
25251         * m4/intldir.m4: Likewise.
25252         * m4/intlmacosx.m4: Likewise.
25253         * m4/intmax.m4: Likewise.
25254         * m4/intmax_t.m4: Likewise.
25255         * m4/inttypes.m4: Likewise.
25256         * m4/inttypes_h.m4: Likewise.
25257         * m4/inttypes-pri.m4: Likewise.
25258         * m4/isapipe.m4: Likewise.
25259         * m4/isnand.m4: Likewise.
25260         * m4/isnanf.m4: Likewise.
25261         * m4/isnanl.m4: Likewise.
25262         * m4/javacomp.m4: Likewise.
25263         * m4/javaexec.m4: Likewise.
25264         * m4/jm-winsz1.m4: Likewise.
25265         * m4/jm-winsz2.m4: Likewise.
25266         * m4/lchown.m4: Likewise.
25267         * m4/lcmessage.m4: Likewise.
25268         * m4/ldexpl.m4: Likewise.
25269         * m4/lib-ld.m4: Likewise.
25270         * m4/lib-link.m4: Likewise.
25271         * m4/libsigsegv.m4: Likewise.
25272         * m4/link-follow.m4: Likewise.
25273         * m4/localcharset.m4: Likewise.
25274         * m4/locale-fr.m4: Likewise.
25275         * m4/locale-ja.m4: Likewise.
25276         * m4/locale-tr.m4: Likewise.
25277         * m4/locale-zh.m4: Likewise.
25278         * m4/lock.m4: Likewise.
25279         * m4/longlong.m4: Likewise.
25280         * m4/ls-mntd-fs.m4: Likewise.
25281         * m4/lstat.m4: Likewise.
25282         * m4/malloc.m4: Likewise.
25283         * m4/mathl.m4: Likewise.
25284         * m4/mbrtowc.m4: Likewise.
25285         * m4/mbstate_t.m4: Likewise.
25286         * m4/mbswidth.m4: Likewise.
25287         * m4/memchr.m4: Likewise.
25288         * m4/memcmp.m4: Likewise.
25289         * m4/memcpy.m4: Likewise.
25290         * m4/memmem.m4: Likewise.
25291         * m4/memmove.m4: Likewise.
25292         * m4/mempcpy.m4: Likewise.
25293         * m4/memrchr.m4: Likewise.
25294         * m4/memset.m4: Likewise.
25295         * m4/minmax.m4: Likewise.
25296         * m4/mkdir-slash.m4: Likewise.
25297         * m4/mkdtemp.m4: Likewise.
25298         * m4/mktime.m4: Likewise.
25299         * m4/mmap-anon.m4: Likewise.
25300         * m4/mountlist.m4: Likewise.
25301         * m4/nanosleep.m4: Likewise.
25302         * m4/nls.m4: Likewise.
25303         * m4/nocrash.m4: Likewise.
25304         * m4/open.m4: Likewise.
25305         * m4/openat.m4: Likewise.
25306         * m4/openmp.m4: Likewise.
25307         * m4/pathmax.m4: Likewise.
25308         * m4/perl.m4: Likewise.
25309         * m4/physmem.m4: Likewise.
25310         * m4/pipe.m4: Likewise.
25311         * m4/po.m4: Likewise.
25312         * m4/poll.m4: Likewise.
25313         * m4/posixtm.m4: Likewise.
25314         * m4/posixver.m4: Likewise.
25315         * m4/printf-frexp.m4: Likewise.
25316         * m4/printf-frexpl.m4: Likewise.
25317         * m4/printf-posix.m4: Likewise.
25318         * m4/printf-posix-rpl.m4: Likewise.
25319         * m4/printf.m4: Likewise.
25320         * m4/progtest.m4: Likewise.
25321         * m4/putenv.m4: Likewise.
25322         * m4/readline.m4: Likewise.
25323         * m4/readlink.m4: Likewise.
25324         * m4/readutmp.m4: Likewise.
25325         * m4/realloc.m4: Likewise.
25326         * m4/regex.m4: Likewise.
25327         * m4/relocatable.m4: Likewise.
25328         * m4/relocatable-lib.m4: Likewise.
25329         * m4/rename-dest-slash.m4: Likewise.
25330         * m4/rename.m4: Likewise.
25331         * m4/rmdir-errno.m4: Likewise.
25332         * m4/rmdir.m4: Likewise.
25333         * m4/roundf.m4: Likewise.
25334         * m4/roundl.m4: Likewise.
25335         * m4/rpmatch.m4: Likewise.
25336         * m4/save-cwd.m4: Likewise.
25337         * m4/selinux-selinux-h.m4: Likewise.
25338         * m4/setenv.m4: Likewise.
25339         * m4/settime.m4: Likewise.
25340         * m4/sig2str.m4: Likewise.
25341         * m4/sig_atomic_t.m4: Likewise.
25342         * m4/signalblocking.m4: Likewise.
25343         * m4/signbit.m4: Likewise.
25344         * m4/sigpipe.m4: Likewise.
25345         * m4/sockets.m4: Likewise.
25346         * m4/sockpfaf.m4: Likewise.
25347         * m4/st_dm_mode.m4: Likewise.
25348         * m4/stat-time.m4: Likewise.
25349         * m4/stdbool.m4: Likewise.
25350         * m4/stdint.m4: Likewise.
25351         * m4/stdint_h.m4: Likewise.
25352         * m4/stpcpy.m4: Likewise.
25353         * m4/stpncpy.m4: Likewise.
25354         * m4/strcase.m4: Likewise.
25355         * m4/strchrnul.m4: Likewise.
25356         * m4/strcspn.m4: Likewise.
25357         * m4/strdup.m4: Likewise.
25358         * m4/strftime.m4: Likewise.
25359         * m4/strndup.m4: Likewise.
25360         * m4/strnlen.m4: Likewise.
25361         * m4/strpbrk.m4: Likewise.
25362         * m4/strptime.m4: Likewise.
25363         * m4/strsep.m4: Likewise.
25364         * m4/strtod.m4: Likewise.
25365         * m4/strtoimax.m4: Likewise.
25366         * m4/strtok_r.m4: Likewise.
25367         * m4/strtol.m4: Likewise.
25368         * m4/strtoll.m4: Likewise.
25369         * m4/strtoul.m4: Likewise.
25370         * m4/strtoull.m4: Likewise.
25371         * m4/strtoumax.m4: Likewise.
25372         * m4/strverscmp.m4: Likewise.
25373         * m4/threadlib.m4: Likewise.
25374         * m4/timegm.m4: Likewise.
25375         * m4/tm_gmtoff.m4: Likewise.
25376         * m4/tmpdir.m4: Likewise.
25377         * m4/tmpfile.m4: Likewise.
25378         * m4/tzset.m4: Likewise.
25379         * m4/uintmax_t.m4: Likewise.
25380         * m4/unlinkdir.m4: Likewise.
25381         * m4/unlocked-io.m4: Likewise.
25382         * m4/uptime.m4: Likewise.
25383         * m4/userspec.m4: Likewise.
25384         * m4/utimbuf.m4: Likewise.
25385         * m4/utime.m4: Likewise.
25386         * m4/utimes-null.m4: Likewise.
25387         * m4/utimes.m4: Likewise.
25388         * m4/vararrays.m4: Likewise.
25389         * m4/vasnprintf.m4: Likewise.
25390         * m4/vfprintf-posix.m4: Likewise.
25391         * m4/vprintf-posix.m4: Likewise.
25392         * m4/wait-process.m4: Likewise.
25393         * m4/wchar_t.m4: Likewise.
25394         * m4/wint_t.m4: Likewise.
25395         * m4/write-any-file.m4: Likewise.
25396         * m4/yield.m4: Likewise.
25397
25398 2009-01-13  Bruno Haible  <bruno@clisp.org>
25399
25400         Avoid test-copy-file.sh failures when ACL support insufficient.
25401         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25402         TESTS_ENVIRONMENT.
25403         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25404         Reported by Jim Meyering.
25405
25406 2009-01-13  Bruno Haible  <bruno@clisp.org>
25407
25408         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25409         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25410         * modules/unistdio/u8-printf-parse (Files): Likewise.
25411         * modules/unistdio/u32-printf-parse (Files): Likewise.
25412         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25413
25414 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25415
25416         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25417         and m4/inttypes_h.m4 too.
25418
25419 2009-01-12  Eric Blake  <ebb9@byu.net>
25420
25421         tests: IRIX 6.2 cc can't compile -0.0 into .data
25422         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25423         rather than at compile-time.
25424         * tests/test-floorl.c (minus_zero): Likewise.
25425         * tests/test-frexpl.c (minus_zero): Likewise.
25426         * tests/test-isnan.c (minus_zerol): Likewise.
25427         * tests/test-isnanl.h (minus_zero): Likewise.
25428         * tests/test-ldexpl.c (minus_zero): Likewise.
25429         * tests/test-roundl.c (minus_zero): Likewise.
25430         * tests/test-signbit.c (minus_zerol): Likewise.
25431         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25432         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25433         * tests/test-truncl.c (minus_zero): Likewise.
25434         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25435         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25436         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25437
25438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25439
25440         regex: fix glibc bug 9697
25441         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25442         handling.
25443
25444 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25445
25446         regex: fix glibc bug 697
25447         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25448         being NULL also if there are no backreferences.
25449
25450 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25451
25452         regex: merge glibc changes
25453         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25454         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25455         re_string_skip_chars, re_string_reconstruct): Likewise.
25456         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25457
25458 2009-01-07  Jim Meyering  <meyering@redhat.com>
25459
25460         poll: filter through cppi
25461         * lib/poll.c: Indent cpp directives to reflect nesting.
25462
25463 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25464
25465         poll: don't return uninitialized
25466         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25467
25468 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25469
25470         avoid compile failure on AIX 6.1
25471         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25472         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25473
25474 2009-01-04  Jim Meyering  <meyering@redhat.com>
25475
25476         remove duplicate inclusion of <stdio.h>
25477         * tests/test-fprintf-posix.c: Likewise.
25478         * tests/test-printf-posix.c: Likewise.
25479         * tests/test-snprintf-posix.c: Likewise.
25480         * tests/test-sprintf-posix.c: Likewise.
25481         * tests/test-vasprintf-posix.c: Likewise.
25482         * tests/test-vfprintf-posix.c: Likewise.
25483         * tests/test-vprintf-posix.c: Likewise.
25484         * tests/test-vsnprintf-posix.c: Likewise.
25485         * tests/test-vsprintf-posix.c: Likewise.
25486
25487 2009-01-03  Jim Meyering  <meyering@redhat.com>
25488
25489         gnulib-tool: fix sed-based filtering
25490         * gnulib-tool (func_filter_filelist): Remove extra backslash
25491         in sed_fff_filter definition.
25492
25493 2009-01-02  Jim Meyering  <meyering@redhat.com>
25494
25495         strftime: avoid compilation failure on Solaris 2.6
25496         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25497         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25498         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25499         be available.  Reported by Tom G. Christensen.  Details in
25500         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25501
25502 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25503             Bruno Haible  <bruno@clisp.org>
25504
25505         Speed up gnulib-tool by doing more string processing through shell
25506         built-ins.
25507         * gnulib-tool (fast_func_append): New variable.
25508         (func_remove_prefix, func_remove_suffix): New functions.
25509         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25510         (func_filter_filelist): New function.
25511         (func_get_dependencies): Use func_remove_suffix instead of sed.
25512         (func_get_automake_snippet): Use func_filter_filelist instead of a
25513         subshell and sed invocation.
25514
25515 2009-01-01  Bruno Haible  <bruno@clisp.org>
25516
25517         Fix a security bug.
25518         * gnulib-tool (func_import, import, update): Don't allow the characters
25519         '"', '$', '`', '\' in macro arguments that become part of commands that
25520         are evaluated.
25521
25522 2009-01-01  Bruno Haible  <bruno@clisp.org>
25523
25524         * gnulib-tool (func_reset_sigpipe): Add more comments.
25525
25526 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25527
25528         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25529         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25530         already know the answer.
25531
25532 2009-01-01  Jim Meyering  <meyering@redhat.com>
25533
25534         * lib/version-etc.c (version_etc_va): Update copyright year.
25535
25536 2008-12-30  Bruno Haible  <bruno@clisp.org>
25537
25538         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25539         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25540         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25541
25542 2008-12-29  Eric Blake  <ebb9@byu.net>
25543
25544         multiarch: avoid autoconf AC_REQUIRE bug
25545         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25546         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25547         2.63 and older.
25548         Reported by Bruno Haible, and analyzed in
25549         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25550
25551 2008-12-29  Bruno Haible  <bruno@clisp.org>
25552
25553         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25554         files in subdirectories correctly.
25555         Reported by Ralf Wildenhues.
25556
25557 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25558
25559         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25560         rather than 'join FILE -', for Solaris join.
25561
25562 2008-12-29  Bruno Haible  <bruno@clisp.org>
25563
25564         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25565         quoting.
25566         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25567         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25568         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25569         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25570         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25571         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25572         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25573         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25574         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25575         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25576         * m4/nls.m4 (AM_NLS): Likewise.
25577         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25578         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25579         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25580         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25581         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25582         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25583         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25584         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25585         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25586         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25587         * m4/xsize.m4 (gl_XSIZE): Likewise.
25588         Suggested by Jim Meyering.
25589
25590 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25591
25592         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25593         * lib/parse-duration.c: use a switch instead of cascading if's.
25594
25595 2008-12-29  Eric Blake  <ebb9@byu.net>
25596
25597         wchar.h: supply WEOF on Irix 5.3
25598         * lib/wchar.in.h (wint_t): Also supply WEOF.
25599         * lib/wctype.in.h (wint_t): Likewise.
25600         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25601         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25602         Reported by Tom G. Christensen.
25603
25604 2008-12-26  Bruno Haible  <bruno@clisp.org>
25605
25606         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25607         i486, i586, i686.
25608
25609 2008-12-26  Bruno Haible  <bruno@clisp.org>
25610
25611         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25612
25613 2008-12-26  Bruno Haible  <bruno@clisp.org>
25614
25615         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25616         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25617         not __STDC_CONSTANT_MACROS.
25618         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25619
25620 2008-12-25  Bruno Haible  <bruno@clisp.org>
25621
25622         Add support for universal builds to vasnprintf.
25623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25624         universal builds, guess no.
25625         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25626         * modules/vasprintf-posix (Depends-on): Likewise.
25627         * modules/fprintf-posix (Depends-on): Likewise.
25628         * modules/vfprintf-posix (Depends-on): Likewise.
25629         * modules/snprintf-posix (Depends-on): Likewise.
25630         * modules/vsnprintf-posix (Depends-on): Likewise.
25631         * modules/sprintf-posix (Depends-on): Likewise.
25632         * modules/vsprintf-posix (Depends-on): Likewise.
25633         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25634         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25635         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25636         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25637         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25638         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25639         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25640
25641         Add support for universal builds to <inttypes.h>.
25642         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25643         _SCNu64_PREFIX): In Apple
25644         universal builds, define directly, using _LP64.
25645         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25646         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25647         * modules/inttypes (Depends-on): Add multiarch.
25648         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25649
25650         Add support for universal builds to <stdint.h>.
25651         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25652         universal builds, define directly, using _LP64.
25653         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25654         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25655         and size_t.
25656         * modules/stdint (Depends-on): Add multiarch.
25657         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25658
25659         New module 'multiarch'.
25660         * modules/multiarch: New file.
25661         * m4/multiarch.m4: New file.
25662
25663 2008-12-25  Bruno Haible  <bruno@clisp.org>
25664
25665         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25666
25667 2008-12-25  Bruno Haible  <bruno@clisp.org>
25668
25669         * modules/btowc (License): Relicense under LGPLv2+.
25670         * modules/mbsinit (License): Likewise.
25671         * modules/mbrtowc (License): Likewise.
25672         * modules/wcrtomb (License): Likewise.
25673         * modules/streq (License): Likewise.
25674         Reported by David Lutterkort <lutter@redhat.com>.
25675
25676 2008-12-23  Bruno Haible  <bruno@clisp.org>
25677
25678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25679
25680 2008-12-23  Bruno Haible  <bruno@clisp.org>
25681
25682         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25684         GETADDRINFO_LIB, not in LIBS.
25685         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25686         * modules/canon-host (Link): Likewise.
25687         * NEWS: Mention the change.
25688         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25689         GETADDRINFO_LIB.
25690
25691 2008-12-22  Bruno Haible  <bruno@clisp.org>
25692
25693         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25694         * doc/posix-functions/iswalpha_l.texi: Likewise.
25695         * doc/posix-functions/iswblank_l.texi: Likewise.
25696         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25697         * doc/posix-functions/iswctype_l.texi: Likewise.
25698         * doc/posix-functions/iswdigit_l.texi: Likewise.
25699         * doc/posix-functions/iswgraph_l.texi: Likewise.
25700         * doc/posix-functions/iswlower_l.texi: Likewise.
25701         * doc/posix-functions/iswprint_l.texi: Likewise.
25702         * doc/posix-functions/iswpunct_l.texi: Likewise.
25703         * doc/posix-functions/iswspace_l.texi: Likewise.
25704         * doc/posix-functions/iswupper_l.texi: Likewise.
25705         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25706         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25707         * doc/posix-functions/open_wmemstream.texi: Likewise.
25708         * doc/posix-functions/swscanf.texi: Likewise.
25709         * doc/posix-functions/towctrans_l.texi: Likewise.
25710         * doc/posix-functions/towlower.texi: Likewise.
25711         * doc/posix-functions/towlower_l.texi: Likewise.
25712         * doc/posix-functions/towupper.texi: Likewise.
25713         * doc/posix-functions/towupper_l.texi: Likewise.
25714         * doc/posix-functions/vfwprintf.texi: Likewise.
25715         * doc/posix-functions/vfwscanf.texi: Likewise.
25716         * doc/posix-functions/vswscanf.texi: Likewise.
25717         * doc/posix-functions/vwprintf.texi: Likewise.
25718         * doc/posix-functions/vwscanf.texi: Likewise.
25719         * doc/posix-functions/wcpcpy.texi: Likewise.
25720         * doc/posix-functions/wcpncpy.texi: Likewise.
25721         * doc/posix-functions/wcscasecmp.texi: Likewise.
25722         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25723         * doc/posix-functions/wcscoll_l.texi: Likewise.
25724         * doc/posix-functions/wcsdup.texi: Likewise.
25725         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25726         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25727         * doc/posix-functions/wcsnlen.texi: Likewise.
25728         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25729         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25730         * doc/posix-functions/wctrans_l.texi: Likewise.
25731         * doc/posix-functions/wctype_l.texi: Likewise.
25732         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25733         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25734         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25735         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25736         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25737         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25738         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25739         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25740         * doc/glibc-functions/wcschrnul.texi: Likewise.
25741         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25742         * doc/glibc-functions/wcstod_l.texi: Likewise.
25743         * doc/glibc-functions/wcstof_l.texi: Likewise.
25744         * doc/glibc-functions/wcstol_l.texi: Likewise.
25745         * doc/glibc-functions/wcstold_l.texi: Likewise.
25746         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25747         * doc/glibc-functions/wcstoq.texi: Likewise.
25748         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25749         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25750         * doc/glibc-functions/wcstouq.texi: Likewise.
25751         * doc/glibc-functions/wmempcpy.texi: Likewise.
25752
25753 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25754             Eric Blake  <ebb9@byu.net>
25755             Paolo Bonzini  <bonzini@gnu.org>
25756             Bruno Haible  <bruno@clisp.org>
25757
25758         Make c-stack work on Haiku.
25759         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25760         (c_stack_action): Use SA_ONSTACK flag.
25761
25762 2008-12-22  Bruno Haible  <bruno@clisp.org>
25763
25764         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25765
25766 2008-12-22  Bruno Haible  <bruno@clisp.org>
25767
25768         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25769         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25770         being overridden.
25771         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25772         New macros.
25773         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25775         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25776         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25777
25778 2008-12-22  Bruno Haible  <bruno@clisp.org>
25779
25780         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25781         from test code.
25782
25783 2008-12-22  Eric Blake  <ebb9@byu.net>
25784
25785         Avoid gcc warnings on cygwin.
25786         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25787         Avoid unused variable.
25788         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25789         Likewise.
25790
25791 2008-12-22  Bruno Haible  <bruno@clisp.org>
25792
25793         Remove HAVE_MBRTOWC conditionals.
25794         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25795         (mbscasecmp): Assume mbrtowc function.
25796         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25797         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25798         * lib/mbschr.c: Include mbuiter.h unconditionally.
25799         (mbschr): Assume mbrtowc function.
25800         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25801         (mbscspn): Assume mbrtowc function.
25802         * lib/mbslen.c: Include mbuiter.h unconditionally.
25803         (mbslen): Assume mbrtowc function.
25804         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25805         (mbsncasecmp): Assume mbrtowc function.
25806         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25807         (mbsnlen): Assume mbrtowc function.
25808         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25809         (mbspbrk): Assume mbrtowc function.
25810         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25811         (mbspcasecmp): Assume mbrtowc function.
25812         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25813         (mbsrchr): Assume mbrtowc function.
25814         * lib/mbssep.c: Include mbuiter.h unconditionally.
25815         (mbssep): Assume mbrtowc function.
25816         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25817         (mbsspn): Assume mbrtowc function.
25818         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25819         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25820         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25821         (mbstok_r): Assume mbrtowc function.
25822         * lib/propername.c: Include mbuiter.h unconditionally.
25823         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25824         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25825         (trim2): Assume mbrtowc function.
25826         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25827         (mbsnwidth): Assume mbrtowc function.
25828         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25829         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25830         fallback definitions.
25831         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25832
25833 2008-12-22  Bruno Haible  <bruno@clisp.org>
25834
25835         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25836
25837 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25838
25839         * modules/regex: Request emulations for the mb*/wc* functions we need.
25840         * m4/regex.m4: Don't look for those functions here.
25841         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25842
25843 2008-12-22  Bruno Haible  <bruno@clisp.org>
25844
25845         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25846
25847 2008-12-21  Bruno Haible  <bruno@clisp.org>
25848
25849         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25850         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25851         (Include): Remove conditionalization.
25852         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25853         (Include): Remove conditionalization.
25854         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25855         (Include): Remove conditionalization.
25856         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25857         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25858         * NEWS: Mention the change.
25859         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25860         via Sergey Poznyakoff <gray@gnu.org.ua>.
25861
25862 2008-12-21  Bruno Haible  <bruno@clisp.org>
25863
25864         * MODULES.html.sh (Extended multibyte and wide character utilities
25865         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25866         wcrtomb, wcsrtombs.
25867         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25868         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25869         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25870         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25871
25872 2008-12-21  Bruno Haible  <bruno@clisp.org>
25873
25874         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25875
25876 2008-12-21  Bruno Haible  <bruno@clisp.org>
25877
25878         * modules/wcsnrtombs-tests: New file.
25879         * tests/test-wcsnrtombs1.sh: New file.
25880         * tests/test-wcsnrtombs2.sh: New file.
25881         * tests/test-wcsnrtombs3.sh: New file.
25882         * tests/test-wcsnrtombs4.sh: New file.
25883         * tests/test-wcsnrtombs.c: New file.
25884
25885         New module 'wcsnrtombs'.
25886         * lib/wchar.in.h (wcsnrtombs): New declaration.
25887         * lib/wcsnrtombs.c: New file.
25888         * lib/wcsrtombs-state.c: New file.
25889         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25890         (internal_state): Remove variable.
25891         * m4/wcsnrtombs.m4: New file.
25892         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25893         compilation units.
25894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25895         HAVE_WCSNRTOMBS.
25896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25897         HAVE_WCSNRTOMBS.
25898         * modules/wcsnrtombs: New file.
25899         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25900         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25901
25902 2008-12-21  Bruno Haible  <bruno@clisp.org>
25903
25904         * modules/wcsrtombs-tests: New file.
25905         * tests/test-wcsrtombs1.sh: New file.
25906         * tests/test-wcsrtombs2.sh: New file.
25907         * tests/test-wcsrtombs3.sh: New file.
25908         * tests/test-wcsrtombs4.sh: New file.
25909         * tests/test-wcsrtombs.c: New file.
25910
25911         New module 'wcsrtombs'.
25912         * lib/wchar.in.h (wcsrtombs): New declaration.
25913         * lib/wcsrtombs.c: New file.
25914         * m4/wcsrtombs.m4: New file.
25915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25916         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25918         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25919         * modules/wcsrtombs: New file.
25920         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25921         bugs.
25922
25923 2008-12-21  Bruno Haible  <bruno@clisp.org>
25924
25925         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25926         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25927         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25928         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25929         if not correct.
25930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25931         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25932         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25933         m4/locale-zh.m4, m4/codeset.m4.
25934         * doc/posix-functions/wcrtomb.texi: Document the bug.
25935
25936 2008-12-21  Bruno Haible  <bruno@clisp.org>
25937
25938         Work around a btowc() bug on IRIX 6.5.
25939         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25940         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25941         REPLACE_WTOBC if not.
25942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25943         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25944         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25945
25946 2008-12-21  Bruno Haible  <bruno@clisp.org>
25947
25948         * modules/wcrtomb-tests: New file.
25949         * tests/test-wcrtomb.sh: New file.
25950         * tests/test-wcrtomb.c: New file.
25951
25952         New module 'wcrtomb'.
25953         * lib/wchar.in.h (wcrtomb): New declaration.
25954         * lib/wcrtomb.c: New file.
25955         * m4/wcrtomb.m4: New file.
25956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25957         HAVE_WCRTOMB.
25958         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25959         HAVE_WCRTOMB.
25960         * modules/wcrtomb: New file.
25961         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25962
25963 2008-12-21  Bruno Haible  <bruno@clisp.org>
25964
25965         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25966         * modules/mbsrtowcs (Files): Likewise.
25967         * modules/wctob (Files): Likewise.
25968         * modules/c-strcase-tests (Files): Likewise.
25969         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25970         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25971         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25972         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25973         * modules/vasnprintf-posix-tests (Files): Likewise.
25974
25975 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25976
25977         gitlog-to-changelog: pass all command-line arguments to git-log
25978         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25979         it is sometimes convenient to filter the commits in various ways.
25980         gitlog-to-changelog only allows --since to specify a start date,
25981         but git-log itself supports many other filtering mechanisms.
25982         At the moment, I want to filter by branch name.  Rather than
25983         adding a --branch option to gitlog-to-changelog, it seems more
25984         flexible to simply pass all options directly to git-log and let
25985         git do the work.  Notice that this effectively makes --since a
25986         redundant option for gitlog-to-changelog, but removing it would
25987         require current usage to change since calls would then require
25988         an additional '--'.
25989
25990 2008-12-21  Bruno Haible  <bruno@clisp.org>
25991
25992         * modules/mbsnrtowcs-tests: New file.
25993         * tests/test-mbsnrtowcs1.sh: New file.
25994         * tests/test-mbsnrtowcs2.sh: New file.
25995         * tests/test-mbsnrtowcs3.sh: New file.
25996         * tests/test-mbsnrtowcs4.sh: New file.
25997         * tests/test-mbsnrtowcs.c: New file.
25998
25999         New module 'mbsnrtowcs'.
26000         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26001         * lib/mbsnrtowcs.c: New file.
26002         * lib/mbsrtowcs-state.c: New file.
26003         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26004         (internal_state): Remove variable.
26005         * m4/mbsnrtowcs.m4: New file.
26006         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26007         compilation units.
26008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26009         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26010         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26011         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26012         * modules/mbsnrtowcs: New file.
26013         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26014         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26015         portability problem.
26016
26017 2008-12-21  Bruno Haible  <bruno@clisp.org>
26018
26019         Work around mbsrtowcs bug.
26020         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26021         (gl_FUNC_MBSRTOWCS): Invoke it.
26022         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26023         m4/locale-zh.m4.
26024         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26025
26026 2008-12-21  Bruno Haible  <bruno@clisp.org>
26027
26028         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26029
26030 2008-12-21  Bruno Haible  <bruno@clisp.org>
26031
26032         Update doc for AIX.
26033         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26034         16-bit wchar_t type.
26035         * doc/posix-functions/btowc.texi: Likewise.
26036         * doc/posix-functions/fgetwc.texi: Likewise.
26037         * doc/posix-functions/fgetws.texi: Likewise.
26038         * doc/posix-functions/fputwc.texi: Likewise.
26039         * doc/posix-functions/fputws.texi: Likewise.
26040         * doc/posix-functions/fwide.texi: Likewise.
26041         * doc/posix-functions/fwprintf.texi: Likewise.
26042         * doc/posix-functions/fwscanf.texi: Likewise.
26043         * doc/posix-functions/getwchar.texi: Likewise.
26044         * doc/posix-functions/getwc.texi: Likewise.
26045         * doc/posix-functions/iswalnum.texi: Likewise.
26046         * doc/posix-functions/iswalpha.texi: Likewise.
26047         * doc/posix-functions/iswblank.texi: Likewise.
26048         * doc/posix-functions/iswcntrl.texi: Likewise.
26049         * doc/posix-functions/iswctype.texi: Likewise.
26050         * doc/posix-functions/iswdigit.texi: Likewise.
26051         * doc/posix-functions/iswgraph.texi: Likewise.
26052         * doc/posix-functions/iswlower.texi: Likewise.
26053         * doc/posix-functions/iswprint.texi: Likewise.
26054         * doc/posix-functions/iswpunct.texi: Likewise.
26055         * doc/posix-functions/iswspace.texi: Likewise.
26056         * doc/posix-functions/iswupper.texi: Likewise.
26057         * doc/posix-functions/iswxdigit.texi: Likewise.
26058         * doc/posix-functions/mbrtowc.texi: Likewise.
26059         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26060         * doc/posix-functions/mbstowcs.texi: Likewise.
26061         * doc/posix-functions/mbtowc.texi: Likewise.
26062         * doc/posix-functions/putwchar.texi: Likewise.
26063         * doc/posix-functions/putwc.texi: Likewise.
26064         * doc/posix-functions/swprintf.texi: Likewise.
26065         * doc/posix-functions/tolower.texi: Likewise.
26066         * doc/posix-functions/toupper.texi: Likewise.
26067         * doc/posix-functions/towctrans.texi: Likewise.
26068         * doc/posix-functions/ungetwc.texi: Likewise.
26069         * doc/posix-functions/vswprintf.texi: Likewise.
26070         * doc/posix-functions/wcrtomb.texi: Likewise.
26071         * doc/posix-functions/wcscat.texi: Likewise.
26072         * doc/posix-functions/wcschr.texi: Likewise.
26073         * doc/posix-functions/wcscmp.texi: Likewise.
26074         * doc/posix-functions/wcscoll.texi: Likewise.
26075         * doc/posix-functions/wcscpy.texi: Likewise.
26076         * doc/posix-functions/wcscspn.texi: Likewise.
26077         * doc/posix-functions/wcsftime.texi: Likewise.
26078         * doc/posix-functions/wcslen.texi: Likewise.
26079         * doc/posix-functions/wcsncat.texi: Likewise.
26080         * doc/posix-functions/wcsncmp.texi: Likewise.
26081         * doc/posix-functions/wcsncpy.texi: Likewise.
26082         * doc/posix-functions/wcspbrk.texi: Likewise.
26083         * doc/posix-functions/wcsrchr.texi: Likewise.
26084         * doc/posix-functions/wcsrtombs.texi: Likewise.
26085         * doc/posix-functions/wcsspn.texi: Likewise.
26086         * doc/posix-functions/wcsstr.texi: Likewise.
26087         * doc/posix-functions/wcstod.texi: Likewise.
26088         * doc/posix-functions/wcstof.texi: Likewise.
26089         * doc/posix-functions/wcstoimax.texi: Likewise.
26090         * doc/posix-functions/wcstok.texi: Likewise.
26091         * doc/posix-functions/wcstold.texi: Likewise.
26092         * doc/posix-functions/wcstoll.texi: Likewise.
26093         * doc/posix-functions/wcstol.texi: Likewise.
26094         * doc/posix-functions/wcstombs.texi: Likewise.
26095         * doc/posix-functions/wcstoull.texi: Likewise.
26096         * doc/posix-functions/wcstoul.texi: Likewise.
26097         * doc/posix-functions/wcstoumax.texi: Likewise.
26098         * doc/posix-functions/wcswidth.texi: Likewise.
26099         * doc/posix-functions/wcsxfrm.texi: Likewise.
26100         * doc/posix-functions/wctob.texi: Likewise.
26101         * doc/posix-functions/wctomb.texi: Likewise.
26102         * doc/posix-functions/wctrans.texi: Likewise.
26103         * doc/posix-functions/wctype.texi: Likewise.
26104         * doc/posix-functions/wcwidth.texi: Likewise.
26105         * doc/posix-functions/wmemchr.texi: Likewise.
26106         * doc/posix-functions/wmemcmp.texi: Likewise.
26107         * doc/posix-functions/wmemcpy.texi: Likewise.
26108         * doc/posix-functions/wmemmove.texi: Likewise.
26109         * doc/posix-functions/wmemset.texi: Likewise.
26110         * doc/posix-functions/wprintf.texi: Likewise.
26111         * doc/posix-functions/wscanf.texi: Likewise.
26112
26113 2008-12-21  Bruno Haible  <bruno@clisp.org>
26114
26115         Update doc for HP-UX 11.11.
26116         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26117         in HP-UX version 11.00, not in all versions of HP-UX 11.
26118         * doc/posix-functions/fwide.texi: Likewise.
26119         * doc/posix-functions/fwprintf.texi: Likewise.
26120         * doc/posix-functions/fwscanf.texi: Likewise.
26121         * doc/posix-functions/inet_ntop.texi: Likewise.
26122         * doc/posix-functions/inet_pton.texi: Likewise.
26123         * doc/posix-functions/mbrlen.texi: Likewise.
26124         * doc/posix-functions/mbrtowc.texi: Likewise.
26125         * doc/posix-functions/mbsinit.texi: Likewise.
26126         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26127         * doc/posix-functions/swprintf.texi: Likewise.
26128         * doc/posix-functions/swscanf.texi: Likewise.
26129         * doc/posix-functions/towctrans.texi: Likewise.
26130         * doc/posix-functions/vfwprintf.texi: Likewise.
26131         * doc/posix-functions/vswprintf.texi: Likewise.
26132         * doc/posix-functions/vwprintf.texi: Likewise.
26133         * doc/posix-functions/wcrtomb.texi: Likewise.
26134         * doc/posix-functions/wcsrtombs.texi: Likewise.
26135         * doc/posix-functions/wcsstr.texi: Likewise.
26136         * doc/posix-functions/wctob.texi: Likewise.
26137         * doc/posix-functions/wctrans.texi: Likewise.
26138         * doc/posix-functions/wmemchr.texi: Likewise.
26139         * doc/posix-functions/wmemcmp.texi: Likewise.
26140         * doc/posix-functions/wmemcpy.texi: Likewise.
26141         * doc/posix-functions/wmemmove.texi: Likewise.
26142         * doc/posix-functions/wmemset.texi: Likewise.
26143         * doc/posix-functions/wprintf.texi: Likewise.
26144         * doc/posix-functions/wscanf.texi: Likewise.
26145
26146 2008-12-21  Bruno Haible  <bruno@clisp.org>
26147
26148         Work around a portability problem.
26149         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26150         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26151
26152 2008-12-20  Bruno Haible  <bruno@clisp.org>
26153
26154         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26155         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26156         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26157         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26158         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26159
26160         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26161         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26162         set.
26163         (GNULIB_defined_mbstate_t): New macro.
26164         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26165         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26166         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26167         reuses the system's mbrtowc function but works around the bugs.
26168         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26169         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26170         macros.
26171         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26172         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26173         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26174         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26175         REPLACE_MBSINIT if mbsinit needs to be overridden.
26176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26177         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26178         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26179         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26180         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26181         m4/locale-zh.m4.
26182         (Depends): Add mbsinit.
26183         * modules/mbsinit (Depends): Add mbrtowc.
26184         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26185
26186 2008-12-20  Bruno Haible  <bruno@clisp.org>
26187
26188         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26189         so that there are no conversion errors on AIX.
26190         * tests/test-mbsrtowcs.c (main): LIkewise.
26191
26192 2008-12-20  Bruno Haible  <bruno@clisp.org>
26193
26194         Work around wctob bug on Solaris <= 9.
26195         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26196         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26198         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26199         * modules/wctob (Files): Add m4/locale-fr.m4.
26200         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26201
26202 2008-12-20  Bruno Haible  <bruno@clisp.org>
26203
26204         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26205         /dev/null.
26206         * tests/test-select-in.sh: Likewise.
26207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26208
26209 2008-12-20  Bruno Haible  <bruno@clisp.org>
26210
26211         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26212         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26213         Cygwin 1.5.x.
26214
26215 2008-12-20  Bruno Haible  <bruno@clisp.org>
26216
26217         Ensure mbstate_t is defined on HP-UX 11.11.
26218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26219         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26220         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26221         AC_USE_SYSTEM_EXTENSIONS.
26222         * modules/fnmatch (Depends-on): Add extensions.
26223         * modules/mbrlen (Depends-on): Likewise.
26224         * modules/mbrtowc (Depends-on): Likewise.
26225         * modules/mbsinit (Depends-on): Likewise.
26226         * modules/mbsrtowcs (Depends-on): Likewise.
26227         * modules/mbswidth (Depends-on): Likewise.
26228         * modules/quotearg (Depends-on): Likewise.
26229         * modules/strftime (Depends-on): Likewise.
26230
26231 2008-12-20  Bruno Haible  <bruno@clisp.org>
26232
26233         Ensure wctob is declared on IRIX 6.5.
26234         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26235         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26236         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26238         of HAVE_WCTOB.
26239         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26240         HAVE_WCTOB.
26241         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26242
26243 2008-12-19  Bruno Haible  <bruno@clisp.org>
26244
26245         * modules/mbsrtowcs-tests: New file.
26246         * tests/test-mbsrtowcs1.sh: New file.
26247         * tests/test-mbsrtowcs2.sh: New file.
26248         * tests/test-mbsrtowcs3.sh: New file.
26249         * tests/test-mbsrtowcs4.sh: New file.
26250         * tests/test-mbsrtowcs.c: New file.
26251
26252         New module 'mbsrtowcs'.
26253         * lib/wchar.in.h (mbsrtowcs): New declaration.
26254         * lib/mbsrtowcs.c: New file.
26255         * m4/mbsrtowcs.m4: New file.
26256         * modules/mbsrtowcs: New file.
26257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26258         HAVE_MBSRTOWCS.
26259         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26260         HAVE_MBSRTOWCS.
26261         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26262
26263 2008-12-19  Bruno Haible  <bruno@clisp.org>
26264
26265         New module 'mbrlen'.
26266         * lib/wchar.in.h (mbrlen): New declaration.
26267         * lib/mbrlen.c: New file.
26268         * m4/mbrlen.m4: New file.
26269         * modules/mbrlen: New file.
26270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26271         HAVE_MBRLEN.
26272         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26273         HAVE_MBRLEN.
26274         * doc/posix-functions/mbrlen.texi: Document the new module.
26275
26276 2008-12-19  Bruno Haible  <bruno@clisp.org>
26277
26278         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26279         * modules/mbrtowc (Depends-on): Add verify.
26280         Suggested by Paul Eggert.
26281
26282 2008-12-18  Bruno Haible  <bruno@clisp.org>
26283
26284         * modules/mbsinit-tests: New file.
26285         * tests/test-mbsinit.sh: New file.
26286         * tests/test-mbsinit.c: New file.
26287
26288 2008-12-18  Bruno Haible  <bruno@clisp.org>
26289
26290         * modules/mbrtowc-tests: New file.
26291         * tests/test-mbrtowc1.sh: New file.
26292         * tests/test-mbrtowc2.sh: New file.
26293         * tests/test-mbrtowc3.sh: New file.
26294         * tests/test-mbrtowc4.sh: New file.
26295         * tests/test-mbrtowc.c: New file.
26296
26297         New module 'mbrtowc'.
26298         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26299         mbsinit and mbrtowc.
26300         (mbrtowc): New declaration.
26301         * lib/mbrtowc.c: New file.
26302         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26303         * modules/mbrtowc: New file.
26304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26305         HAVE_MBRTOWC.
26306         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26307         HAVE_MBRTOWC.
26308         * doc/posix-functions/mbrtowc.texi: Document the new module.
26309
26310 2008-12-18  Bruno Haible  <bruno@clisp.org>
26311
26312         New module 'wctob'.
26313         * lib/wchar.in.h (wctob): New declaration.
26314         * lib/wctob.c: New file.
26315         * m4/wctob.m4: New file.
26316         * modules/wctob: New file.
26317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26318         HAVE_WCTOB.
26319         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26320         * doc/posix-functions/wctob.texi: Document the new module.
26321
26322 2008-12-18  Bruno Haible  <bruno@clisp.org>
26323
26324         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26325         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26326
26327 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26328
26329         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26330         G. Christensen" <tgc@jupiterrise.com>.
26331
26332         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26333         G. Christensen" <tgc@jupiterrise.com>.
26334
26335         * lib/flock.c: Need to include string.h.  Reported by "Tom
26336         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26337         <ebb9@byu.net>.
26338
26339 2008-12-18  Bruno Haible  <bruno@clisp.org>
26340
26341         * m4/locale-ja.m4: New file, from GNU gettext.
26342
26343 2008-12-17  Bruno Haible  <bruno@clisp.org>
26344
26345         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26346         Suggested by Eric Blake.
26347
26348 2008-12-17  Bruno Haible  <bruno@clisp.org>
26349
26350         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26351
26352 2008-12-17  Bruno Haible  <bruno@clisp.org>
26353
26354         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26355         * modules/mbsinit (Depends-on): Add verify.
26356         Suggested by Paul Eggert.
26357
26358 2008-12-17  Bruno Haible  <bruno@clisp.org>
26359
26360         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26361         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26362         gl_FUNC_MBRTOWC.
26363         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26364         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26365         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26366         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26367         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26368         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26369         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26370         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26371         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26372         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26373         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26374         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26375         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26376         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26377         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26378         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26379         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26380         * modules/trim (configure.ac): Likewise.
26381
26382 2008-12-17  Bruno Haible  <bruno@clisp.org>
26383
26384         * modules/btowc-tests: New file.
26385         * tests/test-btowc1.sh: New file.
26386         * tests/test-btowc2.sh: New file.
26387         * tests/test-btowc.c: New file.
26388
26389         New module 'btowc'.
26390         * lib/wchar.in.h (btowc): New declaration.
26391         * lib/btowc.c: New file.
26392         * m4/btowc.m4: New file.
26393         * modules/btowc: New file.
26394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26395         HAVE_BTOWC.
26396         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26397         * doc/posix-functions/btowc.texi: Document the new module.
26398
26399 2008-12-17  Bruno Haible  <bruno@clisp.org>
26400
26401         New module 'mbsinit'.
26402         * lib/wchar.in.h (mbsinit): New declaration.
26403         * lib/mbsinit.c: New file.
26404         * m4/mbsinit.m4: New file.
26405         * modules/mbsinit: New file.
26406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26407         HAVE_MBSINIT.
26408         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26409         HAVE_MBSINIT.
26410         * doc/posix-functions/mbsinit.texi: Document the new module.
26411
26412 2008-12-16  Bruno Haible  <bruno@clisp.org>
26413
26414         * lib/unistd.in.h: Add comment.
26415         * tests/test-environ.c: Don't include <stdlib.h>.
26416
26417 2008-12-16  Bruno Haible  <bruno@clisp.org>
26418
26419         * lib/parse-duration.h (parse_duration): Document return value
26420         convention.
26421         * lib/parse-duration.c: Include specification header first. Add
26422         comments.
26423         (_): Remove macro.
26424         (parse_year_month_day, parse_hour_minute_second): Move side effects
26425         outside of strchr call.
26426         (parse_non_iso8601): Move side effects outside of isspace call.
26427         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26428         call.
26429
26430 2008-12-16  Bruno Haible  <bruno@clisp.org>
26431
26432         * tests/test-parse-duration.sh: Produce no output when the test
26433         succeeds.
26434
26435 2008-12-16  Bruno Haible  <bruno@clisp.org>
26436
26437         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26438         expressions.
26439
26440 2008-12-15  Bruno Haible  <bruno@clisp.org>
26441
26442         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26443         * doc/glibc-functions/flistxattr.texi: Likewise.
26444         * doc/glibc-functions/fopencookie.texi: Likewise.
26445         * doc/glibc-functions/fremovexattr.texi: Likewise.
26446         * doc/glibc-functions/fsetxattr.texi: Likewise.
26447         * doc/glibc-functions/getxattr.texi: Likewise.
26448         * doc/glibc-functions/lgetxattr.texi: Likewise.
26449         * doc/glibc-functions/listxattr.texi: Likewise.
26450         * doc/glibc-functions/llistxattr.texi: Likewise.
26451         * doc/glibc-functions/lremovexattr.texi: Likewise.
26452         * doc/glibc-functions/lsetxattr.texi: Likewise.
26453         * doc/glibc-functions/removexattr.texi: Likewise.
26454         * doc/glibc-functions/setxattr.texi: Likewise.
26455         * doc/posix-functions/open_memstream.texi: Likewise.
26456
26457 2008-12-15  Eric Blake  <ebb9@byu.net>
26458
26459         Update doc for cygwin 1.7.
26460         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26461         functions.
26462         * doc/posix-functions/fchmodat.texi: Likewise.
26463         * doc/posix-functions/fchownat.texi: Likewise.
26464         * doc/posix-functions/fdopendir.texi: Likewise.
26465         * doc/posix-functions/fmemopen.texi: Likewise.
26466         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26467         * doc/posix-functions/fstatat.texi: Likewise.
26468         * doc/posix-functions/futimens.texi: Likewise.
26469         * doc/posix-functions/gai_strerror.texi: Likewise.
26470         * doc/posix-functions/getaddrinfo.texi: Likewise.
26471         * doc/posix-functions/getnameinfo.texi: Likewise.
26472         * doc/posix-functions/if_freenameindex.texi: Likewise.
26473         * doc/posix-functions/if_indextoname.texi: Likewise.
26474         * doc/posix-functions/if_nameindex.texi: Likewise.
26475         * doc/posix-functions/if_nametoindex.texi: Likewise.
26476         * doc/posix-functions/insque.texi: Likewise.
26477         * doc/posix-functions/linkat.texi: Likewise.
26478         * doc/posix-functions/llrint.texi: Likewise.
26479         * doc/posix-functions/llrintf.texi: Likewise.
26480         * doc/posix-functions/llrintl.texi: Likewise.
26481         * doc/posix-functions/lockf.texi: Likewise.
26482         * doc/posix-functions/lrintl.texi: Likewise.
26483         * doc/posix-functions/mkdirat.texi: Likewise.
26484         * doc/posix-functions/mkfifoat.texi: Likewise.
26485         * doc/posix-functions/mknodat.texi: Likewise.
26486         * doc/posix-functions/mq_close.texi: Likewise.
26487         * doc/posix-functions/mq_getattr.texi: Likewise.
26488         * doc/posix-functions/mq_notify.texi: Likewise.
26489         * doc/posix-functions/mq_open.texi: Likewise.
26490         * doc/posix-functions/mq_receive.texi: Likewise.
26491         * doc/posix-functions/mq_send.texi: Likewise.
26492         * doc/posix-functions/mq_setattr.texi: Likewise.
26493         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26494         * doc/posix-functions/mq_timedsend.texi: Likewise.
26495         * doc/posix-functions/mq_unlink.texi: Likewise.
26496         * doc/posix-functions/open_memstream.texi: Likewise.
26497         * doc/posix-functions/openat.texi: Likewise.
26498         * doc/posix-functions/posix_fadvise.texi: Likewise.
26499         * doc/posix-functions/posix_fallocate.texi: Likewise.
26500         * doc/posix-functions/posix_madvise.texi: Likewise.
26501         * doc/posix-functions/posix_memalign.texi: Likewise.
26502         * doc/posix-functions/posix_openpt.texi: Likewise.
26503         * doc/posix-functions/readlinkat.texi: Likewise.
26504         * doc/posix-functions/remque.texi: Likewise.
26505         * doc/posix-functions/renameat.texi: Likewise.
26506         * doc/posix-functions/rintl.texi: Likewise.
26507         * doc/posix-functions/sem_unlink.texi: Likewise.
26508         * doc/posix-functions/shm_open.texi: Likewise.
26509         * doc/posix-functions/shm_unlink.texi: Likewise.
26510         * doc/posix-functions/signgam.texi: Likewise.
26511         * doc/posix-functions/sigset.texi: Likewise.
26512         * doc/posix-functions/stpcpy.texi: Likewise.
26513         * doc/posix-functions/stpncpy.texi: Likewise.
26514         * doc/posix-functions/strerror.texi: Likewise.
26515         * doc/posix-functions/strtod.texi: Likewise.
26516         * doc/posix-functions/symlinkat.texi: Likewise.
26517         * doc/posix-functions/unlinkat.texi: Likewise.
26518         * doc/posix-functions/utimensat.texi: Likewise.
26519         * doc/glibc-functions/bindresvport.texi: Likewise.
26520         * doc/glibc-functions/dn_expand.texi: Likewise.
26521         * doc/glibc-functions/exp10.texi: Likewise.
26522         * doc/glibc-functions/exp10f.texi: Likewise.
26523         * doc/glibc-functions/fgetxattr.texi: Likewise.
26524         * doc/glibc-functions/flistxattr.texi: Likewise.
26525         * doc/glibc-functions/fopencookie.texi: Likewise.
26526         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26527         * doc/glibc-functions/fremovexattr.texi: Likewise.
26528         * doc/glibc-functions/fsetxattr.texi: Likewise.
26529         * doc/glibc-functions/getifaddrs.texi: Likewise.
26530         * doc/glibc-functions/getxattr.texi: Likewise.
26531         * doc/glibc-functions/lgetxattr.texi: Likewise.
26532         * doc/glibc-functions/listxattr.texi: Likewise.
26533         * doc/glibc-functions/llistxattr.texi: Likewise.
26534         * doc/glibc-functions/lremovexattr.texi: Likewise.
26535         * doc/glibc-functions/lsetxattr.texi: Likewise.
26536         * doc/glibc-functions/pow10.texi: Likewise.
26537         * doc/glibc-functions/pow10f.texi: Likewise.
26538         * doc/glibc-functions/rcmd_af.texi: Likewise.
26539         * doc/glibc-functions/removexattr.texi: Likewise.
26540         * doc/glibc-functions/res_init.texi: Likewise.
26541         * doc/glibc-functions/res_mkquery.texi: Likewise.
26542         * doc/glibc-functions/res_query.texi: Likewise.
26543         * doc/glibc-functions/res_querydomain.texi: Likewise.
26544         * doc/glibc-functions/res_send.texi: Likewise.
26545         * doc/glibc-functions/rresvport_af.texi: Likewise.
26546         * doc/glibc-functions/setxattr.texi: Likewise.
26547         * doc/glibc-functions/strcasestr.texi: Likewise.
26548
26549 2008-12-15  Bruno Haible  <bruno@clisp.org>
26550
26551         Fix compilation error on OSF/1 4.0.
26552         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26553         <sys/time.h>, simply delegate to the system header.
26554         Reported by Daniel Richard G. <oss@teragram.com>.
26555
26556 2008-12-15  Bruno Haible  <bruno@clisp.org>
26557
26558         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26559         * doc/posix-functions/fchmodat.texi: Likewise.
26560         * doc/posix-functions/fchownat.texi: Likewise.
26561         * doc/posix-functions/fdopendir.texi: Likewise.
26562         * doc/posix-functions/fstatat.texi: Likewise.
26563         * doc/posix-functions/mkdirat.texi: Likewise.
26564         * doc/posix-functions/unlinkat.texi: Likewise.
26565
26566 2008-12-14  Bruno Haible  <bruno@clisp.org>
26567
26568         Update doc for POSIX:2008.
26569         * doc/posix-functions/faccessat.texi: New file.
26570         * doc/posix-functions/fchmodat.texi: New file.
26571         * doc/posix-functions/fchownat.texi: New file.
26572         * doc/posix-functions/fdopendir.texi: New file.
26573         * doc/posix-functions/fstatat.texi: New file.
26574         * doc/posix-functions/futimens.texi: New file.
26575         * doc/posix-functions/linkat.texi: New file.
26576         * doc/posix-functions/mkdirat.texi: New file.
26577         * doc/posix-functions/mkfifoat.texi: New file.
26578         * doc/posix-functions/mknodat.texi: New file.
26579         * doc/posix-functions/open_wmemstream.texi: New file.
26580         * doc/posix-functions/openat.texi: New file.
26581         * doc/posix-functions/psiginfo.texi: New file.
26582         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26583         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26584         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26585         * doc/posix-functions/readlinkat.texi: New file.
26586         * doc/posix-functions/renameat.texi: New file.
26587         * doc/posix-functions/strerror_l.texi: New file.
26588         * doc/posix-functions/symlinkat.texi: New file.
26589         * doc/posix-functions/unlinkat.texi: New file.
26590         * doc/posix-functions/utimensat.texi: New file.
26591         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26592
26593 2008-12-14  Bruno Haible  <bruno@clisp.org>
26594
26595         Update doc for POSIX:2008.
26596         * doc/posix-functions/alphasort.texi: Renamed from
26597         doc/glibc-functions/alphasort.texi.
26598         * doc/posix-functions/dirfd.texi: Renamed from
26599         doc/glibc-functions/dirfd.texi.
26600         * doc/posix-functions/dprintf.texi: Renamed from
26601         doc/glibc-functions/dprintf.texi.
26602         * doc/posix-functions/duplocale.texi: Renamed from
26603         doc/glibc-functions/duplocale.texi.
26604         * doc/posix-functions/fexecve.texi: Renamed from
26605         doc/glibc-functions/fexecve.texi.
26606         * doc/posix-functions/fmemopen.texi: Renamed from
26607         doc/glibc-functions/fmemopen.texi.
26608         * doc/posix-functions/freelocale.texi: Renamed from
26609         doc/glibc-functions/freelocale.texi.
26610         * doc/posix-functions/getdate_err.texi: Renamed from
26611         doc/glibc-functions/getdate_err.texi.
26612         * doc/posix-functions/isalnum_l.texi: Renamed from
26613         doc/glibc-functions/isalnum_l.texi.
26614         * doc/posix-functions/isalpha_l.texi: Renamed from
26615         doc/glibc-functions/isalpha_l.texi.
26616         * doc/posix-functions/isblank_l.texi: Renamed from
26617         doc/glibc-functions/isblank_l.texi.
26618         * doc/posix-functions/iscntrl_l.texi: Renamed from
26619         doc/glibc-functions/iscntrl_l.texi.
26620         * doc/posix-functions/isdigit_l.texi: Renamed from
26621         doc/glibc-functions/isdigit_l.texi.
26622         * doc/posix-functions/isgraph_l.texi: Renamed from
26623         doc/glibc-functions/isgraph_l.texi.
26624         * doc/posix-functions/islower_l.texi: Renamed from
26625         doc/glibc-functions/islower_l.texi.
26626         * doc/posix-functions/isprint_l.texi: Renamed from
26627         doc/glibc-functions/isprint_l.texi.
26628         * doc/posix-functions/ispunct_l.texi: Renamed from
26629         doc/glibc-functions/ispunct_l.texi.
26630         * doc/posix-functions/isspace_l.texi: Renamed from
26631         doc/glibc-functions/isspace_l.texi.
26632         * doc/posix-functions/isupper_l.texi: Renamed from
26633         doc/glibc-functions/isupper_l.texi.
26634         * doc/posix-functions/iswalnum_l.texi: Renamed from
26635         doc/glibc-functions/iswalnum_l.texi.
26636         * doc/posix-functions/iswalpha_l.texi: Renamed from
26637         doc/glibc-functions/iswalpha_l.texi.
26638         * doc/posix-functions/iswblank_l.texi: Renamed from
26639         doc/glibc-functions/iswblank_l.texi.
26640         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26641         doc/glibc-functions/iswcntrl_l.texi.
26642         * doc/posix-functions/iswctype_l.texi: Renamed from
26643         doc/glibc-functions/iswctype_l.texi.
26644         * doc/posix-functions/iswdigit_l.texi: Renamed from
26645         doc/glibc-functions/iswdigit_l.texi.
26646         * doc/posix-functions/iswgraph_l.texi: Renamed from
26647         doc/glibc-functions/iswgraph_l.texi.
26648         * doc/posix-functions/iswlower_l.texi: Renamed from
26649         doc/glibc-functions/iswlower_l.texi.
26650         * doc/posix-functions/iswprint_l.texi: Renamed from
26651         doc/glibc-functions/iswprint_l.texi.
26652         * doc/posix-functions/iswpunct_l.texi: Renamed from
26653         doc/glibc-functions/iswpunct_l.texi.
26654         * doc/posix-functions/iswspace_l.texi: Renamed from
26655         doc/glibc-functions/iswspace_l.texi.
26656         * doc/posix-functions/iswupper_l.texi: Renamed from
26657         doc/glibc-functions/iswupper_l.texi.
26658         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26659         doc/glibc-functions/iswxdigit_l.texi.
26660         * doc/posix-functions/isxdigit_l.texi: Renamed from
26661         doc/glibc-functions/isxdigit_l.texi.
26662         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26663         doc/glibc-functions/mbsnrtowcs.texi.
26664         * doc/posix-functions/mkdtemp.texi: Renamed from
26665         doc/glibc-functions/mkdtemp.texi.
26666         * doc/posix-functions/newlocale.texi: Renamed from
26667         doc/glibc-functions/newlocale.texi.
26668         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26669         doc/glibc-functions/nl_langinfo_l.texi.
26670         * doc/posix-functions/open_memstream.texi: Renamed from
26671         doc/glibc-functions/open_memstream.texi.
26672         * doc/posix-functions/opterr.texi: Renamed from
26673         doc/glibc-functions/opterr.texi.
26674         * doc/posix-functions/optind.texi: Renamed from
26675         doc/glibc-functions/optind.texi.
26676         * doc/posix-functions/optopt.texi: Renamed from
26677         doc/glibc-functions/optopt.texi.
26678         * doc/posix-functions/psignal.texi: Renamed from
26679         doc/glibc-functions/psignal.texi.
26680         * doc/posix-functions/scandir.texi: Renamed from
26681         doc/glibc-functions/scandir.texi.
26682         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26683         doc/glibc-functions/sched_get_priority_min.texi.
26684         * doc/posix-functions/signgam.texi: Renamed from
26685         doc/glibc-functions/signgam.texi.
26686         * doc/posix-functions/stpcpy.texi: Renamed from
26687         doc/glibc-functions/stpcpy.texi.
26688         * doc/posix-functions/stpncpy.texi: Renamed from
26689         doc/glibc-functions/stpncpy.texi.
26690         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26691         doc/glibc-functions/strcasecmp_l.texi.
26692         * doc/posix-functions/strcoll_l.texi: Renamed from
26693         doc/glibc-functions/strcoll_l.texi.
26694         * doc/posix-functions/strfmon_l.texi: Renamed from
26695         doc/glibc-functions/strfmon_l.texi.
26696         * doc/posix-functions/strftime_l.texi: Renamed from
26697         doc/glibc-functions/strftime_l.texi.
26698         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26699         doc/glibc-functions/strncasecmp_l.texi.
26700         * doc/posix-functions/strndup.texi: Renamed from
26701         doc/glibc-functions/strndup.texi.
26702         * doc/posix-functions/strnlen.texi: Renamed from
26703         doc/glibc-functions/strnlen.texi.
26704         * doc/posix-functions/strsignal.texi: Renamed from
26705         doc/glibc-functions/strsignal.texi.
26706         * doc/posix-functions/strxfrm_l.texi: Renamed from
26707         doc/glibc-functions/strxfrm_l.texi.
26708         * doc/posix-functions/timer_gettime.texi: Renamed from
26709         doc/glibc-functions/timer_gettime.texi.
26710         * doc/posix-functions/tolower_l.texi: Renamed from
26711         doc/glibc-functions/tolower_l.texi.
26712         * doc/posix-functions/toupper_l.texi: Renamed from
26713         doc/glibc-functions/toupper_l.texi.
26714         * doc/posix-functions/towctrans_l.texi: Renamed from
26715         doc/glibc-functions/towctrans_l.texi.
26716         * doc/posix-functions/towlower_l.texi: Renamed from
26717         doc/glibc-functions/towlower_l.texi.
26718         * doc/posix-functions/towupper_l.texi: Renamed from
26719         doc/glibc-functions/towupper_l.texi.
26720         * doc/posix-functions/uselocale.texi: Renamed from
26721         doc/glibc-functions/uselocale.texi.
26722         * doc/posix-functions/vdprintf.texi: Renamed from
26723         doc/glibc-functions/vdprintf.texi.
26724         * doc/posix-functions/wcpcpy.texi:
26725         Renamed from doc/glibc-functions/wcpcpy.texi.
26726         * doc/posix-functions/wcpncpy.texi: Renamed from
26727         doc/glibc-functions/wcpncpy.texi.
26728         * doc/posix-functions/wcscasecmp.texi: Renamed from
26729         doc/glibc-functions/wcscasecmp.texi.
26730         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26731         doc/glibc-functions/wcscasecmp_l.texi.
26732         * doc/posix-functions/wcscoll_l.texi: Renamed from
26733         doc/glibc-functions/wcscoll_l.texi.
26734         * doc/posix-functions/wcsdup.texi: Renamed from
26735         doc/glibc-functions/wcsdup.texi.
26736         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26737         doc/glibc-functions/wcsncasecmp.texi.
26738         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26739         doc/glibc-functions/wcsncasecmp_l.texi.
26740         * doc/posix-functions/wcsnlen.texi: Renamed from
26741         doc/glibc-functions/wcsnlen.texi.
26742         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26743         doc/glibc-functions/wcsnrtombs.texi.
26744         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26745         doc/glibc-functions/wcsxfrm_l.texi.
26746         * doc/posix-functions/wctrans_l.texi: Renamed from
26747         doc/glibc-functions/wctrans_l.texi.
26748         * doc/posix-functions/wctype_l.texi: Renamed from
26749         doc/glibc-functions/wctype_l.texi.
26750         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26751         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26752         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26753         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26754         these subsections.
26755         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26756         Remove sections.
26757
26758 2008-12-14  Bruno Haible  <bruno@clisp.org>
26759
26760         Update doc for POSIX:2008.
26761         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26762
26763 2008-12-14  Bruno Haible  <bruno@clisp.org>
26764
26765         Update doc for POSIX:2008.
26766         * doc/pastposix-functions/bcmp.texi: Renamed from
26767         doc/posix-functions/bcmp.texi.
26768         * doc/pastposix-functions/bcopy.texi: Renamed from
26769         doc/posix-functions/bcopy.texi.
26770         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26771         doc/posix-functions/bsd_signal.texi.
26772         * doc/pastposix-functions/bzero.texi: Renamed from
26773         doc/posix-functions/bzero.texi.
26774         * doc/pastposix-functions/ecvt.texi: Renamed from
26775         doc/posix-functions/ecvt.texi.
26776         * doc/pastposix-functions/fcvt.texi: Renamed from
26777         doc/posix-functions/fcvt.texi.
26778         * doc/pastposix-functions/ftime.texi: Renamed from
26779         doc/posix-functions/ftime.texi.
26780         * doc/pastposix-functions/gcvt.texi: Renamed from
26781         doc/posix-functions/gcvt.texi.
26782         * doc/pastposix-functions/getcontext.texi: Renamed from
26783         doc/posix-functions/getcontext.texi.
26784         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26785         doc/posix-functions/gethostbyaddr.texi.
26786         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26787         doc/posix-functions/gethostbyname.texi.
26788         * doc/pastposix-functions/getwd.texi: Renamed from
26789         doc/posix-functions/getwd.texi.
26790         * doc/pastposix-functions/h_errno.texi: Renamed from
26791         doc/posix-functions/h_errno.texi.
26792         * doc/pastposix-functions/index.texi: Renamed from
26793         doc/posix-functions/index.texi.
26794         * doc/pastposix-functions/makecontext.texi: Renamed from
26795         doc/posix-functions/makecontext.texi.
26796         * doc/pastposix-functions/mktemp.texi: Renamed from
26797         doc/posix-functions/mktemp.texi.
26798         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26799         doc/posix-functions/pthread_attr_getstackaddr.texi.
26800         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26801         doc/posix-functions/pthread_attr_setstackaddr.texi.
26802         * doc/pastposix-functions/rindex.texi: Renamed from
26803         doc/posix-functions/rindex.texi.
26804         * doc/pastposix-functions/scalb.texi: Renamed from
26805         doc/posix-functions/scalb.texi.
26806         * doc/pastposix-functions/setcontext.texi: Renamed from
26807         doc/posix-functions/setcontext.texi.
26808         * doc/pastposix-functions/swapcontext.texi: Renamed from
26809         doc/posix-functions/swapcontext.texi.
26810         * doc/pastposix-functions/ualarm.texi: Renamed from
26811         doc/posix-functions/ualarm.texi.
26812         * doc/pastposix-functions/usleep.texi: Renamed from
26813         doc/posix-functions/usleep.texi.
26814         * doc/pastposix-functions/vfork.texi: Renamed from
26815         doc/posix-functions/vfork.texi.
26816         * doc/pastposix-functions/wcswcs.texi: Renamed from
26817         doc/posix-functions/wcswcs.texi.
26818         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26819         (Function Substitutes): Update.
26820
26821 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26822
26823         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26824         m4/strerror.m4.
26825
26826 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26827             Bruno Haible  <bruno@clisp.org>
26828
26829         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26830
26831 2008-12-13  Bruno Haible  <bruno@clisp.org>
26832
26833         * modules/strtoull (Depends-on): Remove unistd.
26834
26835 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26836
26837         * modules/strtoull (Depends-on): Add stdlib.
26838
26839 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26840
26841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26842
26843 2008-12-10  Jim Meyering  <meyering@redhat.com>
26844
26845         gl_ASSERT: don't say assertions are disabled when they're not
26846         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26847         "checking whether to enable assertions... no", when they are in
26848         fact enabled.  This is solely a bug in the output of configure.
26849         In spite of saying "no", NDEBUG was not defined in that case.
26850         Also, as noted by Eric Blake, leave assertions enabled upon
26851         --enable-assert=INVALID.
26852
26853 2008-12-10  Bruno Haible  <bruno@clisp.org>
26854
26855         Change MODULES.html to refer to POSIX:2008 where possible.
26856         * MODULES.html.sh (POSIX2008_URL): New variable.
26857         (posix_headers): Remove sys/timeb, ucontext.
26858         (posix2001_headers): New variable.
26859         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26860         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26861         index, makecontext, mktemp, pthread_attr_getstackaddr,
26862         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26863         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26864         (posix2001_functions): New variable.
26865         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26866         otherwise.
26867
26868 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26869
26870         add missing include to parse-duration.c
26871         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26872         * modules/parse-duration (Depends-on): Add xalloc.
26873
26874         fix sed script reading maint.mk
26875         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26876         (syntax-check-rules): Use it.
26877
26878 2008-12-09  Bruno Haible  <bruno@clisp.org>
26879
26880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26881         MacOS X 10.4/PowerPC.
26882         Reported by Simon Josefsson.
26883
26884 2008-12-08  Jim Meyering  <meyering@redhat.com>
26885
26886         work around mingw's lack of some S_IF definitions
26887         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26888         Reported by Simon Josefsson.
26889
26890 2008-12-08  Bruno Haible  <bruno@clisp.org>
26891
26892         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26893         applied to variables. Needed on MacOS X 10.4/PowerPC.
26894         Reported by Simon Josefsson.
26895
26896 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26897         and Eric Blake  <ebb9@byu.net>
26898
26899         assert: honor --enable-assert
26900         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26901         order to honor --enable-assert, rather than treating it as a
26902         synonym for --disable-assert.
26903
26904 2008-12-08  Jim Meyering  <meyering@redhat.com>
26905
26906         * lib/posixtm.c: Remove now-useless declaration of mktime.
26907
26908         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26909
26910 2008-12-07  Bruno Haible  <bruno@clisp.org>
26911
26912         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26913         test_once): Mark functions as static.
26914         * tests/test-tls.c (test_tls): Likewise.
26915
26916 2008-12-07  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26919         iconv_register_autodetect.
26920
26921 2008-12-07  Jim Meyering  <meyering@redhat.com>
26922
26923         posixtm.c: avoid a warning
26924         * lib/posixtm.c (posixtime): Don't initialize tm0.
26925         It's no longer needed to placate gcc4's -Wuninitialized,
26926         and the attempt to placate would elicit a new warning.
26927
26928         unicodeio.c: mark unused parameters
26929         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26930         (fallback_failure_callback): Likewise.
26931
26932 2008-12-07  Bruno Haible  <bruno@clisp.org>
26933
26934         * gnulib-tool (func_create_testdir): When building the tests
26935         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26936         Reported by Simon Josefsson.
26937
26938 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26939
26940         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26941
26942 2008-12-06  Bruno Haible  <bruno@clisp.org>
26943
26944         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26945         Suggested by Eric Blake.
26946
26947 2008-12-06  Bruno Haible  <bruno@clisp.org>
26948
26949         Fix a c-stack test failure on MacOS X.
26950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26951         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26952         handler for SIGBUS as well.
26953         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26954         install a signal handler for SIGBUS as well.
26955         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26956
26957 2008-12-06  Bruno Haible  <bruno@clisp.org>
26958
26959         Advocacy documentation.
26960         * doc/gnulib-intro.texi (Benefits): New section.
26961         * doc/gnulib.texi: Update.
26962
26963 2008-12-06  Bruno Haible  <bruno@clisp.org>
26964
26965         Document the 'manywarnings' module.
26966         * doc/manywarnings.texi: New file.
26967         * doc/gnulib.texi: Include it.
26968
26969 2008-12-05  Eric Blake  <ebb9@byu.net>
26970
26971         tests: silence some gcc warnings
26972         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26973         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26974         type mismatches.
26975
26976 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26977             Bruno Haible  <bruno@clisp.org>
26978
26979         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26980
26981 2008-11-29  Jim Meyering  <meyering@redhat.com>
26982
26983         unicodeio.c: mark unused parameters
26984         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26985         (fallback_failure_callback): Likewise.
26986
26987         fts: fix a thinko
26988         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26989         (set_stat_type): Return S_IF*-valued "type" directly.
26990         Prompted by James Youngman's spotting a related bug.
26991         Confirmed by further testing through find.
26992
26993         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26994         * lib/fts.c (D_TYPE): Define.
26995         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26996         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26997         (s_ifmt_shift_bits): New function.
26998         (set_stat_type): New function.
26999         (fts_build): When not calling fts_stat, call set_stat_type
27000         to propagate dirent.d_type info to fts_read caller.
27001         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27002         fts_statp->st_mode type information may be valid.
27003
27004 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27005
27006         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27007         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27008         <sds@gnu.org>.
27009
27010 2008-11-20  Bruno Haible  <bruno@clisp.org>
27011
27012         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27013         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27014         INCLUDE_NEXT.
27015         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27016         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27017         * modules/math (Makefile.am): Substitute
27018         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27020
27021 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27022             Bruno Haible  <bruno@clisp.org>
27023
27024         * lib/stdint.in.h: Define all type macros so that their expansion is
27025         a single typedef'ed token. Fixes a compilation failure in Boost which
27026         does "using ::int8_t;".
27027
27028 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27029
27030         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27031         gl_MANYWARN_ALL_GCC.
27032         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27033         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27034         * modules/manywarnings: New file.
27035         * MODULES.html.sh: Mention manywarnings module.
27036
27037 2008-11-18  Bruno Haible  <bruno@clisp.org>
27038
27039         * doc/gnulib-tool.texi (Unit tests): New section.
27040
27041 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27042
27043         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27044         paths like 'lib/po/foo.po'.
27045
27046 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27047
27048         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27049         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27050
27051 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27052
27053         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27054         parameter works.
27055
27056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27057
27058         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27059
27060 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27061
27062         * modules/parse-duration-tests: New file.
27063         * tests/test-parse-duration.sh: New file.
27064         * tests/test-parse-duration.c: New file.
27065
27066         New module 'parse-duration'.
27067         * lib/parse-duration.h: New file.
27068         * lib/parse-duration.c: New file.
27069         * modules/parse-duration: New file.
27070
27071 2008-11-17  Bruno Haible  <bruno@clisp.org>
27072
27073         * tests/test-select-out.sh: Comment out the first pipe test.
27074         Reported by Simon Josefsson.
27075
27076 2008-11-17  Bruno Haible  <bruno@clisp.org>
27077
27078         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27080         gl_HOSTENT.
27081
27082 2008-11-17  Bruno Haible  <bruno@clisp.org>
27083
27084         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27085         -lnetwork and -lnet. Needed for Haiku and BeOS.
27086
27087 2008-11-16  Bruno Haible  <bruno@clisp.org>
27088
27089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27090
27091 2008-11-16  Bruno Haible  <bruno@clisp.org>
27092
27093         Avoid test failure on Haiku.
27094         * tests/test-fsync.c: Include <errno.h>.
27095         (main): Don't require that fsync (0) fails.
27096
27097 2008-11-15  Bruno Haible  <bruno@clisp.org>
27098
27099         New module 'hostent'.
27100         * modules/hostent: New file.
27101         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27102
27103 2008-11-15  Bruno Haible  <bruno@clisp.org>
27104
27105         New module 'servent'.
27106         * modules/servent: New file.
27107         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27108
27109 2008-11-15  Bruno Haible  <bruno@clisp.org>
27110
27111         Avoid generating same test program with two different rules.
27112         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27113         test-frexp to test-frexp-nolibm.
27114         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27115         test-frexpl to test-frexpl-nolibm.
27116
27117 2008-11-15  Bruno Haible  <bruno@clisp.org>
27118
27119         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27120         $(FREXPL_LIBM).
27121
27122 2008-11-15  Bruno Haible  <bruno@clisp.org>
27123
27124         * lib/netdb.in.h: Activate the definitions also when the system's
27125         <netdb.h> has 'struct addrinfo'.
27126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27127         EAI_OVERFLOW or AI_NUMERICSERV.
27128         * doc/posix-headers/netdb.texi: Document the problem.
27129
27130 2008-11-15  Bruno Haible  <bruno@clisp.org>
27131
27132         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27133
27134         Make the 'sched' module work on platforms where <sched.h> exists but
27135         is incomplete (such as Haiku).
27136         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27137         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27138         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27139         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27140         HAVE_STRUCT_SCHED_PARAM.
27141         * modules/sched (Depends-on): Add include_next.
27142         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27143         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27144         * doc/posix-headers/sched.texi: Document the issue.
27145
27146 2008-11-13  Jim Meyering  <meyering@redhat.com>
27147
27148         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27149         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27150         test would fail due to the difference in the Report bugs to ...
27151         line.  The expected address is empty, "<>", while the actual
27152         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27153
27154 2008-11-12  Bruno Haible  <bruno@clisp.org>
27155
27156         lstat: don't compile lstat.c on systems lacking lstat
27157         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27158         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27159         Reported by Daniel P. Berrange via Jim Meyering.
27160
27161 2008-11-12  Jim Meyering  <meyering@redhat.com>
27162
27163         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27164
27165 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27166
27167         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27168         instead.
27169
27170 2008-11-12  Bruno Haible  <bruno@clisp.org>
27171
27172         * lib/unicodeio.c: Include unistr.h.
27173         (utf8_wctomb): Remove function.
27174         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27175
27176 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27177
27178         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27179         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27180         <bruno@clisp.org>.
27181         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27182
27183 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27184
27185         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27186         * doc/gnulib.texi: Add section for warnings.
27187
27188 2008-11-11  Bruno Haible  <bruno@clisp.org>
27189
27190         * lib/sockets.h: Add a comment.
27191
27192 2008-11-11  Karl Berry  <karl@gnu.org>
27193
27194         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27195
27196 2008-11-11  Eric Blake  <ebb9@byu.net>
27197
27198         fdl.texi: avoid git symlinks
27199         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27200
27201 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27202
27203         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27204
27205 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27206
27207         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27208         (gl_WARN_ADD): Substitute $2 if literal.
27209
27210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27211
27212         * m4/warning.m4: Remove.
27213
27214 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27215
27216         * m4/warnings.m4: Almost complete rewrite. :-)
27217
27218 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27219
27220         * modules/warnings: New module.
27221         * m4/warnings.m4: New file.
27222         * MODULES.html.sh: Mention warnings module.
27223         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27224         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27225
27226 2008-11-10  Eric Blake  <ebb9@byu.net>
27227
27228         fdl.texi: make a symlink to the latest version
27229         * doc/standards.texi: Revert today's earlier change.
27230         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27231         * doc/fdl.texi: ...and replace this with a symlink to the newer
27232         fdl-1.3.texi.
27233
27234 2008-11-10  Bruno Haible  <bruno@clisp.org>
27235
27236         * tests/test-select-fd.c (main): Accept the result file name as fourth
27237         argument.
27238         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27239         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27240
27241 2008-11-10  Bruno Haible  <bruno@clisp.org>
27242
27243         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27244         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27245         as autoconf-substituted macros.
27246         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27248         gl_NETDB_H_DEFAULTS. Set these variables.
27249         * modules/netdb (Makefile.am): Substitute these variables.
27250
27251 2008-11-10  Eric Blake  <ebb9@byu.net>
27252
27253         standards.texi: include correct file for FDL 1.3
27254         * doc/standards.texi (GNU Free Documentation License): Change
27255         include file to pull in FDL 1.3, not 1.2.
27256
27257         fdl.texi: revert accidental change to license
27258         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27259
27260 2008-11-10  Bruno Haible  <bruno@clisp.org>
27261
27262         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27263         cross-compiling guesses also when the native compile gives no result.
27264
27265 2008-11-10  Bruno Haible  <bruno@clisp.org>
27266
27267         * lib/spawni.c (__spawni): Force variable into the stack.
27268
27269 2008-11-10  Bruno Haible  <bruno@clisp.org>
27270
27271         Add support for Haiku.
27272         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27273         glibc and BeOS, but also on Haiku.
27274         * lib/fpurge.c (fpurge): Likewise.
27275         * lib/freadable.c (freadable): Likewise.
27276         * lib/freadahead.c (freadahead): Likewise.
27277         * lib/freading.c (freading): Likewise.
27278         * lib/freadptr.c (freadptr): Likewise.
27279         * lib/freadseek.c (freadptrinc): Likewise.
27280         * lib/fseeko.c (rpl_fseeko): Likewise.
27281         * lib/fseterr.c (fseterr): Likewise.
27282         * lib/fwritable.c (fwritable): Likewise.
27283         * lib/fwriting.c (fwriting): Likewise.
27284         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27285
27286 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27287
27288         * lib/config.charset: Treat Haiku like BeOS.
27289
27290 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27291
27292         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27293         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27294
27295 2008-11-08  Bruno Haible  <bruno@clisp.org>
27296
27297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27298         AC_CACHE_CHECK.
27299
27300 2008-11-08  Bruno Haible  <bruno@clisp.org>
27301
27302         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27303
27304 2008-11-08  Bruno Haible  <bruno@clisp.org>
27305
27306         * tests/test-select-fd.c: New file.
27307         * tests/test-select-in.sh: New file.
27308         * tests/test-select-out.sh: New file.
27309         * tests/test-select-stdin.c: New file.
27310         * modules/select-tests (Files): Add the new files.
27311         (Depends-on): Add gettimeofday.
27312         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27313         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27314         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27315
27316 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27317             Bruno Haible  <bruno@clisp.org>
27318
27319         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27320
27321 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27322
27323         * build-aux/pmccabe2html: Added support for C++ source files.
27324
27325 2008-11-05  Ben Pfaff  <blp@gnu.org>
27326
27327         Fix lib/close.c build on Windows.
27328         * modules/close (Files): Add lib/w32sock.h.
27329
27330 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27331
27332         Accept Bison's NEWS format.
27333         * build-aux/announce-gen (print_news_deltas): Tweak
27334         $re_prefix.
27335
27336 2008-11-04  Bruno Haible  <bruno@clisp.org>
27337
27338         * modules/random_r (Maintainer): Add glibc.
27339
27340 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27341
27342         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27343         by karl@freefriends.org (Karl Berry).
27344         * doc/alloca.texi: Likewise.
27345         * doc/c-ctype.texi: Likewise.
27346         * doc/c-strcase.texi: Likewise.
27347         * doc/c-strcaseeq.texi: Likewise.
27348         * doc/c-strcasestr.texi: Likewise.
27349         * doc/c-strstr.texi: Likewise.
27350         * doc/c-strtod.texi: Likewise.
27351         * doc/c-strtold.texi: Likewise.
27352         * doc/ctime.texi: Likewise.
27353         * doc/error.texi: Likewise.
27354         * doc/fdl.texi: Likewise.
27355         * doc/gcd.texi: Likewise.
27356         * doc/getdate.texi: Likewise.
27357         * doc/gnulib-intro.texi: Likewise.
27358         * doc/gnulib-tool.texi: Likewise.
27359         * doc/gnulib.texi: Likewise.
27360         * doc/inet_ntoa.texi: Likewise.
27361         * doc/maintain.texi: Likewise.
27362         * doc/make-stds.texi: Likewise.
27363         * doc/quote.texi: Likewise.
27364         * doc/regexprops-generic.texi: Likewise.
27365         * doc/standards.texi: Likewise.
27366         * doc/verify.texi: Likewise.
27367         * doc/visibility.texi: Likewise.
27368         * doc/gnulib.texi (GNU Free Documentation License): Include
27369         fdl-1.3.texi instead of fdl.texi.
27370
27371 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27372
27373         * doc/fdl-1.3.texi: New file, from
27374         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27375         * modules/fdl-1.3: Add.
27376         * MODULES.html.sh: Add fdl-1.3.
27377
27378 2008-11-03  Bruno Haible  <bruno@clisp.org>
27379
27380         Make determination of absolute name of header file work with AIX xlc.
27381         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27382         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27383         preprocessing.
27384         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27385         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27386
27387 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27388
27389         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27390         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27391         <ludo@gnu.org>.
27392
27393 2008-11-02  Bruno Haible  <bruno@clisp.org>
27394
27395         Mark 'strpbrk' obsolete.
27396         * modules/strpbrk (Status, Notice): New sections.
27397         * modules/strtok_r (Depends-on): Add strpbrk.
27398
27399 2008-11-02  Bruno Haible  <bruno@clisp.org>
27400
27401         Mark 'strdup' obsolete.
27402         * modules/strdup (Status, Notice): New sections.
27403         * modules/findprog (Depends-on): Add strdup.
27404         * modules/getaddrinfo (Depends-on): Likewise.
27405         * modules/localename (Depends-on): Likewise.
27406         * modules/relocatable-lib (Depends-on): Likewise.
27407         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27408         * modules/relocatable-prog (Depends-on): Likewise.
27409         * modules/trim (Depends-on): Likewise.
27410         * modules/unictype/gen-ctype (Depends-on): Likewise.
27411         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27412
27413 2008-11-02  Bruno Haible  <bruno@clisp.org>
27414
27415         Mark 'strcspn' obsolete.
27416         * modules/strcspn (Status, Notice): New sections.
27417
27418 2008-11-02  Bruno Haible  <bruno@clisp.org>
27419
27420         Mark 'rmdir' obsolete.
27421         * modules/rmdir (Status, Notice): New sections.
27422         * modules/clean-temp (Depends-on): Add rmdir.
27423         * modules/openat (Depends-on): Likewise.
27424
27425 2008-11-02  Bruno Haible  <bruno@clisp.org>
27426
27427         Mark 'raise' obsolete.
27428         * modules/raise (Status, Notice): New sections.
27429         (Include): Specify <signal.h>.
27430         * modules/stdio (Depends-on): Add raise.
27431         * modules/write (Depends-on): Likewise.
27432
27433 2008-11-02  Bruno Haible  <bruno@clisp.org>
27434
27435         Mark 'memset' obsolete.
27436         * modules/memset (Status, Notice): New sections.
27437
27438 2008-11-02  Bruno Haible  <bruno@clisp.org>
27439
27440         Mark 'memmove' obsolete.
27441         * modules/memmove (Status, Notice): New sections.
27442         * modules/argp (Depends-on): Add memmove.
27443         * modules/argz (Depends-on): Likewise.
27444         * modules/canonicalize (Depends-on): Likewise.
27445         * modules/canonicalize-lgpl (Depends-on): Likewise.
27446         * modules/fts (Depends-on): Likewise.
27447         * modules/getcwd (Depends-on): Likewise.
27448         * modules/human (Depends-on): Likewise.
27449         * modules/regex (Depends-on): Likewise.
27450         * modules/striconveh (Depends-on): Likewise.
27451         * modules/trim (Depends-on): Likewise.
27452         * modules/unistr/u8-move (Depends-on): Likewise.
27453         * modules/unistr/u16-move (Depends-on): Likewise.
27454         * modules/unistr/u32-move (Depends-on): Likewise.
27455
27456 2008-11-02  Bruno Haible  <bruno@clisp.org>
27457
27458         Mark 'memcpy' obsolete.
27459         * modules/memcpy (Status, Notice): New sections.
27460
27461 2008-11-02  Bruno Haible  <bruno@clisp.org>
27462
27463         Mark 'memcmp' obsolete.
27464         * modules/memcmp (Status, Notice): New sections.
27465         * modules/argmatch (Depends-on): Add memchr.
27466         * modules/backupfile (Depends-on): Likewise.
27467         * modules/c-strcasestr (Depends-on): Likewise.
27468         * modules/crypto/des (Depends-on): Likewise.
27469         * modules/csharpcomp (Depends-on): Likewise.
27470         * modules/fnmatch (Depends-on): Likewise.
27471         * modules/git-merge-changelog (Depends-on): Likewise.
27472         * modules/isnand (Depends-on): Likewise.
27473         * modules/isnand-nolibm (Depends-on): Likewise.
27474         * modules/isnanf (Depends-on): Likewise.
27475         * modules/isnanf-nolibm (Depends-on): Likewise.
27476         * modules/isnanl (Depends-on): Likewise.
27477         * modules/isnanl-nolibm (Depends-on): Likewise.
27478         * modules/mbchar (Depends-on): Likewise.
27479         * modules/memcoll (Depends-on): Likewise.
27480         * modules/quotearg (Depends-on): Likewise.
27481         * modules/regex (Depends-on): Likewise.
27482         * modules/relocatable-prog (Depends-on): Likewise.
27483         * modules/same (Depends-on): Likewise.
27484         * modules/signbit (Depends-on): Likewise.
27485         * modules/strcasestr-simple (Depends-on): Likewise.
27486         * modules/unictype/gen-ctype (Depends-on): Likewise.
27487         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27488         * modules/uniname/uniname (Depends-on): Likewise.
27489         * modules/unistr/u8-cmp (Depends-on): Likewise.
27490
27491 2008-11-02  Bruno Haible  <bruno@clisp.org>
27492
27493         Mark 'memchr' obsolete.
27494         * modules/memchr (Status, Notice): New sections.
27495         * modules/argp (Depends-on): Add memchr.
27496         * modules/base64 (Depends-on): Likewise.
27497         * modules/c-strcasestr (Depends-on): Likewise.
27498         * modules/chdir-long (Depends-on): Likewise.
27499         * modules/fnmatch (Depends-on): Likewise.
27500         * modules/getsubopt (Depends-on): Likewise.
27501         * modules/git-merge-changelog (Depends-on): Likewise.
27502         * modules/glob (Depends-on): Likewise.
27503         * modules/strcasestr-simple (Depends-on): Likewise.
27504         * modules/strnlen (Depends-on): Likewise.
27505
27506 2008-11-02  Bruno Haible  <bruno@clisp.org>
27507
27508         Mark 'atexit' obsolete.
27509         * modules/atexit (Status, Notice): New sections.
27510         * modules/chdir-long (Depends-on): Add atexit.
27511         * modules/wait-process (Depends-on): Likewise.
27512
27513 2008-11-02  Bruno Haible  <bruno@clisp.org>
27514
27515         * gnulib-tool: New option --with-obsolete.
27516         (func_usage): Document it.
27517         (func_modules_transitive_closure): Drop obsolete dependencies if
27518         incobsolete is not true.
27519         (func_import): Read and save the incobsolete variable to the cache.
27520
27521 2008-11-02  Bruno Haible  <bruno@clisp.org>
27522
27523         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27524         * gnulib-tool: New option --extract-status.
27525         (func_usage): Document it.
27526         (sed_extract_prog): Recognize it.
27527         (func_get_status): New function.
27528
27529 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27530
27531         * modules/sockets (License): Change from LGPL to LGPLv2+.
27532
27533 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27534
27535         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27536
27537 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27538
27539         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27540         Mention times and sys_times.
27541         * modules/sys_times, modules/sys_times-tests: New modules.
27542         * modules/times, modules/times-tests: Likewise
27543         * m4/sys_times_h.m4: New file.
27544         * lib/sys_times.in.h: Likewise
27545         * lib/times.c: Likewise.
27546         * tests/test-sys_times.c: Likewise.
27547         * tests/test-times.c: Likewise.
27548         * doc/posix-headers/sys_times.texi: Update.
27549         * doc/posix-functions/times.texi: Update.
27550
27551 2008-10-28  Jim Meyering  <meyering@redhat.com>
27552
27553         * modules/tempname (Depends-on): Add lstat.
27554
27555         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27556
27557 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27558
27559         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27560         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27561         using idiom used elsewhere in gnulib.
27562
27563 2008-10-27  Jim Meyering  <meyering@redhat.com>
27564
27565         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27566
27567 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27568
27569         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27570         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27571         programs.
27572         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27573
27574 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27575
27576         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27577
27578 2008-10-27  Bruno Haible  <bruno@clisp.org>
27579
27580         * tests/test-lstat.c: Include <stdio.h>.
27581
27582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27583
27584         * modules/lstat-tests: New module.
27585         * tests/test-lstat.c: New file.
27586
27587 2008-10-26  Jim Meyering  <meyering@redhat.com>
27588
27589         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27590
27591 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27592             Bruno Haible  <bruno@clisp.org>
27593
27594         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27595         * modules/configmake (Include): Add a note that the include must come
27596         after all system headers.
27597         * lib/javaversion.c: Include configmake.h after all other includes.
27598
27599 2008-10-26  Bruno Haible  <bruno@clisp.org>
27600
27601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27602         HAVE_STRUCT_RANDOM_DATA to 1.
27603         (gl_STDLIB_H): Simplify.
27604
27605 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27606
27607         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27608         substitute HAVE_STRUCT_RANDOM_DATA.
27609         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27610         random_data.
27611         * modules/stdlib (Makefile.am): Substitute
27612         HAVE_STRUCT_RANDOM_DATA.
27613
27614 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27615
27616         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27617         * doc/gnulib-intro.texi (Copyright): Likewise.
27618
27619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27620
27621         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27622         findings.
27623
27624 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27625             Bruno Haible  <bruno@clisp.org>
27626
27627         * lib/unistd.in.h: Include <winsock2.h>.
27628         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27629         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27630         Provide dummy declarations.
27631         (gethostname): Override.
27632         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27633         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27634         gl_PREREQ_SYS_H_WINSOCK2.
27635         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27636         * doc/posix-functions/gethostname.texi: More details.
27637
27638 2008-10-25  Bruno Haible  <bruno@clisp.org>
27639
27640         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27641         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27642         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27643
27644         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27645         here ...
27646         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27648         gl_UNISTD_H_DEFAULTS.
27649
27650 2008-10-25  Eric Blake  <ebb9@byu.net>
27651
27652         signbit: avoid spurious compiler failure
27653         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27654         declarations inside function.
27655
27656 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27657             Bruno Haible  <bruno@clisp.org>
27658
27659         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27660         * modules/random_r (Depends-on): Add stdint.
27661
27662 2008-10-24  Bruno Haible  <bruno@clisp.org>
27663
27664         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27665         Eggert.
27666         * modules/strerror (License): Likewise.
27667
27668 2008-10-24  Jim Meyering  <meyering@redhat.com>
27669
27670         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27671         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27672
27673 2008-10-24  Eric Blake  <ebb9@byu.net>
27674
27675         getgroups: fix compilation when getgroups is available
27676         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27677         but with <config.h> override of getgroups disabled.
27678
27679 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27680
27681         * doc/gnulib.texi (Header files): Add note about C++ problems.
27682         Explained by Bruno Haible <bruno@clisp.org>.
27683
27684 2008-10-23  Bruno Haible  <bruno@clisp.org>
27685
27686         Define a dummy SA_NODEFER macro on Interix.
27687         * lib/signal.in.h (SA_NODEFER): Define fallback.
27688         Reported by Aleksey Cheusov <cheusov@tut.by> via
27689         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27690
27691 2008-10-23  Bruno Haible  <bruno@clisp.org>
27692
27693         * modules/freadahead (License): Change to LGPLv2+.
27694         Suggested by Simon Josefsson.
27695
27696 2008-10-23  Jim Meyering  <meyering@redhat.com>
27697
27698         random_r: new module
27699         * modules/random_r: New file.
27700         * m4/random_r.m4: New file.
27701         * lib/random_r.c: New file, from glibc.
27702         * modules/random_r-tests: New file.
27703         * tests/test-random_r.c: New file.
27704         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27705          Declare.
27706         (RAND_MAX): Define.
27707         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27708         * modules/stdlib: Substitute them, too.
27709         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27710         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27711         * doc/glibc-functions/random_r.texi: Likewise.
27712         * doc/glibc-functions/setstate_r.texi: Likewise.
27713         * doc/glibc-functions/srandom_r.texi: Likewise.
27714         * config/srclist.txt: Mention it.
27715
27716 2008-10-23  David Lutterkort  <lutter@redhat.com>
27717
27718         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27719         link requirement
27720
27721 2008-10-23  Jim Meyering  <meyering@redhat.com>
27722
27723         selinux-h: mark parameters of stub functions as intentionally unused
27724         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27725         * lib/se-context.in.h: Likewise.
27726
27727 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27728
27729         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27730
27731 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27732
27733         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27734
27735 2008-10-22  Eric Blake  <ebb9@byu.net>
27736
27737         glthread/thread: avoid compiler warning
27738         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27739         Add unreachable abort to silence compiler.
27740
27741 2008-10-22  Eric Blake  <ebb9@byu.net>
27742
27743         netdb: also supply struct addrinfo for cygwin 1.5.x
27744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27745         older cygwin.
27746         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27747         cygwin.
27748         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27749
27750 2008-10-22  Bruno Haible  <bruno@clisp.org>
27751
27752         * users.txt: Update entry about pspp.
27753
27754 2008-10-21  Bruno Haible  <bruno@clisp.org>
27755
27756         Simplification.
27757         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27758         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27759
27760         Simplification.
27761         * lib/ioctl.c (ioctl): Don't undefine.
27762         * lib/socket.c (socket): Don't undefine.
27763
27764         Remove unused module indicator macros.
27765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27766         GNULIB_$1 as a C macro.
27767
27768         * doc/posix-functions/close.texi: Undo last change.
27769         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27770         Windows platforms.
27771
27772 2008-10-21  Bruno Haible  <bruno@clisp.org>
27773
27774         Add gethostname() declaration to <unistd.h>.
27775         * lib/unistd.in.h (gethostname): New declaration.
27776         * lib/gethostname.c: Include <unistd.h>.
27777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27778         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27780         and HAVE_GETHOSTNAME.
27781         * modules/gethostname (Depends-on): Add unistd.
27782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27783         (Include): Specify <unistd.h>.
27784         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27785         HAVE_GETHOSTNAME.
27786         * tests/test-gethostname.c: Include <unistd.h> first.
27787
27788 2008-10-21  Bruno Haible  <bruno@clisp.org>
27789
27790         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27791         * modules/select-tests (Depends-on): Likewise.
27792         Reported by Simon Josefsson.
27793
27794 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27795
27796         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27797         * lib/accept.c: New file, based on winsock.c.
27798         * lib/bind.c: New file, based on winsock.c.
27799         * lib/connect.c: New file, based on winsock.c.
27800         * lib/getpeername.c: New file, based on winsock.c.
27801         * lib/getsockname.c: New file, based on winsock.c.
27802         * lib/getsockopt.c: New file, based on winsock.c.
27803         * lib/ioctl.c: New file, based on winsock.c.
27804         * lib/listen.c: New file, based on winsock.c.
27805         * lib/recv.c: New file, based on winsock.c.
27806         * lib/recvfrom.c: New file, based on winsock.c.
27807         * lib/send.c: New file, based on winsock.c.
27808         * lib/sendto.c: New file, based on winsock.c.
27809         * lib/setsockopt.c: New file, based on winsock.c.
27810         * lib/shutdown.c: New file, based on winsock.c.
27811         * lib/socket.c: New file, based on winsock.c.
27812         * lib/w32sock.h: New file, based on winsock.c.
27813         * lib/winsock.c: Remove file.
27814         * modules/accept: Likewise.
27815         * modules/bind: Likewise.
27816         * modules/connect: Likewise.
27817         * modules/getpeername: Likewise.
27818         * modules/getsockname: Likewise.
27819         * modules/getsockopt: Likewise.
27820         * modules/ioctl: Likewise.
27821         * modules/listen: Likewise.
27822         * modules/recv: Likewise.
27823         * modules/recvfrom: Likewise.
27824         * modules/send: Likewise.
27825         * modules/sendto: Likewise.
27826         * modules/setsockopt: Likewise.
27827         * modules/shutdown: Likewise.
27828         * modules/socket: Use socket.c instead of winsock.c.
27829         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27830         * doc/posix-functions/accept.texi: Doc fix.
27831         * doc/posix-functions/bind.texi: Doc fix.
27832         * doc/posix-functions/close.texi: Doc fix.
27833         * doc/posix-functions/connect.texi: Doc fix.
27834         * doc/posix-functions/getpeername.texi: Doc fix.
27835         * doc/posix-functions/getsockname.texi: Doc fix.
27836         * doc/posix-functions/getsockopt.texi: Doc fix.
27837         * doc/posix-functions/ioctl.texi: Doc fix.
27838         * doc/posix-functions/listen.texi: Doc fix.
27839         * doc/posix-functions/recv.texi: Doc fix.
27840         * doc/posix-functions/recvfrom.texi: Doc fix.
27841         * doc/posix-functions/send.texi: Doc fix.
27842         * doc/posix-functions/sendto.texi: Doc fix.
27843         * doc/posix-functions/setsockopt.texi: Doc fix.
27844         * doc/posix-functions/shutdown.texi: Doc fix.
27845         * doc/posix-functions/socket.texi: Doc fix.
27846
27847 2008-10-20  Bruno Haible  <bruno@clisp.org>
27848
27849         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27850         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27851         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27852         as an alias for SIGABRT.
27853         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27854         (sigaction): Map it to SIGABRT.
27855         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27856
27857 2008-10-20  Bruno Haible  <bruno@clisp.org>
27858
27859         * lib/fts.c: Don't include lstat.h.
27860         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27861
27862         Move the lstat() declaration to <sys/stat.h>.
27863         * lib/lstat.h: Remove file.
27864         * lib/sys_stat.in.h: Add special invocation convention.
27865         (lstat): New declaration.
27866         * lib/lstat.c (orig_lstat): New function.
27867         (rpl_lstat): Use orig_lstat instead of lstat.
27868         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27869         AC_C_INLINE. Set REPLACE_LSTAT.
27870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27871         and REPLACE_LSTAT.
27872         * modules/lstat (Files): Remove lib/lstat.h.
27873         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27874         (Include): Specify <sys/stat.h> instead of lstat.h.
27875         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27876         REPLACE_LSTAT.
27877         * NEWS: Mention the change.
27878
27879 2008-10-20  Bruno Haible  <bruno@clisp.org>
27880
27881         * modules/posix_spawn-tests: New file.
27882         * tests/test-posix_spawn3.c: New file.
27883
27884 2008-10-20  Bruno Haible  <bruno@clisp.org>
27885
27886         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27887         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27888         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27889         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27890         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27891
27892 2008-10-20  Bruno Haible  <bruno@clisp.org>
27893
27894         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27895         of posix_spawn on AIX 5.3.
27896
27897 2008-10-20  Bruno Haible  <bruno@clisp.org>
27898
27899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27900
27901 2008-10-20  Bruno Haible  <bruno@clisp.org>
27902
27903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27904         of AC_LANG_PROGRAM.
27905
27906 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27907
27908         * lib/netdb.in.h: Don't define GNU specific constants until they
27909         are supported or needed.  Reported by Bruno Haible
27910         <bruno@clisp.org>.
27911
27912 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27913
27914         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27915
27916 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27917
27918         * lib/getaddrinfo.h: Remove file.
27919         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27920         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27921         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27922         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27923         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27924         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27925         * tests/test-getaddrinfo.c: Likewise.
27926         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27927         * NEWS: Mention change.
27928
27929 2008-10-19  Bruno Haible  <bruno@clisp.org>
27930
27931         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27932
27933 2008-10-19  Bruno Haible  <bruno@clisp.org>
27934
27935         * lib/wait-process.c: Include simply <sys/wait.h>.
27936         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27937         WIFSTOPPED): Remove fallback definitions.
27938         * modules/wait-process (Depends-on): Add sys_wait.
27939
27940         New module 'sys_wait'.
27941         * modules/sys_wait: New file.
27942         * lib/sys_wait.in.h: New file, partially copied from
27943         lib/wait-process.c.
27944         * m4/sys_wait_h.m4: New file.
27945         * doc/posix-headers/sys_wait.texi: Mention the new module.
27946
27947 2008-10-19  Bruno Haible  <bruno@clisp.org>
27948
27949         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27950
27951 2008-10-19  Bruno Haible  <bruno@clisp.org>
27952
27953         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27954         * lib/wait-process.c (WAIT_T): Remove type.
27955         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27956         (wait_subprocess): Update.
27957
27958 2008-10-19  Bruno Haible  <bruno@clisp.org>
27959
27960         New module 'atoll'.
27961         * modules/atoll: New file.
27962         * lib/stdlib.in.h (atoll): New declaration.
27963         * lib/atoll.c: New file, from glibc with modifications.
27964         * m4/atoll.m4: New file.
27965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27966         HAVE_ATOLL.
27967         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27968         * doc/posix-functions/atoll.texi: Mention the new module.
27969
27970 2008-10-19  Bruno Haible  <bruno@clisp.org>
27971
27972         Add strtoull() declaration to <stdlib.h>.
27973         * lib/stdlib.in.h (strtoull): New declaration.
27974         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27975         Set HAVE_STRTOULL.
27976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27977         HAVE_STRTOULL.
27978         * modules/strtoull (Depends-on): Add stdlib.
27979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27980         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27981         HAVE_STRTOULL.
27982
27983 2008-10-19  Bruno Haible  <bruno@clisp.org>
27984
27985         Add strtoll() declaration to <stdlib.h>.
27986         * lib/stdlib.in.h (strtoll): New declaration.
27987         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27988         Set HAVE_STRTOLL.
27989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27990         HAVE_STRTOLL.
27991         * modules/strtoll (Depends-on): Add stdlib.
27992         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27993         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27994
27995 2008-10-19  Bruno Haible  <bruno@clisp.org>
27996
27997         * modules/bcopy (Depends-on): Add strings.
27998         (Include): Specify <strings.h>.
27999
28000 2008-10-19  Bruno Haible  <bruno@clisp.org>
28001
28002         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28003
28004 2008-10-19  Bruno Haible  <bruno@clisp.org>
28005
28006         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28007         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28008         mingw.
28009
28010 2008-10-19  Bruno Haible  <bruno@clisp.org>
28011
28012         * lib/atanl.c: Don't include isnanl.h.
28013         * lib/cosl.c: Likewise.
28014         * lib/ldexpl.c: Likewise.
28015         * lib/logl.c: Likewise.
28016         * lib/sinl.c: Likewise.
28017         * lib/sqrtl.c: Likewise.
28018         * lib/tanl.c: Likewise.
28019
28020         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28021         * lib/isnanf.h: Remove file.
28022         * lib/isnand.h: Remove file.
28023         * lib/isnanl.h: Remove file.
28024         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28025         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28026         macros.
28027         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28028         HAVE_ISNANF, don't define it as a C macro.
28029         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28030         HAVE_ISNAND, don't define it as a C macro.
28031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28032         HAVE_ISNANL, don't define it as a C macro.
28033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28034         HAVE_ISNAN[FDL].
28035         * modules/isnanf (Files): Remove lib/isnanf.h.
28036         (Depends-on): Add math.
28037         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28038         (Include): Specify <math.h> instead of isnanf.h.
28039         * modules/isnand (Files): Remove lib/isnand.h.
28040         (Depends-on): Add math.
28041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28042         (Include): Specify <math.h> instead of isnand.h.
28043         * modules/isnanl (Files): Remove lib/isnanl.h.
28044         (Depends-on): Add math.
28045         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28046         (Include): Specify <math.h> instead of isnanl.h.
28047         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28048         HAVE_ISNAN[FDL].
28049         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28050         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28051         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28052         * NEWS: Mention the change.
28053
28054 2008-10-18  Bruno Haible  <bruno@clisp.org>
28055
28056         Add getusershell(), setusershell(), endusershell() declarations to
28057         <unistd.h>.
28058         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28059         declarations.
28060         * lib/getusershell.c: Include unistd.h.
28061         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28062         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28063         HAVE_GETUSERSHELL.
28064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28065         and HAVE_GETUSERSHELL.
28066         * modules/getusershell (Depends-on): Add unistd, extensions.
28067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28068         (Include): Specify <unistd.h>.
28069         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28070         HAVE_GETUSERSHELL.
28071
28072 2008-10-18  Bruno Haible  <bruno@clisp.org>
28073
28074         Add a getloadavg() declaration to <stdlib.h>.
28075         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28076         getloadavg declaration.
28077         (getloadavg): New declaration.
28078         * lib/getloadavg.c: Include <stdlib.h> first.
28079         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28080         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28081         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28083         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28084         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28086         (Include): Specify <stdlib.h>.
28087         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28088         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28089
28090 2008-10-18  Bruno Haible  <bruno@clisp.org>
28091
28092         * lib/dirchownmod.c: Don't include lchmod.h.
28093
28094         Move the lchmod() declaration to <sys/stat.h>.
28095         * lib/lchmod.h: Remove file.
28096         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28097         (lchmod): New declaration, moved here from lib/lchown.h.
28098         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28099         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28101         and HAVE_LCHMOD.
28102         * modules/lchmod (Files): Remove lib/lchmod.h.
28103         (Depends-on): Add sys_stat, extensions.
28104         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28105         (Include): Specify <sys/stat.h> instead of lchmod.h.
28106         * modules/sys_stat (Depends-on): Add link-warning.
28107         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28108         definition of GL_LINK_WARNING.
28109         * NEWS: Mention the change.
28110
28111 2008-10-18  Bruno Haible  <bruno@clisp.org>
28112
28113         * lib/fchdir.c: Don't include dirfd.h.
28114         * lib/fts.c: Likewise.
28115         * lib/getcwd.c: Likewise.
28116         * lib/glob.c: Likewise.
28117
28118         Move the dirfd() declaration to <dirent.h>.
28119         * lib/dirfd.h: Remove file.
28120         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28121         (dirfd): New declaration.
28122         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28123         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28124         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28125         HAVE_DECL_DIRFD.
28126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28127         HAVE_DECL_DIRFD.
28128         * modules/dirfd (Files): Remove lib/dirfd.h.
28129         (Depends-on): Add dirent, extensions.
28130         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28131         (Include): Specify <dirent.h> instead of dirfd.h.
28132         * modules/dirent (Depends-on): Add link-warning.
28133         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28134         definition of GL_LINK_WARNING.
28135         * NEWS: Mention the change.
28136
28137 2008-10-18  Bruno Haible  <bruno@clisp.org>
28138
28139         Move the euidaccess() declaration to <unistd.h>.
28140         * lib/euidaccess.h: Remove file.
28141         * lib/unistd.in.h (euidaccess): New declaration.
28142         * lib/euidaccess.c: Don't include euidaccess.h.
28143         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28144         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28146         and HAVE_EUIDACCESS.
28147         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28148         (Depends-on): Add unistd.
28149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28150         (Include): Specify <unistd.h> instead of euidaccess.h.
28151         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28152         HAVE_EUIDACCESS.
28153         * NEWS: Mention the change.
28154
28155 2008-10-18  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28158
28159         Move the getdomainname() declaration to <unistd.h>.
28160         * lib/getdomainname.h: Remove file.
28161         * lib/unistd.in.h (getdomainname): New declaration.
28162         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28163         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28164         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28165         HAVE_GETDOMAINNAME.
28166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28167         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28168         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28169         (Depends-on): Add unistd, extensions.
28170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28171         (Includes): Specify <unistd.h> instead of getdomainname.h.
28172         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28173         HAVE_GETDOMAINNAME.
28174         * NEWS: Mention the change.
28175
28176 2008-10-18  Bruno Haible  <bruno@clisp.org>
28177
28178         * modules/dirent: New file.
28179         * m4/dirent_h.m4: New file.
28180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28181         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28182         * modules/fchdir (Files): Remove lib/dirent.in.h.
28183         (Depends-on): Add dirent.
28184         (Makefile.am): Move rules to modules/dirent.
28185         * doc/posix-headers/dirent.texi: Mention the new module.
28186
28187 2008-10-18  Bruno Haible  <bruno@clisp.org>
28188
28189         Avoid -Wunused-parameter warnings in public gnulib header files.
28190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28191         macro.
28192         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28193
28194 2008-10-18  Bruno Haible  <bruno@clisp.org>
28195
28196         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28197         * doc/glibc-functions/error.texi: Mention the module 'error'.
28198         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28199         * doc/glibc-functions/getdomainname.texi: Mention the module
28200         'getdomainname'.
28201         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28202         * doc/glibc-functions/getpagesize.texi: Mention the module
28203         'getpagesize'.
28204         * doc/glibc-functions/getusershell.texi: Mention the module
28205         'getusershell'.
28206         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28207         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28208         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28209         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28210         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28211         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28212         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28213         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28214         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28215         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28216         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28217         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28218         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28219         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28220
28221 2008-10-17  Bruno Haible  <bruno@clisp.org>
28222
28223         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28224         HP-UX and IRIX, use -0.0L.
28225         * tests/test-ceill.c (minus_zero): Likewise.
28226         * tests/test-floorl.c (minus_zero): Likewise.
28227         * tests/test-frexpl.c (minus_zero): Likewise.
28228         * tests/test-isnan.c (minus_zerol): Likewise.
28229         * tests/test-isnanl.h (minus_zero): Likewise.
28230         * tests/test-ldexpl.c (minus_zero): Likewise.
28231         * tests/test-roundl.c (minus_zero): Likewise.
28232         * tests/test-signbit.c (minus_zerol): Likewise.
28233         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28234         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28235         * tests/test-truncl.c (minus_zero): Likewise.
28236         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28237         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28238         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28239         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28240
28241 2008-10-17  Bruno Haible  <bruno@clisp.org>
28242
28243         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28244         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28245         that it gets activated only for gcc >= 3.0.
28246         * lib/dirent.in.h: Likewise.
28247         * lib/errno.in.h: Likewise.
28248         * lib/fcntl.in.h: Likewise.
28249         * lib/float.in.h: Likewise.
28250         * lib/iconv.in.h: Likewise.
28251         * lib/inttypes.in.h: Likewise.
28252         * lib/locale.in.h: Likewise.
28253         * lib/math.in.h: Likewise.
28254         * lib/netdb.in.h: Likewise.
28255         * lib/netinet_in.in.h: Likewise.
28256         * lib/search.in.h: Likewise.
28257         * lib/signal.in.h: Likewise.
28258         * lib/spawn.in.h: Likewise.
28259         * lib/stdarg.in.h: Likewise.
28260         * lib/stdint.in.h: Likewise.
28261         * lib/stdio.in.h: Likewise.
28262         * lib/stdlib.in.h: Likewise.
28263         * lib/string.in.h: Likewise.
28264         * lib/strings.in.h: Likewise.
28265         * lib/sys_file.in.h: Likewise.
28266         * lib/sys_ioctl.in.h: Likewise.
28267         * lib/sys_select.in.h: Likewise.
28268         * lib/sys_socket.in.h: Likewise.
28269         * lib/sys_stat.in.h: Likewise.
28270         * lib/sys_time.in.h: Likewise.
28271         * lib/sysexits.in.h: Likewise.
28272         * lib/time.in.h: Likewise.
28273         * lib/unistd.in.h: Likewise.
28274         * lib/wchar.in.h: Likewise.
28275         * lib/wctype.in.h: Likewise.
28276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28277
28278 2008-10-17  Jim Meyering  <meyering@redhat.com>
28279
28280         ignore-value: don't depend on inline module
28281         * modules/ignore-value (Depends-on): Remove 'inline'.
28282         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28283         Suggestion from Bruno Haible.
28284
28285 2008-10-17  Bruno Haible  <bruno@clisp.org>
28286
28287         New implementation of condition variables for Win32.
28288         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28289         (gl_linked_waitqueue_t): New type.
28290         (gl_cond_t): Use it.
28291         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28292         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28293         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28294         (glthread_cond_init_func, glthread_cond_wait_func,
28295         glthread_cond_timedwait_func, glthread_cond_signal_func,
28296         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28297         Reimplemented on the basis of gl_linked_waitqueue_t.
28298         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28299         gl_waitqueue_t.
28300         (gl_rwlock_t): Update.
28301         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28302
28303 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28304
28305         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28306         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28307
28308 2008-10-17  Jim Meyering  <meyering@redhat.com>
28309
28310         ignore-value: new module
28311         * modules/ignore-value: New file.
28312         * lib/ignore-value.h: New file.
28313         * MODULES.html.sh (Compiler warning management): New section,
28314         just for this module.  More to come.
28315
28316 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28317
28318         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28319         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28320         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28321
28322 2008-10-16  Jim Meyering  <meyering@redhat.com>
28323
28324         openat-die.c: avoid 'no previous prototype' warning
28325         * lib/openat-die.c: Include "openat.h".
28326         Reported by Reuben Thomas <rrt@sc3d.org>.
28327
28328 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28329
28330         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28331         * lib/netdb.in.h: Fix typo.
28332         Reported by Bruno Haible  <bruno@clisp.org>
28333
28334         * lib/netdb.in.h: Include sys/socket.h for platforms without
28335         netdb.h, to get structures like hostent on MinGW.
28336         * modules/netdb (Depends-on): Add sys_socket.
28337
28338 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28339
28340         * modules/netdb, modules/netdb-tests: New file.
28341         * m4/netdb_h.m4: New file.
28342         * lib/netdb.in.h: Add, currently just an empty file pending
28343         definitions.
28344         * tests/test-netdb.c: New file.
28345         * doc/posix-headers/netdb.texi: Mention that we replace it if
28346         needed.
28347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28348         netdb.
28349
28350 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28351
28352         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28353         with code.
28354
28355 2008-10-13  Bruno Haible  <bruno@clisp.org>
28356
28357         * lib/glthread/cond.c (glthread_cond_wait_func,
28358         glthread_cond_timedwait_func): Add a comment.
28359
28360 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28361
28362         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28363         * tests/test-select.c: Likewise,
28364
28365 2008-10-13  Bruno Haible  <bruno@clisp.org>
28366
28367         * lib/glthread/cond.c (glthread_cond_wait_func,
28368         glthread_cond_timedwait_func): Fix variable name.
28369         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28370
28371 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28372
28373         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28375         struct sockaddr.sa_len.
28376         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28377
28378 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28379
28380         * build-aux/pmccabe2html: Add css and css_url parameters.
28381
28382 2008-10-12  Bruno Haible  <bruno@clisp.org>
28383
28384         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28385         calling aclx_get.
28386         Reported by Rainer Tammer <tammer@tammer.net>.
28387
28388 2008-10-12  Bruno Haible  <bruno@clisp.org>
28389
28390         Use msvcrt aware primitives for creation/termination of Win32 threads.
28391         * lib/glthread/thread.c: Include <process.h>.
28392         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28393         (wrapper_func): Update signature.
28394         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28395
28396 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28397             Bruno Haible  <bruno@clisp.org>
28398
28399         Provide a Win32 implementation of the 'cond' module.
28400         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28401         * lib/glthread/cond.c (glthread_cond_init_func,
28402         glthread_cond_wait_func, glthread_cond_timedwait_func,
28403         glthread_cond_signal_func, glthread_cond_broadcast_func,
28404         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28405         * modules/cond (Dependencies): Add gettimeofday.
28406
28407 2008-10-11  Bruno Haible  <bruno@clisp.org>
28408
28409         Make sleep work on older versions of mingw.
28410         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28411         only whether it exists.
28412         * doc/posix-functions/sleep.texi: Mention the problem with older
28413         versions of mingw.
28414
28415 2008-10-11  Bruno Haible  <bruno@clisp.org>
28416
28417         New module 'shutdown'.
28418         * modules/shutdown: New file.
28419         * lib/sys_socket.in.h (shutdown): New declaration.
28420         * lib/winsock.c (shutdown): New function.
28421         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28422         GNULIB_SHUTDOWN.
28423         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28424         * doc/posix-functions/shutdown.texi: Document the new module.
28425
28426 2008-10-11  Jim Meyering  <meyering@redhat.com>
28427
28428         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28429
28430 2008-10-11  Bruno Haible  <bruno@clisp.org>
28431
28432         New module 'fclose'.
28433         * modules/fclose: New file.
28434         * lib/stdio.in.h (fclose): New declaration.
28435         * lib/fclose.c: New file.
28436         * m4/fclose.m4: New file.
28437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28438         REPLACE_FCLOSE.
28439         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28440         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28441         REPLACE_FCLOSE.
28442         * modules/close (Depends-on): fclose.
28443         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28444
28445 2008-10-11  Bruno Haible  <bruno@clisp.org>
28446
28447         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28448         set errno and don't call _close.
28449
28450 2008-10-10  Bruno Haible  <bruno@clisp.org>
28451
28452         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28453         ACL, not afterwards. Fixes test failure on Cygwin.
28454
28455 2008-10-09  Ben Pfaff  <blp@gnu.org>
28456
28457         * build-aux/announce-gen: Fix gnulib version related part of usage
28458         message.  Die with a useful error message if no tarballs are
28459         found.
28460
28461 2008-10-10  Jim Meyering  <meyering@redhat.com>
28462
28463         bootstrap: use git's --depth=N option only if it's supported
28464         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28465         recognize the --depth option.  Reported by Pádraig Brady.
28466
28467 2008-10-09  Bruno Haible  <bruno@clisp.org>
28468
28469         New module 'ioctl'.
28470         * modules/ioctl: New file.
28471         * lib/sys_socket.in.h (ioctl): Remove declaration.
28472         * lib/winsock.c: Include <sys/ioctl.h>.
28473         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28475         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28476         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28477         * doc/posix-functions/ioctl.texi: Mention the new module.
28478
28479 2008-10-09  Bruno Haible  <bruno@clisp.org>
28480
28481         New module 'sys_ioctl'.
28482         * lib/sys_ioctl.in.h: New file.
28483         * m4/sys_ioctl_h.m4: New file.
28484         * modules/sys_ioctl: New file.
28485         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28486
28487 2008-10-09  Bruno Haible  <bruno@clisp.org>
28488
28489         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28490         * lib/winsock.c: Include <stdarg.h>.
28491         (rpl_ioctl): Change to second argument 'int' and then varargs.
28492
28493 2008-10-09  Bruno Haible  <bruno@clisp.org>
28494
28495         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28496         when the sys_socket module is present and the system has <winsock2.h>.
28497
28498 2008-10-09  Bruno Haible  <bruno@clisp.org>
28499
28500         * doc/posix-functions/close.texi: Mention module 'close' instead of
28501         module 'sys_socket'.
28502
28503 2008-10-09  Bruno Haible  <bruno@clisp.org>
28504
28505         * doc/glibc-headers/sys_ioctl.texi: New file.
28506         * doc/gnulib.texi: Include it.
28507
28508 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28509             Bruno Haible  <bruno@clisp.org>
28510
28511         Combine the two replacements of 'close'.
28512         * lib/sys_socket.in.h (close): Define to a reminder to include
28513         <unistd.h>.
28514         (_gl_close_fd_maybe_socket): New declaration.
28515         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28516         * lib/winsock.c (close): Remove undefinition.
28517         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28518         needed for the gnulib module 'close'.
28519         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28520         define to an error symbol or to a warning, if suitable.
28521         * lib/close.c: Include <sys/socket.h>.
28522         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28524         UNISTD_H_HAVE_WINSOCK2_H.
28525         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28527         UNISTD_H_HAVE_WINSOCK2_H.
28528         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28529         (configure.ac): Set a module indicator.
28530         (Makefile.am): Substitute GNULIB_CLOSE.
28531         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28532         * modules/poll-tests (Depends-on): Add close.
28533         * modules/select-tests (Depends-on): Likewise.
28534
28535 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28536             Bruno Haible  <bruno@clisp.org>
28537
28538         New module 'close'.
28539         * modules/close: New file.
28540         * lib/unistd.in.h (close): Move declaration out of the
28541         FCHDIR_REPLACEMENT scope.
28542         (_gl_unregister_fd): New declaration.
28543         * lib/close.c: New file.
28544         * lib/fchdir.c (rpl_close): Remove function.
28545         * m4/close.m4: New file.
28546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28547         close.
28548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28549         REPLACE_CLOSE.
28550         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28551         REPLACE_CLOSE.
28552         * modules/fchdir (Depends-on): Add close.
28553
28554 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28555             Bruno Haible  <bruno@clisp.org>
28556
28557         * lib/fcntl.in.h (open): Simplify conditionals.
28558         (_gl_register_fd): New declaration.
28559         * lib/fchdir.c (rpl_open): Remove function.
28560         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28561         also.
28562         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28564         open.
28565
28566 2008-10-09  Jim Meyering  <meyering@redhat.com>
28567
28568         GNUmakefile: use the more name-space-friendly "_version"
28569         * top/GNUmakefile (_dummy): Update.
28570         (_version): Rename from "version".
28571
28572 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28573             Bruno Haible  <bruno@clisp.org>
28574
28575         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28576         rpl_close.
28577         (_gl_register_fd): New function, extracted from rpl_open.
28578         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28579         (rpl_open, rpl_opendir): Use _gl_register_fd.
28580
28581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28582
28583         Fix organization of 'open' replacement.
28584         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28585         (gl_FUNC_OPEN): Use it.
28586         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28587
28588 2008-10-08  Bruno Haible  <bruno@clisp.org>
28589
28590         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28591
28592 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28593
28594         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28595         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28596         listen).
28597
28598 2008-10-08  Eric Blake  <ebb9@byu.net>
28599
28600         GNUmakefile: add 'make version' target
28601         * top/GNUmakefile (_curr-ver): Split version update rules...
28602         (version): ...into a target.
28603
28604 2008-10-07  Bruno Haible  <bruno@clisp.org>
28605
28606         Use a more portable replacement expression for -0.0L.
28607         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28608         instead of -0.0L. Fix m4 quotation.
28609
28610         * tests/test-signbit.c: Include <float.h>.
28611         (minus_zero): New variable.
28612         (test_signbitl): Use minus_zero instead of -zero.
28613         * modules/signbit-tests (Depends-on): Add float.
28614
28615         * tests/test-ceill.c: Include <float.h>.
28616         (zero): Remove variable.
28617         (minus_zero): New variable.
28618         (main): Use minus_zero instead of -zero.
28619         * modules/ceill-tests (Depends-on): Add float.
28620
28621         * tests/test-floorl.c: Include <float.h>.
28622         (zero): Remove variable.
28623         (minus_zero): New variable.
28624         (main): Use minus_zero instead of -zero.
28625         * modules/floorl-tests (Depends-on): Add float.
28626
28627         * tests/test-roundl.c: Include <float.h>.
28628         (zero): Remove variable.
28629         (minus_zero): New variable.
28630         (main): Use minus_zero instead of -zero.
28631         * modules/roundl-tests (Depends-on): Add float.
28632
28633         * tests/test-truncl.c: Include <float.h>.
28634         (zero): Remove variable.
28635         (minus_zero): New variable.
28636         (main): Use minus_zero instead of -zero.
28637         * modules/truncl-tests (Depends-on): Add float.
28638
28639         * tests/test-frexpl.c (zero): Remove variable.
28640         (minus_zero): New variable.
28641         (main): Use minus_zero instead of -zero.
28642         * modules/frexpl-tests (Depends-on): Add float.
28643
28644         * tests/test-isnan.c (zerol): Remove variable.
28645         (minus_zerol): New variable.
28646         (test_long_double): Use minus_zerol instead of -zerol.
28647         * modules/isnan-tests (Depends-on): Add float.
28648
28649         * tests/test-isnanl.h (zero): Remove variable.
28650         (minus_zero): New variable.
28651         (main): Use minus_zero instead of -zero.
28652         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28653         * modules/isnanl-tests (Depends-on): Add float.
28654
28655         * tests/test-ldexpl.c (zero): Remove variable.
28656         (minus_zero): New variable.
28657         (main): Use minus_zero instead of -zero.
28658         * modules/ldexpl-tests (Depends-on): Add float.
28659
28660         * tests/test-snprintf-posix.h (zerol): Remove variable.
28661         (minus_zerol): New variable.
28662         (test_function): Use minus_zerol instead of -zerol.
28663         * modules/snprintf-posix-tests (Depends-on): Add float.
28664         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28665
28666         * tests/test-sprintf-posix.h (zerol): Remove variable.
28667         (minus_zerol): New variable.
28668         (test_function): Use minus_zerol instead of -zerol.
28669         * modules/sprintf-posix-tests (Depends-on): Add float.
28670         * modules/vsprintf-posix-tests (Depends-on): Add float.
28671
28672         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28673         (minus_zerol): New variable.
28674         (test_function): Use minus_zerol instead of -zerol.
28675         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28676
28677         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28678         (minus_zerol): New variable.
28679         (test_function): Use minus_zerol instead of -zerol.
28680         * modules/vasprintf-posix-tests (Depends-on): Add float.
28681
28682 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28683
28684         * MODULES.html.sh (Support for building documentation): Mention
28685         pmccabe2html.  Sort entries.
28686
28687         Add pmccabe2html module, from gnupdf.
28688         * build-aux/pmccabe.css: New file.
28689         * build-aux/pmccabe2html: New file.
28690         * m4/pmccabe2html.m4: New file.
28691         * modules/pmccabe2html: New file.
28692
28693 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28694
28695         flock: new module
28696         * MODULES.html.sh: Add to list of modules.
28697         * lib/flock.c: flock implementation for Windows and Unix systems
28698         which have fcntl.
28699         * doc/glibc-functions/flock.texi: Update documentation.
28700         * lib/sys_file.in.h: <sys/file.h> header file.
28701         * m4/flock.m4: M4 macros.
28702         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28703         * modules/flock: flock module.
28704         * modules/flock-tests: flock tests module.
28705         * modules/sys_file: sys/file.h module.
28706         * tests/test-flock.c: test suite for flock.
28707
28708 2008-10-06  Jim Meyering  <meyering@redhat.com>
28709
28710         bootstrap: check for LT_INIT more portably still ;-)
28711         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28712         Spotted by Bruno Haible.
28713
28714 2008-10-06  Eric Blake  <ebb9@byu.net>
28715
28716         test-signbit: avoid tripping Irix cc bug on -0.0L
28717         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28718         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28719         entire testsuite consistent and avoids an Irix 6.2 bug.
28720
28721 2008-10-05  Bruno Haible  <bruno@clisp.org>
28722             Jim Meyering  <jim@meyering.net>
28723
28724         Add an option for ignoring EPIPE during close_stdout.
28725         * lib/closeout.h: Include <stdbool.h>.
28726         (close_stdout_set_ignore_EPIPE): New declaration.
28727         * lib/closeout.c: Include <stdbool.h>.
28728         (ignore_EPIPE): New variable.
28729         (close_stdout_set_ignore_EPIPE): New function.
28730         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28731         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28732         failure.
28733         * modules/closeout (Depends-on): Add stdbool.
28734
28735 2008-10-05  Bruno Haible  <bruno@clisp.org>
28736
28737         * modules/accept: New file.
28738         * modules/bind: New file.
28739         * modules/connect: New file.
28740         * modules/getpeername: New file.
28741         * modules/getsockname: New file.
28742         * modules/getsockopt: New file.
28743         * modules/listen: New file.
28744         * modules/recv: New file.
28745         * modules/recvfrom: New file.
28746         * modules/send: New file.
28747         * modules/sendto: New file.
28748         * modules/setsockopt: New file.
28749         * modules/socket: New file.
28750         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28751         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28752         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28753         the particular module is requested. Add a link warning when the
28754         particular module is not requested.
28755         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28756         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28757         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28758         the particular module is requested.
28759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28760         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28761         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28762         * modules/sys_socket (Depends-on): Add link-warning.
28763         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28764         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28765         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28766         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28767         GL_LINK_WARNING.
28768         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28769         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28770         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28771         * doc/posix-functions/getpeername.texi: Mention the new module
28772         'getpeername'.
28773         * doc/posix-functions/getsockname.texi: Mention the new module
28774         'getsockname'.
28775         * doc/posix-functions/getsockopt.texi: Mention the new module
28776         'getsockopt'.
28777         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28778         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28779         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28780         * doc/posix-functions/send.texi: Mention the new module 'send'.
28781         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28782         * doc/posix-functions/setsockopt.texi: Mention the new module
28783         'setsockopt'.
28784         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28785         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28786         listen, connect, accept.
28787         * modules/select-tests (Depends-on): Likewise.
28788
28789 2008-10-05  Bruno Haible  <bruno@clisp.org>
28790
28791         * lib/winsock.c (strerror): Remove unused #undef.
28792         (rpl_close): Remove unused local variable.
28793
28794         * modules/sys_socket (Depends-on); Add errno.
28795
28796 2008-10-05  Bruno Haible  <bruno@clisp.org>
28797
28798         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28799         (select): Add a link warning when the 'select' module is not used.
28800         * modules/sys_select (Depends-on): Add link-warning.
28801         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28802         Suggested by Paolo Bonzini.
28803
28804 2008-10-05  Jim Meyering  <meyering@redhat.com>
28805
28806         bootstrap: check for LT_INIT more portably
28807         * build-aux/bootstrap: Avoid using grep -E, since it's not
28808         portable enough.  Suggestion from Bruno Haible.
28809
28810 2008-10-05  Bruno Haible  <bruno@clisp.org>
28811
28812         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28813         as being fixed by gnulib.
28814
28815 2008-10-05  Bruno Haible  <bruno@clisp.org>
28816
28817         * modules/select-tests: New file, mostly copied from
28818         modules/sys_select-tests.
28819         * tests/test-select.c: New file, mostly copied from
28820         tests/test-sys_select.c.
28821         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28822         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28823         (Makefile.am): Remove test_sys_select_LDADD.
28824
28825         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28826         to an undefined symbol, for an error message.
28827         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28828         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28829         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28830         winsock-select.c here.
28831         * modules/sys_select (Files): Remove lib/winsock-select.c.
28832         (Depends-on): Remove alloca.
28833         (Makefile.am): Substitute GNULIB_SELECT.
28834         * modules/select: New file.
28835         * doc/posix-functions/select.texi: Update.
28836
28837 2008-10-05  Bruno Haible  <bruno@clisp.org>
28838
28839         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28840         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28841         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28842         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28843         getdtablesize.
28844         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28845         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28846
28847 2008-10-05  Bruno Haible  <bruno@clisp.org>
28848
28849         * modules/getdtablesize-tests: New file.
28850         * tests/test-getdtablesize.c: New file.
28851
28852         New module 'getdtablesize'.
28853         * lib/unistd.in.h (getdtablesize): New declaration.
28854         * lib/getdtablesize.c: New file.
28855         * m4/getdtablesize.m4: New file.
28856         * modules/getdtablesize: New file.
28857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28858         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28859         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28860         HAVE_GETDTABLESIZE.
28861         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28862
28863 2008-10-05  Bruno Haible  <bruno@clisp.org>
28864
28865         * modules/sched (Makefile.am): Fix typo.
28866         Reported by Simon Josefsson.
28867
28868 2008-10-05  Jim Meyering  <meyering@redhat.com>
28869
28870         bootstrap: check for LT_INIT, too
28871         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28872         are deprecated.  Suggestion from Ralf Wildenhues.
28873
28874 2008-10-05  Bruno Haible  <bruno@clisp.org>
28875
28876         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28877         overriding them by ours.
28878         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28879
28880 2008-10-05  Jim Meyering  <meyering@redhat.com>
28881
28882         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28883         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28884         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28885
28886 2008-10-04  Bruno Haible  <bruno@clisp.org>
28887
28888         * modules/dup2 (License): Change to LGPLv2+.
28889         * modules/sleep (License): Likewise.
28890         * modules/perror (License): Likewise.
28891         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28892         Blake.
28893         * modules/signal (License): Likewise.
28894         * modules/sigprocmask (License): Likewise.
28895         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28896         Meyering.
28897
28898 2008-10-04  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28901         Reported by Rainer Tammer <tammer@tammer.net>.
28902
28903 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28904             Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28907         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28908         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28909
28910 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28911
28912         filevercmp: new module
28913         * lib/filevercmp.h: New function filevercmp comparing version strings.
28914         * lib/filevercmp.c: Implementation of filevercmp function.
28915         * modules/filevercmp: Module metadata.
28916         * tests/test-filevercmp.c: Unit test for new module.
28917         * modules/filevercmp-tests: Unit test metadata.
28918         * MODULES.html.sh: Add filevercmp module.
28919
28920 2008-10-03  Bruno Haible  <bruno@clisp.org>
28921
28922         * lib/c-ctype.h: Add comment.
28923         Reported by Jim Meyering.
28924
28925 2008-10-02  Bruno Haible  <bruno@clisp.org>
28926
28927         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28928
28929 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28930
28931         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28932         name of bootstrap.conf accordingly.
28933
28934 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28935
28936         * build-aux/bootstrap: Install git-merge-changelog configuration
28937         items into .gitconfig if needed.
28938
28939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28940
28941         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28942         git repository, and initialize/update it accordingly.
28943
28944 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28945
28946         * modules/fsync-tests: New file.
28947         * tests/test-fsync.c: New file.
28948
28949         New module 'fsync'.
28950         * lib/fsync.c: New file.
28951         * m4/fsync.m4: New file.
28952         * modules/fsync: New file.
28953         * lib/unistd.in.h (fsync): New declaration.
28954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28955         GNULIB_FSYNC and HAVE_FSYNC.
28956         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28957         * MODULES.html.sh (posix_functions): Add fsync.
28958         * doc/posix-functions/fsync.texi: Mention the new module.
28959
28960 2008-10-02  Jim Meyering  <meyering@redhat.com>
28961
28962         fts.c: sync with similar code from coreutils' remove.c
28963         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28964         Guard also with "#if defined __linux__", since for now at least,
28965         this code is Linux-kernel-specific.
28966
28967 2008-10-02  Jim Meyering  <meyering@redhat.com>
28968
28969         fts: bug fixes
28970         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28971         Include <sys/vfs.h>, not <sys/statfs.h>.
28972
28973         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28974         Include <sys/vfs.h>, not <sys/statfs.h>.
28975
28976 2008-10-01  Bruno Haible  <bruno@clisp.org>
28977
28978         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28980         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28981         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28982         * doc/posix-functions/posix_spawnp.texi: Likewise.
28983         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28984         whether posix_spawn actually works.
28985         * m4/pipe.m4 (gl_PIPE): Likewise.
28986         * modules/execute (Files): Add m4/posix_spawn.m4.
28987         * modules/pipe (Files): Add m4/posix_spawn.m4.
28988         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28989
28990 2008-10-01  Jim Meyering  <meyering@redhat.com>
28991
28992         remove trailing spaces
28993         * NEWS: Likewise.
28994         * lib/poll.c (poll): Likewise.
28995         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28996         * lib/winsock.c (rpl_close): Likewise.
28997         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28998         * modules/yield: Likewise.
28999         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29000         * tests/test-sys_select.c (connect_to_socket): Likewise.
29001
29002         fts.c: adjust a new interface to be more generally useful
29003         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29004         (fts_build): Adjust caller.
29005
29006 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29007
29008         * modules/cond-tests: New file.
29009         * tests/test-cond.c: New file.
29010
29011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29012             Bruno Haible  <bruno@clisp.org>
29013
29014         * modules/cond (Dependencies): Add errno, time.
29015         * lib/glthread/cond.h: Include <time.h>.
29016         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29017         across platforms.
29018
29019 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29020             Bruno Haible  <bruno@clisp.org>
29021
29022         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29023
29024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29025             Bruno Haible  <bruno@clisp.org>
29026
29027         * modules/tls-tests (Depends-on): Add thread, yield.
29028         (configure.ac): Remove all checks.
29029         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29030         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29031         gl_thread_self): Remove definitions. Include glthread/thread.h and
29032         glthread/yield.h instead.
29033         (test_tls): Pass an additional NULL argument to gl_thread_join.
29034
29035 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29036             Bruno Haible  <bruno@clisp.org>
29037
29038         * modules/lock-tests (Depends-on): Add thread, yield.
29039         (configure.ac): Remove all checks.
29040         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29041         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29042         gl_thread_self): Remove definitions. Include glthread/thread.h and
29043         glthread/yield.h instead.
29044         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29045         additional NULL argument to gl_thread_join.
29046
29047 2008-09-30  Bruno Haible  <bruno@clisp.org>
29048
29049         Fix the Win32 implementation of the 'thread' module.
29050         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29051         pointer type.
29052         (gl_thread_self): Invoke gl_thread_self_func.
29053         (gl_thread_self_func): New declaration.
29054         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29055         (do_init_self_key, init_self_key): New functions.
29056         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29057         Remove some fields.
29058         (running_threads, running_lock): Remove variables.
29059         (get_current_thread_handle): New function.
29060         (gl_thread_self_func, wrapper_func, glthread_create_func,
29061         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29062         simplified.
29063
29064 2008-09-30  Bruno Haible  <bruno@clisp.org>
29065
29066         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29067         files.
29068
29069 2008-09-30  Jim Meyering  <meyering@redhat.com>
29070
29071         fts.m4: correct the test for statfs.f_type
29072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29073         when checking for statfs.f_type.
29074
29075 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29076
29077         tests: avoid some compiler warnings
29078         * tests/test-memchr.c (main): Pass NULL indirectly.
29079         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29080
29081 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29082
29083         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29084         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29085         exactly specified dayshifts.
29086         (dayshift): New rule.
29087         (rel): Add dayshift.
29088         (relative_time_table) [tomorrow, yesterday, today, now]:
29089         Use tDAY_SHIFT in place of tDAY_UNIT.
29090         * tests/test-getdate.c: Add tests for now-disallowed countable
29091         dayshifts, e.g., "4 yesterday ago".
29092
29093 2008-09-29  Bruno Haible  <bruno@clisp.org>
29094
29095         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29096         * tests/test-posix_spawn1.in.sh: Renamed from
29097         tests/test-posix_spawn.in.sh.
29098         * tests/test-posix_spawn2.c: New file.
29099         * tests/test-posix_spawn2.in.sh: New file.
29100         * modules/posix_spawnp-tests (Files): Update.
29101         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29102
29103 2008-09-29  Bruno Haible  <bruno@clisp.org>
29104
29105         Propagate effects of putenv/setenv/unsetenv to child processes.
29106         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29107         * lib/pipe.c (create_pipe): Likewise.
29108
29109 2008-09-29  Bruno Haible  <bruno@clisp.org>
29110
29111         Enable use of shell scripts as executables in mingw.
29112         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29113         run the program as a shell script.
29114         * lib/pipe.c (create_pipe): Likewise.
29115         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29116         resulting array.
29117
29118 2008-09-29  Eric Blake  <ebb9@byu.net>
29119
29120         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29121
29122 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29123
29124         * doc/posix-functions/accept.texi: Update mingw problems.
29125         * doc/posix-functions/bind.texi: Update mingw problems.
29126         * doc/posix-functions/close.texi: Update mingw problems.
29127         * doc/posix-functions/connect.texi: Update mingw problems.
29128         * doc/posix-functions/getpeername.texi: Update mingw problems.
29129         * doc/posix-functions/getsockname.texi: Update mingw problems.
29130         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29131         * doc/posix-functions/ioctl.texi: Update mingw problems.
29132         * doc/posix-functions/listen.texi: Update mingw problems.
29133         * doc/posix-functions/recv.texi: Update mingw problems.
29134         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29135         * doc/posix-functions/select.texi: Update mingw problems.
29136         * doc/posix-functions/send.texi: Update mingw problems.
29137         * doc/posix-functions/sendto.texi: Update mingw problems.
29138         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29139         * doc/posix-functions/socket.texi: Update mingw problems.
29140
29141 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29142             Bruno Haible  <bruno@clisp.org>
29143
29144         * lib/sys_select.in.h: Include sys/time.h.
29145         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29146         * modules/sys_select: Depend on sys_time.
29147         * tests/test-sys_select.c: Test that sys/select.h defines struct
29148         timeval fully.
29149
29150 2008-09-29  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29153         * lib/sys_select.in.h: Likewise.
29154
29155 2008-09-29  Bruno Haible  <bruno@clisp.org>
29156
29157         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29158
29159 2008-09-29  Bruno Haible  <bruno@clisp.org>
29160
29161         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29162         Set LIBSOCKET instead of augmenting LIBS.
29163         * modules/sockets (Link): New section.
29164         * modules/sockets-tests (test_sockets_LDADD): New variable.
29165         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29166         * modules/poll-tests (test_poll_LDADD): New variable.
29167         * NEWS: Document the change.
29168
29169 2008-09-29  Bruno Haible  <bruno@clisp.org>
29170
29171         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29172         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29173         ARPA_INET_H directly.
29174         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29175
29176 2008-09-28  Bruno Haible  <bruno@clisp.org>
29177
29178         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29179         from gl_HEADER_SYS_SOCKET.
29180         (gl_HEADER_SYS_SOCKET): Invoke it.
29181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29182
29183 2008-09-28  Bruno Haible  <bruno@clisp.org>
29184
29185         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29186         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29187         Needed on OSF/1 4.0.
29188
29189 2008-09-28  Bruno Haible  <bruno@clisp.org>
29190
29191         Override open more carefully.
29192         * lib/open.c (orig_open): New function.
29193         (rpl_open): Use orig_open instead of open.
29194         * lib/fcntl.in.h: Add special invocation convention.
29195         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29196         (gl_FUNC_OPEN): Invoke it.
29197
29198         Override freopen more carefully.
29199         * lib/freopen.c (orig_freopen): New function.
29200         (rpl_freopen): Use orig_freopen instead of freopen.
29201         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29202         (gl_FUNC_FREOPEN): Invoke it.
29203
29204         Override fopen more carefully.
29205         * lib/fopen.c (orig_fopen): New function.
29206         (rpl_fopen): Use orig_fopen instead of fopen.
29207         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29208         (gl_FUNC_FOPEN): Invoke it.
29209         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29210
29211 2008-09-28  Bruno Haible  <bruno@clisp.org>
29212
29213         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29214         SIGPIPE.
29215
29216 2008-09-28  Bruno Haible  <bruno@clisp.org>
29217
29218         * tests/test-sigaction.c (handler, main): Disable the check whether
29219         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29220         glibc systems with LinuxThreads.
29221
29222 2008-09-28  Bruno Haible  <bruno@clisp.org>
29223
29224         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29225
29226         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29227         with AIX xlc.
29228         * lib/fcntl.in.h (open): Likewise.
29229         Reported by Rainer Tammer <tammer@tammer.net>.
29230
29231 2008-09-28  Bruno Haible  <bruno@clisp.org>
29232
29233         * modules/posix_spawnp-tests: New file.
29234         * tests/test-posix_spawn.c: New file.
29235         * tests/test-posix_spawn.in.sh: New file.
29236
29237         New module 'posix_spawnp'.
29238         * modules/posix_spawnp: New file.
29239         * lib/spawnp.c: New file, from GNU libc with modifications.
29240         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29241
29242         New module 'posix_spawn'.
29243         * modules/posix_spawn: New file.
29244         * lib/spawn.c: New file, from GNU libc with modifications.
29245         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29246
29247         New module 'posix_spawnattr_destroy'.
29248         * modules/posix_spawnattr_destroy: New file.
29249         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29250         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29251         module.
29252
29253         New module 'posix_spawnattr_setsigmask'.
29254         * modules/posix_spawnattr_setsigmask: New file.
29255         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29256         modifications.
29257         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29258         new module.
29259
29260         New module 'posix_spawnattr_getsigmask'.
29261         * modules/posix_spawnattr_getsigmask: New file.
29262         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29263         modifications.
29264         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29265         new module.
29266
29267         New module 'posix_spawnattr_setsigdefault'.
29268         * modules/posix_spawnattr_setsigdefault: New file.
29269         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29270         modifications.
29271         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29272         new module.
29273
29274         New module 'posix_spawnattr_getsigdefault'.
29275         * modules/posix_spawnattr_getsigdefault: New file.
29276         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29277         modifications.
29278         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29279         new module.
29280
29281         New module 'posix_spawnattr_setschedpolicy'.
29282         * modules/posix_spawnattr_setschedpolicy: New file.
29283         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29284         modifications.
29285         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29286         new module.
29287
29288         New module 'posix_spawnattr_getschedpolicy'.
29289         * modules/posix_spawnattr_getschedpolicy: New file.
29290         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29291         modifications.
29292         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29293         new module.
29294
29295         New module 'posix_spawnattr_setschedparam'.
29296         * modules/posix_spawnattr_setschedparam: New file.
29297         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29298         modifications.
29299         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29300         new module.
29301
29302         New module 'posix_spawnattr_getschedparam'.
29303         * modules/posix_spawnattr_getschedparam: New file.
29304         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29305         modifications.
29306         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29307         new module.
29308
29309         New module 'posix_spawnattr_setpgroup'.
29310         * modules/posix_spawnattr_setpgroup: New file.
29311         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29312         modifications.
29313         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29314         module.
29315
29316         New module 'posix_spawnattr_getpgroup'.
29317         * modules/posix_spawnattr_getpgroup: New file.
29318         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29319         modifications.
29320         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29321         module.
29322
29323         New module 'posix_spawnattr_setflags'.
29324         * modules/posix_spawnattr_setflags: New file.
29325         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29326         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29327         module.
29328
29329         New module 'posix_spawnattr_getflags'.
29330         * modules/posix_spawnattr_getflags: New file.
29331         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29332         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29333         module.
29334
29335         New module 'posix_spawnattr_init'.
29336         * modules/posix_spawnattr_init: New file.
29337         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29338         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29339         module.
29340
29341         New module 'posix_spawn_file_actions_destroy'.
29342         * modules/posix_spawn_file_actions_destroy: New file.
29343         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29344         modifications.
29345         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29346         the new module.
29347
29348         New module 'posix_spawn_file_actions_addopen'.
29349         * modules/posix_spawn_file_actions_addopen: New file.
29350         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29351         modifications.
29352         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29353         the new module.
29354
29355         New module 'posix_spawn_file_actions_adddup2'.
29356         * modules/posix_spawn_file_actions_adddup2: New file.
29357         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29358         modifications.
29359         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29360         the new module.
29361
29362         New module 'posix_spawn_file_actions_addclose'.
29363         * modules/posix_spawn_file_actions_addclose: New file.
29364         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29365         modifications.
29366         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29367         the new module.
29368
29369         New module 'posix_spawn_file_actions_init'.
29370         * modules/posix_spawn_file_actions_init: New file.
29371         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29372         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29373         new module.
29374
29375         New module 'posix_spawn-internal'.
29376         * modules/posix_spawn-internal: New file.
29377         * lib/spawn_int.h: New file, from GNU libc with modifications.
29378         * lib/spawni.c: New file, from GNU libc with modifications.
29379         * m4/posix_spawn.m4: New file.
29380
29381         New module 'spawn'.
29382         * modules/spawn: New file.
29383         * lib/spawn.in.h: New file, from GNU libc with modifications.
29384         * m4/spawn_h.m4: New file.
29385         * doc/posix-headers/spawn.texi: Mention the new module.
29386
29387 2008-09-28  Bruno Haible  <bruno@clisp.org>
29388
29389         * modules/sched-tests: New file.
29390         * tests/test-sched.c: New file.
29391
29392         New module 'sched'.
29393         * modules/sched: New file.
29394         * lib/sched.in.h: New file.
29395         * m4/sched_h.m4: New file.
29396         * doc/posix-headers/sched.texi: Mention the new module.
29397
29398 2008-09-27  Eric Blake  <ebb9@byu.net>
29399
29400         Fix previous patch, and tweak references to $0.
29401         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29402         (func_version, func_gnulib_dir): Don't call this program
29403         gnulib-tool.
29404         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29405         with using $0 in function.
29406         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29407         (func_fatal_error): Reuse the name the user invoked us with.
29408
29409 2008-09-27  Bruno Haible  <bruno@clisp.org>
29410
29411         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29412         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29413         (gl_ICONV_H): Not here.
29414         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29415         instead of assigning ICONV_H directly.
29416
29417         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29419         WCHAR_H directly.
29420
29421 2008-09-27  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29424         * modules/arpa_inet (Depends-on): Add link-warning.
29425         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29426         * modules/unistd (Makefile.am): Likewise.
29427
29428 2008-09-26  Bruno Haible  <bruno@clisp.org>
29429
29430         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29431         variables.
29432         (func_version): Essentially copied from gnulib-tool.
29433         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29434         func_readlink): Copied from gnulib-tool.
29435
29436 2008-09-26  Bruno Haible  <bruno@clisp.org>
29437
29438         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29439         invoking git-version-gen.
29440
29441 2008-09-26  Bruno Haible  <bruno@clisp.org>
29442
29443         * posix-modules: Update to directory names changed on 2008-01-19.
29444         Remove commas in output before splitting into words. No more need to
29445         avoid 'ftruncate' since 2007-02-19.
29446
29447 2008-09-26  Bruno Haible  <bruno@clisp.org>
29448
29449         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29450
29451 2008-09-26  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29454         * modules/fwriteerror (Depends-on): Add errno.
29455
29456 2008-09-26  Bruno Haible  <bruno@clisp.org>
29457
29458         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29459         * tests/test-vc-list-files-cvs.sh: Likewise.
29460
29461 2008-09-26  Bruno Haible  <bruno@clisp.org>
29462
29463         * doc/posix-headers/sys_resource.texi: Reorder items.
29464
29465 2008-09-26  Jim Meyering  <meyering@redhat.com>
29466
29467         fts: tweak inode comparison function
29468         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29469         inode numbers, as documented.
29470
29471         fts: sort dirent entries on inode number before traversing
29472         This avoids a quadratic, seek-related performance penalty when
29473         operating on a directory containing many entries (measurable at 10k;
29474         3.5 hours at 2 million entries with a cold cache) on certain types
29475         of file systems, including ext3 and ext4, but not tmpfs.
29476         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29477         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29478         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29479         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29480         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29481         (fts_build): Set the stat.st_ino member from D_INO.
29482         If it is likely to be useful, sort dirent entries on inode number.
29483
29484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29485         and the struct statfs.f_type member.
29486         * modules/fts (Depends-on): Add d-ino.
29487
29488 2008-09-26  Bruno Haible  <bruno@clisp.org>
29489
29490         * modules/sigpipe-die (Depends-on): Add sigpipe.
29491
29492         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29493         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29494         and GNULIB_STDIO_H_SIGPIPE are set.
29495         * lib/stdio-write.c: New file.
29496         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29497         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29498         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29499         REPLACE_STDIO_WRITE_FUNCS.
29500         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29501         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29502         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29503         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29504         * modules/stdio (Files): Add lib/stdio-write.c.
29505         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29508         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29509         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29510         REPLACE_FPRINTF_POSIX.
29511         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29512         REPLACE_PRINTF_POSIX.
29513         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29514         REPLACE_VFPRINTF_POSIX.
29515         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29516         REPLACE_VPRINTF_POSIX.
29517         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29518         SIGPIPE issue.
29519         * doc/posix-functions/fputc.texi: Likewise.
29520         * doc/posix-functions/fputs.texi: Likewise.
29521         * doc/posix-functions/fwrite.texi: Likewise.
29522         * doc/posix-functions/printf.texi: Likewise.
29523         * doc/posix-functions/putc.texi: Likewise.
29524         * doc/posix-functions/putchar.texi: Likewise.
29525         * doc/posix-functions/puts.texi: Likewise.
29526         * doc/posix-functions/vfprintf.texi: Likewise.
29527         * doc/posix-functions/vprintf.texi: Likewise.
29528
29529         * modules/safe-write (Depends-on): Add write.
29530
29531         * modules/sigpipe-tests: New file.
29532         * tests/test-sigpipe.c: New file.
29533         * tests/test-sigpipe.sh: New file.
29534
29535         * modules/write: New file.
29536         * lib/unistd.in.h: Include <sys/types.h>.
29537         (write): New declaration.
29538         * lib/write.c: New file.
29539         * m4/write.m4: New file.
29540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29541         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29542         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29543         GNULIB_WRITE, REPLACE_WRITE.
29544         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29545         and the SIGPIPE issue.
29546
29547         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29548         (raise): New declaration.
29549         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29550         (ext_signal): New function.
29551         (rpl_raise): New function.
29552         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29553         GNULIB_SIGNAL_H_SIGPIPE.
29554         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29555         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29556
29557         * modules/sigpipe: New file.
29558         * m4/sigpipe.m4: New file.
29559
29560 2008-09-25  Derek Price  <derek@ximbiot.com>
29561             Bruno Haible  <bruno@clisp.org>
29562
29563         * gnulib-tool (func_import): Report all license incompatibilities, not
29564         just the first one.
29565
29566 2008-09-25  Bruno Haible  <bruno@clisp.org>
29567
29568         * gnulib-tool (func_import): When computing the edits, consider not
29569         only the Makefile.ams that exist but also those that will be generated.
29570
29571 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29572
29573         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29574         fixes gnulib-tool --test warning about duplicate dependency.
29575
29576 2008-09-25  Bruno Haible  <bruno@clisp.org>
29577
29578         * gnulib-tool: Don't ask the user to perform edits in the generated
29579         Makefile.ams.
29580         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29581         apply to the Makefile.am being generated.
29582         (func_emit_tests_Makefile_am): Execute edits that apply to the
29583         Makefile.am being generated.
29584         (func_import): Setup list of Makefile.am edits before emitting the
29585         Makefile.ams, not at the end.
29586         (func_create_testdir): Update.
29587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29588
29589 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29590
29591         * gnulib-tool (func_import): Store the --tests-base option in the
29592         comment in gnulib-cache.m4.
29593
29594 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29595
29596         * NEWS: Document increased portability that sys_select now provides.
29597
29598         * lib/sys_select.in.h: Install select wrapper.
29599         * lib/sys_socket.in.h: Use more descriptive name when there is no
29600         select wrapper.
29601         * lib/winsock-select.c: New.
29602         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29603         Require gl_HEADER_SYS_SOCKET.
29604         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29605         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29606         * tests/test-sys_select.c: Add functional tests.
29607
29608 2008-09-24  Eric Blake  <ebb9@byu.net>
29609
29610         open, fopen: close fd leak in last patch
29611         * lib/open.c (rpl_open): Close fd before returning error.
29612         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29613         * doc/posix-functions/open.texi (open): Document that Irix also
29614         has the bug.
29615         * doc/posix-functions/fopen.texi (fopen): Likewise.
29616         Reported by Paolo Bonzini.
29617
29618 2008-09-24  Bruno Haible  <bruno@clisp.org>
29619
29620         Ensure that a filename ending in a slash cannot be used to access a
29621         non-directory.
29622         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29623         to check whether it's really a directory.
29624         * lib/fopen.c: Include fcntl.h, unistd.h.
29625         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29626         and fdopen().
29627         * modules/fopen (Depends-on): Add unistd.
29628         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29629         * tests/test-fopen.c (main): Likewise.
29630         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29631         * doc/posix-functions/fopen.texi: Likewise.
29632         Reported by Eric Blake.
29633
29634 2008-09-23  Eric Blake  <ebb9@byu.net>
29635
29636         c-stack: avoid compiler optimizations when provoking overflow
29637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29638         recursion harder to optimize, to ensure a stack overflow occurs.
29639         * tests/test-c-stack.c (recurse): Likewise.
29640         Borrowed from libsigsegv.
29641
29642         c-stack: work around Irix sigaltstack bug
29643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29644         whether sigaltstack uses wrong end of stack_t (copied in part from
29645         libsigsegv).
29646         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29647         Irix bug, without requiring an over-allocation.
29648         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29649         bug.
29650
29651         fopen: document mingw bug on directories
29652         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29653         not allowing a stream visiting a directory, even though reading
29654         from such a stream is not portable.
29655
29656 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29657
29658         * lib/poll.c: Rewrite.
29659         * modules/poll: Depend on alloca.
29660
29661 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29662
29663         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29664         instead define prototypes for a full set of wrappers.  Ensure
29665         that Cygwin does not use the compatibility code, which is only
29666         for MinGW.
29667         * lib/winsock.c: New.
29668         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29669         * modules/sys_socket: Add lib/winsock.c.
29670
29671         * modules/poll-tests: Add errno and perror.
29672         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29673
29674 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29675
29676         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29677
29678 2008-09-23  Bruno Haible  <bruno@clisp.org>
29679
29680         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29681         * doc/glibc-functions/*: Likewise.
29682
29683 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29684
29685         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29686         success.
29687
29688 2008-09-22  Eric Blake  <ebb9@byu.net>
29689             Bruno Haible  <bruno@clisp.org>
29690
29691         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29692         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29693         supply %A but mishandle pseudo-NaN.
29694         Reported by Simon Josefsson.
29695
29696 2008-09-21  Bruno Haible  <bruno@clisp.org>
29697
29698         * tests/test-lock.c (main): Tweak skip message.
29699         * tests/test-tls.c (main): Likewise.
29700
29701 2008-09-21  Bruno Haible  <bruno@clisp.org>
29702
29703         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29704         whether 'struct sigaction' has sa_sigaction here...
29705         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29706         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29707
29708 2008-09-21  Bruno Haible  <bruno@clisp.org>
29709
29710         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29711         section.
29712         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29713         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29714         the new section.
29715         (Support for obsolete systems lacking POSIX:2001): New section.
29716         (String handling <string.h>): Move strdup to the new section.
29717         Suggested by Simon Josefsson and Paolo Bonzini.
29718
29719 2008-09-21  Bruno Haible  <bruno@clisp.org>
29720
29721         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29722         exponents in %e and %g results on 'long double'. Needed for mingw's
29723         improved *printf functions.
29724         * tests/test-vasprintf-posix.c (test_function): Likewise.
29725         * tests/test-snprintf-posix.h (test_function): Likewise.
29726         * tests/test-sprintf-posix.h (test_function): Likewise.
29727         Reported by Eric Blake.
29728
29729 2008-09-21  Bruno Haible  <bruno@clisp.org>
29730
29731         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29732         * tests/test-sprintf-posix.h (test_function): Likewise.
29733
29734 2008-09-21  Bruno Haible  <bruno@clisp.org>
29735
29736         * modules/getpass (Depends-on): Add strdup-posix.
29737
29738         New module 'strdup-posix'.
29739         * modules/strdup-posix: New file.
29740         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29741         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29743         REPLACE_STRDUP.
29744         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29745         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29747         strdup-posix.
29748
29749         * modules/strdup (Depends-on): Remove malloc-posix.
29750
29751 2008-09-20  Bruno Haible  <bruno@clisp.org>
29752
29753         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29754         Wildenhues.
29755
29756 2008-09-20  Bruno Haible  <bruno@clisp.org>
29757
29758         Ensure that wint_t gets defined on IRIX 5.3.
29759         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29760         * lib/wctype.in.h (wint_t): Likewise.
29761         (__wctype_wint_t): Remove type.
29762         (isw*): Use wint_t instead of __wctype_wint_t.
29763         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29764         * modules/wchar (Files): Add m4/wint_t.m4.
29765         (Makefile.am): Substitute HAVE_WINT_T.
29766         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29767         * tests/test-wctype.c: Check that wint_t is defined.
29768         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29769         * doc/posix-headers/wctype.texi: Likewise.
29770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29771
29772 2008-09-18  Bruno Haible  <bruno@clisp.org>
29773
29774         * gnulib-tool (func_exit): Update comment.
29775
29776 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29777
29778         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29779         assumes strdup exists and does not depend on strdup to return
29780         ENOMEM on out of memory conditions.
29781
29782 2008-09-18  Bruno Haible  <bruno@clisp.org>
29783
29784         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
29785         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29786         digits for the exponent.
29787
29788 2008-09-18  Jim Meyering  <meyering@redhat.com>
29789             Bruno Haible  <bruno@clisp.org>
29790
29791         * lib/vasnprintf.c (decimal_point_char): Define also if
29792         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29793
29794 2008-09-16  Bruno Haible  <bruno@clisp.org>
29795         and Eric Blake  <ebb9@byu.net>
29796
29797         vasnprintf: support Irix 5.3
29798         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29799         that mishandle long double infinity.
29800         Reported by Tom G. Christensen.
29801
29802 2008-09-16  Bruno Haible  <bruno@clisp.org>
29803
29804         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29805         Solaris 9.
29806         * doc/glibc-functions/alphasort.texi: Likewise.
29807         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29808
29809 2008-09-16  Jim Meyering  <meyering@redhat.com>
29810
29811         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29812         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29813         a umask modification leak out of a subshell.  Otherwise, the
29814         opensolaris /bin/sh would be accepted and thus cause unwarranted
29815         failures in the coreutils test suite.
29816
29817 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29818
29819         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29820         to succeed.
29821
29822 2008-09-16  Jim Meyering  <meyering@redhat.com>
29823
29824         avoid spurious test failure when library is built without ACL support
29825         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29826         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29827         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29828         * tests/test-copy-acl.sh: Likewise.
29829
29830 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29831
29832         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29833         based on character occurrence counts.
29834
29835 2008-09-15  Eric Blake  <ebb9@byu.net>
29836
29837         tests: avoid some compiler warnings
29838         * tests/test-memchr.c (main): Pass NULL indirectly.
29839         * tests/test-closein.c (main): Avoid unused variable.
29840
29841 2008-09-15  Bruno Haible  <bruno@clisp.org>
29842
29843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29844         are missing on OpenBSD 4.0 individually.
29845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29846
29847 2008-09-15  Bruno Haible  <bruno@clisp.org>
29848
29849         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29850         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29851         * doc/posix-functions/perror.texi: Likewise.
29852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29853         is missing.
29854         Reported by Eric Blake.
29855
29856         * lib/errno.in.h: Use replacement values >= 2000.
29857         Reported by Eric Blake.
29858
29859 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29860
29861         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29862         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29863         limit.
29864         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29865         compareseq was aborted.
29866
29867 2008-09-14  Bruno Haible  <bruno@clisp.org>
29868
29869         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29870         yvec_edit_count.
29871         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29872         (fstrcmp_bounded): Simplify result computation accordingly.
29873
29874 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29875
29876         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29877         (fstrcmp): Define in terms of fstrcmp_bounded.
29878         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29879         lower_bound argument.
29880         Return quickly if the result is certainly < lower_bound.
29881         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29882
29883 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29884
29885         * lib/diffseq.h (EARLY_ABORT): New macro.
29886         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29887         evaluates to true.
29888
29889 2008-09-14  Bruno Haible  <bruno@clisp.org>
29890
29891         * modules/perror-tests: New file.
29892         * tests/test-perror.sh: New file.
29893         * tests/test-perror.c: New file.
29894
29895         New module 'perror'.
29896         * lib/stdio.in.h (perror): New declaration.
29897         * lib/perror.c: New file.
29898         * m4/perror.m4: New file.
29899         * modules/perror: New file.
29900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29901         * doc/posix-functions/perror.texi: Mention the perror module.
29902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29903         REPLACE_PERROR.
29904         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29905         REPLACE_PERROR.
29906
29907 2008-09-14  Bruno Haible  <bruno@clisp.org>
29908
29909         * modules/stdio (Makefile.am): Reorder to match the order in
29910         lib/stdio.in.h.
29911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29912
29913 2008-09-13  Bruno Haible  <bruno@clisp.org>
29914
29915         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29916
29917 2008-09-13  Bruno Haible  <bruno@clisp.org>
29918
29919         Extend strerror to cover the added errno values.
29920         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29921         (rpl_strerror): Provide error messages for the added errno values and
29922         for the WSA* values.
29923         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29924         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29925         strerror.
29926         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29927         * modules/strerror (Depends-on): Add errno.
29928         * doc/posix-functions/strerror.texi: Document the change.
29929         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29930         and EOVERFLOW.
29931
29932 2008-09-13  Bruno Haible  <bruno@clisp.org>
29933
29934         * modules/EOVERFLOW: Remove file.
29935         * m4/eoverflow.m4: Remove file.
29936         * modules/EOVERFLOW-tests: Remove file.
29937         * tests/test-EOVERFLOW.c: Remove file.
29938         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29939         * modules/ftell (Depends-on): Likewise.
29940         * modules/getdelim (Depends-on): Likewise.
29941         * modules/getugroups (Depends-on): Likewise.
29942         * modules/poll (Depends-on): Likewise.
29943         * modules/snprintf (Depends-on): Likewise.
29944         * modules/sprintf-posix (Depends-on): Likewise.
29945         * modules/vasnprintf (Depends-on): Likewise.
29946         * modules/vasprintf (Depends-on): Likewise.
29947         * modules/vfprintf-posix (Depends-on): Likewise.
29948         * modules/vsnprintf (Depends-on): Likewise.
29949         * modules/vsprintf-posix (Depends-on): Likewise.
29950         * modules/xvasprintf (Depends-on): Likewise.
29951         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29952         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29953         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29954         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29956         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29957         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29958         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29959         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29960         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29961         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29962         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29963         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29964         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29965         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29966         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29968         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29969         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29970         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29971         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29972         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29973         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29974         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29975         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29977         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29978         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29979         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29980         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29981         * MODULES.html.sh: Remove EOVERFLOW.
29982         * NEWS: Mention the change.
29983
29984 2008-09-13  Bruno Haible  <bruno@clisp.org>
29985
29986         * modules/errno-tests: New file.
29987         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29988
29989         * lib/errno.in.h: New file.
29990         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29991         * modules/errno: New file.
29992         * doc/posix-headers/errno.texi: Update documentation.
29993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29994
29995 2008-09-13  Bruno Haible  <bruno@clisp.org>
29996
29997         * tests/test-poll.c: Use #if for native Windows, rather than testing
29998         __MSVCRT__.
29999
30000 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30001             Bruno Haible  <bruno@clisp.org>
30002
30003         * lib/glob.c: Don't include <pwd.h> on native Windows.
30004         (WINDOWS32): New macro.
30005         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30006
30007 2008-09-13  Bruno Haible  <bruno@clisp.org>
30008
30009         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30010         (ETIMEDOUT): Remove macro.
30011         (glthread_cond_timedwait_multithreaded): New declaration.
30012         (glthread_cond_timedwait): Use it.
30013         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30014         (glthread_cond_timedwait_multithreaded): New function.
30015
30016 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30017
30018         * modules/poll-tests: Do not check for io.h.
30019         * tests/test-poll.c: Check for __MSVCRT__ instead.
30020
30021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30022
30023         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30024         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30025         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30026
30027 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30028
30029         * modules/poll-tests: New.
30030         * tests/test-poll.c: New.
30031
30032 2008-09-12  Eric Blake  <ebb9@byu.net>
30033
30034         frexp: test for NetBSD failure on -0.0
30035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30036         not all, bugs from NetBSD 3.0 have been fixed.
30037         * doc/posix-functions/frexp.texi (frexp): Document bug.
30038         Reported by Thomas Klausner.
30039
30040         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30041         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30042         literal -0.0.
30043         Reported by Jonathan C. Patschke <jp@centtech.com>.
30044
30045 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30046
30047         * lib/glthread/cond.h: Use dummy implementation also if
30048         USE_WIN32_THREADS.
30049
30050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30051
30052         * modules/fnmatch-posix (License): Change to LGPLv2+.
30053         * modules/fnmatch-gnu (License): Likewise.
30054
30055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30056
30057         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30058
30059 2008-09-11  Jim Meyering  <meyering@redhat.com>
30060
30061         * users.txt: Add gtk-vnc.
30062
30063 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30064
30065         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30066         rotate amounts.
30067
30068         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30069         required for 16-bit and 8-bit rotates.
30070         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30071         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30072         UINT8_MAX instead of hard-coded constants.
30073         Suggested by Paul Eggert.
30074
30075 2008-09-07  Bruno Haible  <bruno@clisp.org>
30076
30077         * tests/test-striconveh.c (main): Check behaviour when converting from
30078         UTF-7.
30079
30080         Make striconveh work better with stateful encodings.
30081         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30082         that iconv does not increment the inptr when returning -1/EINVAL.
30083
30084 2008-09-07  Bruno Haible  <bruno@clisp.org>
30085
30086         * build-aux/config.rpath: Update according to libtool-2.2.6.
30087         * build-aux/config.libpath: Likewise.
30088
30089 2008-09-06  Bruno Haible  <bruno@clisp.org>
30090
30091         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30092         * lib/freadptr.c (freadptr): Likewise.
30093         * lib/freadseek.c (freadptrinc): Likewise.
30094         Reported by Simon Josefsson.
30095
30096 2008-09-06  Bruno Haible  <bruno@clisp.org>
30097
30098         * modules/freadptr (License): Change to LGPLv2+.
30099         * modules/freadseek (License): Likewise.
30100         Suggested by Eric Blake.
30101
30102         * modules/memchr2 (License): Change to LGPLv2+.
30103         Approved by Eric Blake.
30104
30105 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30106             Bruno Haible  <bruno@clisp.org>
30107
30108         Make gnulib-tool work with native 'sed' on AIX.
30109         * gnulib-tool (sed_noop): New variable.
30110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30111         func_add_or_update, func_create_testdir): Use it to initialize sed
30112         script variables.
30113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30114
30115 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30116             Bruno Haible  <bruno@clisp.org>
30117
30118         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30119         also works after #include directives.
30120
30121 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30122
30123         getdate.y: reject an out-of-range timezone value
30124         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30125         the range [-24...+24].  When specified with only one or two digits,
30126         * tests/test-getdate.c: Tests for the fix.
30127         * doc/getdate.texi: Document this change.
30128
30129 2008-09-03  Bruno Haible  <bruno@clisp.org>
30130
30131         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30132
30133 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30134
30135         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30136         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30137         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30138         Blake <ebb9@byu.net>.
30139
30140         * tests/test-bitrotate.c: Add more test vectors.
30141
30142 2008-09-02  Eric Blake  <ebb9@byu.net>
30143
30144         vasnprintf-posix: handle large precision via %.*d
30145         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30146         when handling it ourselves.
30147         * tests/test-vasnprintf-posix.c (test_function): Add test.
30148         * tests/test-snprintf-posix.h (test_function): Likewise.
30149         * tests/test-sprintf-posix.h (test_function): Likewise.
30150         * tests/test-vasprintf-posix.c (test_function): Likewise.
30151         Reported by Alain Guibert.
30152
30153 2008-09-01  Eric Blake  <ebb9@byu.net>
30154
30155         c-stack: make configure-time check more robust
30156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30157         successful sigaction call.
30158         Reported by Tom G. Christensen.
30159
30160 2008-09-01  Bruno Haible  <bruno@clisp.org>
30161
30162         New module 'findprog-lgpl'.
30163         * modules/findprog-lgpl: New file.
30164         * lib/findprog-lgpl.c: New file.
30165         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30166         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30167         to decide whether to use strdup or xstrdup, concatenated_filename or
30168         xconcatenated_filename.
30169
30170 2008-09-01  Bruno Haible  <bruno@clisp.org>
30171
30172         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30173         'xconcat-filename' (GPL).
30174         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30175         (License): Change to LGPLv2+.
30176         * modules/xconcat-filename: New file.
30177         * lib/concat-filename.h (concatenated_filename): Change specification.
30178         (xconcatenated_filename): New declaration.
30179         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30180         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30181         memory situations.
30182         * lib/xconcat-filename.c: New file.
30183         * NEWS: Mention the change.
30184         * lib/findprog.c: Include concat-filename.h, not filename.h.
30185         (find_in_path): Use xconcatenated_filename instead of
30186         concatenated_filename.
30187         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30188         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30189         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30190         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30191         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30192         instead of concatenated_filename.
30193         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30194         (execute_java_class): Use xconcatenated_filename instead of
30195         concatenated_filename.
30196         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30197         * modules/javacomp (Depends-on): Likewise.
30198         * modules/javaexec (Depends-on): Likewise.
30199
30200 2008-09-01  Bruno Haible  <bruno@clisp.org>
30201
30202         Split module 'filename' into 'filename' and 'concat-filename'.
30203         * modules/filename: Keep only lib/filename.h.
30204         (License): Change to LGPLv2+.
30205         * modules/concat-filename: New file, extracted from modules/filename.
30206         * lib/filename.h (concatenated_filename): Remove declaration.
30207         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30208         * lib/concat-filename.c: Include concat-filename.h.
30209         * NEWS: Mention the change.
30210
30211 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30212
30213         * lib/bitrotate.h (rotl8, rotr8): Add.
30214
30215         * modules/bitrotate (configure.ac): Need
30216         AC_REQUIRE([AC_C_INLINE]).
30217         (Description): Mention stdint.h.  Reported by Bruno Haible
30218         <bruno@clisp.org>.
30219
30220         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30221         Paolo Bonzini <bonzini@gnu.org>.
30222
30223 2008-08-31  Bruno Haible  <bruno@clisp.org>
30224
30225         Assume Solaris specific bi-arch conventions on Solaris systems.
30226         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30227         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30229         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30230         like acl_libdirstem.
30231         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30232         acl_libdirstem.
30233         * NEWS: Mention the change.
30234         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30235
30236 2008-08-31  Jim Meyering  <meyering@redhat.com>
30237
30238         * lib/strftime.h: Add comments describing the two added arguments.
30239
30240         remove duplicate #include directives
30241         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30242         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30243
30244 2008-08-31  Bruno Haible  <bruno@clisp.org>
30245
30246         New module 'sigpipe-die'.
30247         * modules/sigpipe-die: New file.
30248         * lib/sigpipe-die.h: New file.
30249         * lib/sigpipe-die.c: New file.
30250         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30251
30252 2008-08-31  Bruno Haible  <bruno@clisp.org>
30253
30254         Don't override previously installed signal handlers.
30255         * lib/fatal-signal.c (saved_sigactions): New variable.
30256         (uninstall_handlers): Reset the signal to the saved handler, not
30257         to SIG_DFL (except when ignored).
30258         (install_handlers): Save the previous handlers.
30259
30260 2008-08-30  Bruno Haible  <bruno@clisp.org>
30261
30262         * gnulib-tool (func_reset_sigpipe): New function.
30263         (func_get_automake_snippet, func_modules_transitive_closure,
30264         func_import): Invoke it before a join command that reads from stdin,
30265         to avoid "echo: write error: Broken pipe" error messages on stderr.
30266         Reported by Sam Steingold <sds@gnu.org>.
30267
30268 2008-08-30  Bruno Haible  <bruno@clisp.org>
30269
30270         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30271         Code copied from m4/open.m4.
30272         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30273         access and the filename ends in a slash. Code copied from lib/open.c.
30274         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30275         * tests/test-fopen.c (main): Check against bug with trailing slash.
30276
30277 2008-08-29  Bruno Haible  <bruno@clisp.org>
30278
30279         Avoid some "gcc -pedantic" warnings.
30280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30281         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30282         * lib/dirent.in.h: Likewise.
30283         * lib/fcntl.in.h: Likewise.
30284         * lib/float.in.h: Likewise.
30285         * lib/iconv.in.h: Likewise.
30286         * lib/inttypes.in.h: Likewise.
30287         * lib/locale.in.h: Likewise.
30288         * lib/math.in.h: Likewise.
30289         * lib/netinet_in.in.h: Likewise.
30290         * lib/search.in.h: Likewise.
30291         * lib/signal.in.h: Likewise.
30292         * lib/stdarg.in.h: Likewise.
30293         * lib/stdint.in.h: Likewise.
30294         * lib/stdio.in.h: Likewise.
30295         * lib/stdlib.in.h: Likewise.
30296         * lib/string.in.h: Likewise.
30297         * lib/strings.in.h: Likewise.
30298         * lib/sys_select.in.h: Likewise.
30299         * lib/sys_socket.in.h: Likewise.
30300         * lib/sys_stat.in.h: Likewise.
30301         * lib/sys_time.in.h: Likewise.
30302         * lib/sysexits.in.h: Likewise.
30303         * lib/time.in.h: Likewise.
30304         * lib/unistd.in.h: Likewise.
30305         * lib/wchar.in.h: Likewise.
30306         * lib/wctype.in.h: Likewise.
30307         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30308         * modules/fchdir (Makefile.am): Likewise.
30309         * modules/fcntl (Makefile.am): Likewise.
30310         * modules/float (Makefile.am): Likewise.
30311         * modules/iconv_open (Makefile.am): Likewise.
30312         * modules/inttypes (Makefile.am): Likewise.
30313         * modules/locale (Makefile.am): Likewise.
30314         * modules/math (Makefile.am): Likewise.
30315         * modules/netinet_in (Makefile.am): Likewise.
30316         * modules/search (Makefile.am): Likewise.
30317         * modules/signal (Makefile.am): Likewise.
30318         * modules/stdarg (Makefile.am): Likewise.
30319         * modules/stdint (Makefile.am): Likewise.
30320         * modules/stdio (Makefile.am): Likewise.
30321         * modules/stdlib (Makefile.am): Likewise.
30322         * modules/string (Makefile.am): Likewise.
30323         * modules/strings (Makefile.am): Likewise.
30324         * modules/sys_select (Makefile.am): Likewise.
30325         * modules/sys_socket (Makefile.am): Likewise.
30326         * modules/sys_stat (Makefile.am): Likewise.
30327         * modules/sys_time (Makefile.am): Likewise.
30328         * modules/sysexits (Makefile.am): Likewise.
30329         * modules/time (Makefile.am): Likewise.
30330         * modules/unistd (Makefile.am): Likewise.
30331         * modules/wchar (Makefile.am): Likewise.
30332         * modules/wctype (Makefile.am): Likewise.
30333         Reported by Reuben Thomas <rrt@sc3d.org>.
30334
30335 2008-08-29  Bruno Haible  <bruno@clisp.org>
30336
30337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30338         any more.
30339
30340 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30341
30342         * MODULES.html.sh (Misc): Add bitrotate.
30343
30344         * modules/bitrotate: New file.
30345
30346         * lib/bitrotate.h: New file.
30347
30348         * modules/bitrotate-tests: New file.
30349
30350         * tests/test-bitrotate.c: New file.
30351
30352         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30353         on the bitrotate module.
30354
30355         * lib/arctwo.c: Use new bitrotate module.
30356
30357 2008-08-29  Jim Meyering  <meyering@redhat.com>
30358
30359         bootstrap: merge changes from coreutils
30360         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30361         of copied files.  Remove a kludge, now that this is fixed.
30362         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30363         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30364         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30365
30366 2008-08-29  Bruno Haible  <bruno@clisp.org>
30367
30368         * MODULES.html.sh: Remove --cvs-urls option.
30369
30370 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30371
30372         maint.mk: adjust to file name change
30373         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30374
30375 2008-08-28  Jim Meyering  <meyering@redhat.com>
30376
30377         * modules/getndelim2 (License): Relicense to LGPLv2+.
30378         Approved by Richard Stallman for the version of 1995, and by
30379         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30380
30381 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30382
30383         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30384         dummy if one is not available.  Do not touch them if
30385         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30386         (getc_maybe_unlocked): New.
30387         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30388
30389 2008-08-26  Eric Blake  <ebb9@byu.net>
30390
30391         doc/INSTALL: resync from autoconf
30392         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30393         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30394         moving...
30395         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30396         * INSTALL: Regenerate.
30397         * INSTALL.ISO: New file.
30398         * INSTALL.UTF-8: Likewise.
30399
30400 2008-08-26  Jim Meyering  <meyering@redhat.com>
30401
30402         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30403         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30404         these definitions conditional, so that they may be overridden, too.
30405
30406 2008-08-26  Bruno Haible  <bruno@clisp.org>
30407
30408         Generate INSTALL file variants with prettier quotes.
30409         * doc/Makefile (INSTALL_PRELUDE): New macro.
30410         (INSTALL): Use it.
30411         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30412
30413 2008-08-26  Bruno Haible  <bruno@clisp.org>
30414
30415         Run makeinfo in an English locale.
30416         * doc/Makefile (MAKEINFO): New variable.
30417
30418 2008-08-26  Bruno Haible  <bruno@clisp.org>
30419
30420         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30421         Suggested by Eric Blake.
30422
30423 2008-08-25  Bruno Haible  <bruno@clisp.org>
30424
30425         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30426
30427 2008-08-25  Eric Blake  <ebb9@byu.net>
30428
30429         c-stack: test that stack overflow can be caught
30430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30431         that platform allows handling stack overflow; at least OS/2 EMX
30432         has sigaltstack, but crashes before transferring control to
30433         handler on stack overflow.
30434         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30435         check for HAVE_STACK_OVERFLOW_HANDLING.
30436         Reported by Elbert Pol.
30437
30438 2008-08-25  Bruno Haible  <bruno@clisp.org>
30439
30440         * doc/posix-functions/strftime.texi: Fix description of strftime
30441         module.
30442
30443 2008-08-24  Bruno Haible  <bruno@clisp.org>
30444
30445         * tests/uniwidth/test-uc_width2.c: New file.
30446         * tests/uniwidth/test-uc_width2.sh: New file.
30447         * modules/uniwidth/width-tests (Files): Add the new files.
30448         (TESTS): Add uniwidth/test-uc_width2.sh.
30449         (TESTS_ENVIRONMENT): New variable.
30450         (check_PROGRAMS): Add test-uc_width2.
30451         (test_uc_width2_SOURCES): New variable.
30452
30453         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30454         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30455         not 0x00AB.
30456         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30457
30458 2008-08-22  Eric Blake  <ebb9@byu.net>
30459
30460         test-lock, test-tls: mention why a test is skipped
30461         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30462         skipped.
30463         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30464
30465         count-one-bits: relax license
30466         * modules/count-one-bits (License): Relicense to LGPLv2+.
30467         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30468
30469 2008-08-22  Andreas Schwab  <schwab@suse.de>
30470
30471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30472         Remove spurious space in assignment.
30473
30474 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30475
30476         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30477         Paul Eggert <eggert@CS.UCLA.EDU>.
30478
30479 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30480
30481         * modules/gettext: Add m4/threadlib.m4.
30482
30483 2008-08-19  Eric Blake  <ebb9@byu.net>
30484
30485         test-c-stack: fix compilation failure on FreeBSD 5.0
30486         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30487         headers before <sys/resource.h>.
30488         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30489         the bug.
30490         Reported by Nelson H. F. Beebe.
30491
30492         strverscmp: migrate from "strverscmp.h" to <string.h>
30493         * modules/string (Makefile.am): Add new hooks.
30494         * modules/strverscmp (Files): Remove strverscmp.h.
30495         (Depends-on): Add string.
30496         (configure.ac): Add indicator.
30497         (Include): Mention new header.
30498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30499         defaults.
30500         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30501         results.
30502         * lib/strverscmp.h: Delete.
30503         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30504         * tests/test-strverscmp.c (includes): Adjust client.
30505         * lib/check-version.c (includes): Likewise.
30506         * NEWS: Document the change.
30507
30508         strverscmp: add unit test
30509         * modules/strverscmp-tests: New file.
30510         * tests/test-strverscmp.c: Likewise.
30511
30512 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30513
30514         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30515         regarding Windows crypto stuff, from Mono.
30516
30517 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30518
30519         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30520         if present, for intel RND.  Return error on failures.
30521
30522 2008-08-18  Ben Pfaff  <blp@gnu.org>
30523
30524         gitlog-to-changelog: give better diagnostic for failed pipe-open
30525         * build-aux/gitlog-to-changelog: Improve error message: suggest
30526         that the version of Git may be too old.
30527
30528 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30529
30530         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30531         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30532
30533 2008-08-18  Bruno Haible  <bruno@clisp.org>
30534
30535         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30536         pthread_in_use().
30537
30538 2008-08-18  Bruno Haible  <bruno@clisp.org>
30539
30540         * lib/glthread/threadlib.c: Include <pthread.h>.
30541
30542 2008-08-18  Bruno Haible  <bruno@clisp.org>
30543
30544         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30545         glthread_recursive_lock_* macros.
30546         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30547         Fix syntax error.
30548
30549 2008-08-18  Bruno Haible  <bruno@clisp.org>
30550
30551         * lib/glthread/thread.c: Avoid forcing a context switch right after
30552         thread creation.
30553
30554 2008-08-17  Bruno Haible  <bruno@clisp.org>
30555
30556         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30557         * lib/glthread/thread.h: Provide Win32 specific implementation.
30558         * modules/thread (Files): Add lib/glthread/thread.c.
30559         (Depends-on): Add lock.
30560         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30561
30562 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30563
30564         New module 'yield'.
30565         * modules/yield: New file.
30566         * lib/glthread/yield.h: New file.
30567         * m4/yield.m4: New file.
30568         * MODULES.html.sh (Multithreading): Add yield.
30569
30570 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30571
30572         New module 'thread'.
30573         * modules/thread: New file.
30574         * lib/glthread/thread.h: New file.
30575         * m4/thread.m4: New file.
30576         * MODULES.html.sh (Multithreading): Add thread.
30577
30578 2008-08-17  Bruno Haible  <bruno@clisp.org>
30579
30580         * lib/glthread/lock.h: Include <stdlib.h> always.
30581         * lib/glthread/tls.h: Likewise.
30582         * lib/glthread/cond.h: Likewise.
30583
30584 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30585
30586         New module 'cond'.
30587         * modules/cond: New file.
30588         * lib/glthread/cond.h: New file.
30589         * lib/glthread/cond.c: New file.
30590         * m4/cond.m4: New file.
30591         * MODULES.html.sh (Multithreading): Add cond.
30592
30593 2008-08-16  Eric Blake  <ebb9@byu.net>
30594
30595         c-stack: fix regression on Irix 5.3 from 2008-06-21
30596         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30597         sa_sigaction...
30598         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30599         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30601         * modules/signal (Makefile.am): Use the value.
30602         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30603         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30604         * doc/posix-headers/signal.texi (signal.h): Document this
30605         portability issue.
30606         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30607         Reported by Tom G. Christensen.
30608
30609 2008-08-17  Bruno Haible  <bruno@clisp.org>
30610
30611         New module 'threadlib'.
30612         * modules/threadlib: New file.
30613         * lib/glthread/threadlib.c: New file, extracted from
30614         lib/glthread/lock.c.
30615         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30616         functions.
30617         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30618         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30619         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30620         macros.
30621         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30622         (gl_DISABLE_THREADS): Remove macro.
30623         * modules/lock (Files): Remove build-aux/config.rpath.
30624         (Depends-on): Remove havelib. Add threadlib.
30625         (configure.ac-early): Remove section.
30626         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30627         * modules/tls (Depends-on): Remove lock. Add threadlib.
30628         (Link): New section, copied from threadlib.
30629         * MODULES.html.sh (Multithreading): Add threadlib.
30630
30631 2008-08-14  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30634         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30635         glthread_rwlock_unlock, glthread_rwlock_destroy,
30636         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30637         glthread_recursive_lock_destroy): Define as macros always.
30638         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30639         glthread_lock_lock.
30640         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30641         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30642         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30643         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30644         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30645         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30646         (glthread_recursive_lock_lock_func): Renamed from
30647         glthread_recursive_lock_lock.
30648         (glthread_recursive_lock_unlock_func): Renamed from
30649         glthread_recursive_lock_unlock.
30650         (glthread_recursive_lock_destroy_func): Renamed from
30651         glthread_recursive_lock_destroy.
30652
30653 2008-08-14  Bruno Haible  <bruno@clisp.org>
30654
30655         * lib/glthread/lock.h: Renamed from lib/lock.h.
30656         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30657         * lib/glthread/tls.h: Renamed from lib/tls.h.
30658         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30659         * lib/fstrcmp.c: Update includes.
30660         * lib/strsignal.c: Update includes.
30661         * modules/lock (Files, Makefile.am): Update.
30662         (Include): Change to "glthread/lock.h".
30663         * modules/tls (Files, Makefile.am): Update.
30664         (Include): Change to "glthread/tls.h".
30665         * tests/test-lock.c: Update includes.
30666         * tests/test-tls.c: Update includes.
30667         * NEWS: Mention the renamed header files.
30668
30669 2008-08-11  Jim Meyering  <meyering@redhat.com>
30670
30671         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30672
30673 2008-08-11  Eric Blake  <ebb9@byu.net>
30674
30675         test-c-stack: avoid C99-ism
30676         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30677         before statement.
30678         Reported by Alain Guibert.
30679
30680 2008-08-10  Jim Meyering  <meyering@redhat.com>
30681
30682         ensure that return value of uinttostr et al are not ignored
30683         * lib/inttostr.h (__GNUC_PREREQ): Define.
30684         (__attribute_warn_unused_result__): Define.
30685         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30686
30687 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30688
30689         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30690         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30691
30692 2008-08-07  Jim Meyering  <meyering@redhat.com>
30693
30694         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30695
30696         * modules/mkstemp (License): Relicense under LGPLv2+.
30697         * modules/tempname (License): Likewise.
30698
30699 2008-08-06  Bruno Haible  <bruno@clisp.org>
30700
30701         * lib/poll.c (poll): Further micro-optimization.
30702
30703 2008-08-06  Jim Meyering  <meyering@redhat.com>
30704
30705         inet_pton.c: use locale-independent tolower
30706         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30707         (inet_pton6): Use c_tolower rather than tolower.
30708         * modules/inet_pton (Depends-on): Add c-ctype.
30709
30710 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30711
30712         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30713         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30714
30715 2008-08-06  Jim Meyering  <meyering@redhat.com>
30716
30717         * modules/inet_pton (License): Relicense under LGPLv2+.
30718
30719 2008-08-03  Bruno Haible  <bruno@clisp.org>
30720
30721         Additional non-aborting API for lock and tls.
30722         * lib/lock.h: Include <errno.h>.
30723         (glthread_lock_init): New macro/function.
30724         (gl_lock_init): Define as wrapper around glthread_lock_init.
30725         (glthread_lock_lock): New macro/function.
30726         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30727         (glthread_lock_unlock): New macro/function.
30728         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30729         (glthread_lock_destroy): New macro/function.
30730         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30731         (glthread_rwlock_init): New macro/function.
30732         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30733         (glthread_rwlock_rdlock): New macro/function.
30734         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30735         (glthread_rwlock_wrlock): New macro/function.
30736         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30737         (glthread_rwlock_unlock): New macro/function.
30738         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30739         (glthread_rwlock_destroy): New macro/function.
30740         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30741         (glthread_recursive_lock_init): New macro/function.
30742         (gl_recursive_lock_init): Define as wrapper around
30743         glthread_recursive_lock_init.
30744         (glthread_recursive_lock_lock): New macro/function.
30745         (gl_recursive_lock_lock): Define as wrapper around
30746         glthread_recursive_lock_lock.
30747         (glthread_recursive_lock_unlock): New macro/function.
30748         (gl_recursive_lock_unlock): Define as wrapper around
30749         glthread_recursive_lock_unlock.
30750         (glthread_recursive_lock_destroy): New macro/function.
30751         (gl_recursive_lock_destroy): Define as wrapper around
30752         glthread_recursive_lock_destroy.
30753         (glthread_once): New macro/function.
30754         (gl_once): Define as wrapper around glthread_once.
30755         Update function declarations.
30756         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30757         glthread_rwlock_init. Return error code.
30758         (glthread_rwlock_rdlock_multithreaded): Renamed from
30759         glthread_rwlock_rdlock. Return error code.
30760         (glthread_rwlock_wrlock_multithreaded): Renamed from
30761         glthread_rwlock_wrlock. Return error code.
30762         (glthread_rwlock_unlock_multithreaded): Renamed from
30763         glthread_rwlock_unlock. Return error code.
30764         (glthread_rwlock_destroy_multithreaded): Renamed from
30765         glthread_rwlock_destroy. Return error code.
30766         (glthread_recursive_lock_init_multithreaded): Renamed from
30767         glthread_recursive_lock_init. Return error code.
30768         (glthread_recursive_lock_lock_multithreaded): Renamed from
30769         glthread_recursive_lock_lock. Return error code.
30770         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30771         glthread_recursive_lock_unlock. Return error code.
30772         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30773         glthread_recursive_lock_destroy. Return error code.
30774         (glthread_once_call): Make static.
30775         (glthread_once_multithreaded): Renamed from glthread_once.
30776         * lib/tls.h: Include <errno.h>.
30777         (glthread_tls_key_init): New macro/function.
30778         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30779         (glthread_tls_set): New macro/function.
30780         (gl_tls_set): Define as wrapper around glthread_tls_set.
30781         (glthread_tls_key_destroy): New macro/function.
30782         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30783         Update function declarations.
30784         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30785         glthread_tls_get.
30786         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30787
30788 2008-08-04  Eric Blake  <ebb9@byu.net>
30789
30790         gnumakefile: use space, not TAB, outside of targets
30791         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30792
30793 2008-08-02  Jim Meyering  <meyering@redhat.com>
30794
30795         getdate.y: avoid locale-dependent date parsing failure
30796         In Turkish locales, getdate would fail to recognize keywords
30797         containing a lowercase "i".  The solution is not to rely on
30798         locale-sensitive case-conversion.
30799         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30800         (lookup_word): Use c_toupper in place of toupper.
30801         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30802         Reported by Vefa Bicakci <bicave@superonline.com> in
30803         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30804         * modules/getdate (Depends-on): Add c-ctype.
30805
30806 2008-08-02  Bruno Haible  <bruno@clisp.org>
30807
30808         * gnulib-tool (func_import): When updating or creating a .gitignore
30809         file, prepend each added line with a slash, and ignore leading slashes
30810         from the existing lines.
30811         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30812
30813 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30814
30815         Portability fix for GNU make 3.79.1.
30816         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30817         versions do not understand.
30818
30819 2008-08-01  Bruno Haible  <bruno@clisp.org>
30820
30821         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30822         * tests/test-isnanf.h (zero): New variable.
30823         (main): Avoid literal -0.0f.
30824         * tests/test-isnand.h (zero): New variable.
30825         (main): Avoid literal -0.0.
30826         * tests/test-isnanl.h (zero): New variable.
30827         (main): Avoid literal -0.0L.
30828         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30829         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30830         -0.0, -0.0L.
30831         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30832         (test_signbitd): Avoid literal -0.0.
30833         (test_signbitl): Avoid literal -0.0L.
30834         * tests/test-ceilf1.c (zero): New variable.
30835         (main): Avoid literal -0.0f.
30836         * tests/test-ceill.c (zero): New variable.
30837         (main): Avoid literal -0.0L.
30838         * tests/test-floorf1.c (zero): New variable.
30839         (main): Avoid literal -0.0f.
30840         * tests/test-floorl.c (zero): New variable.
30841         (main): Avoid literal -0.0L.
30842         * tests/test-roundf1.c (zero): New variable.
30843         (main): Avoid literal -0.0f.
30844         * tests/test-round1.c (zero): New variable.
30845         (main): Avoid literal -0.0.
30846         * tests/test-roundl.c (zero): New variable.
30847         (main): Avoid literal -0.0L.
30848         * tests/test-truncf1.c (zero): New variable.
30849         (main): Avoid literal -0.0f.
30850         * tests/test-trunc1.c (zero): New variable.
30851         (main): Avoid literal -0.0.
30852         * tests/test-truncl.c (zero): New variable.
30853         (main): Avoid literal -0.0L.
30854         * tests/test-frexp.c (zero): New variable.
30855         (main): Avoid literal -0.0.
30856         * tests/test-frexpl.c (zero): New variable.
30857         (main): Avoid literal -0.0L.
30858         * tests/test-ldexpl.c (zero): New variable.
30859         (main): Avoid literal -0.0L.
30860         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30861         (zerod, zerol): New variables.
30862         (test_function): Avoid literals -0.0, -0.0L.
30863         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30864         (zerod, zerol): New variables.
30865         (test_function): Avoid literals -0.0, -0.0L.
30866         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30867         (zerod, zerol): New variables.
30868         (test_function): Avoid literals -0.0, -0.0L.
30869         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30870         (zerod, zerol): New variables.
30871         (test_function): Avoid literals -0.0, -0.0L.
30872         * tests/test-strtod.c (zero): New variable.
30873         (main): Avoid literal -0.0.
30874         Reported by Jonathan C. Patschke <jp@centtech.com>.
30875
30876 2008-07-31  Jim Meyering  <meyering@redhat.com>
30877
30878         sha256.h: correct definition of SHA224_DIGEST_SIZE
30879         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30880         Reported by Paulie Pena IV <paulie4@gmail.com>.
30881         Define as 224 / 8, rather than as a literal.
30882         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30883         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30884         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30885
30886 2008-07-31  Bruno Haible  <bruno@clisp.org>
30887
30888         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30889         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30890         Reported by Jonathan Patschke <jp@centtech.com>.
30891
30892 2008-07-31  Bruno Haible  <bruno@clisp.org>
30893
30894         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30895         Reported by Paolo Bonzini <bonzini@gnu.org>.
30896
30897 2008-07-30  Eric Blake  <ebb9@byu.net>
30898
30899         test-strtod: allow compilation without -lm
30900         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30901         Reported by Dennis Clarke <blastwave@gmail.com>.
30902
30903 2008-07-28  Jim Meyering  <meyering@redhat.com>
30904
30905         bootstrap: work also when there are no .po files in po/
30906         * build-aux/bootstrap (update_po_files): Complete the change
30907         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30908
30909 2008-07-27  Jim Meyering  <meyering@redhat.com>
30910
30911         * users.txt: Add zile.
30912
30913 2008-07-26  Ben Pfaff  <blp@gnu.org>
30914
30915         Add missing dependencies on new m4/exponent[fdl].m4 files.
30916         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30917         * modules/isnand-nolibm: Add m4/exponentd.m4.
30918         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30919         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30920         m4/isnan[fdl].m4, because the macros actually used moved.
30921         Reported by Jim Meyering.
30922
30923 2008-07-14  Ben Pfaff  <blp@gnu.org>
30924
30925         Add isinf module.
30926         * lib/isinf.c: New file.
30927         * lib/math.in.h: Define isinf macro if we have decided to replace
30928         it.
30929         * m4/isinf.m4: New file.
30930         * m4/math_h.m4: Initialize and substitute variables for isinf
30931         module.
30932         * modules/isinf: New file.
30933         * modules/isinf-tests: New file.
30934         * modules/math: Add substitutions for new module.
30935         * tests/test-isinf.c: New file.
30936         * doc/posix-functions/isinf.texi: Mention new module.
30937         * MODULES.html.sh: Mention new module.
30938
30939 2008-07-14  Ben Pfaff  <blp@gnu.org>
30940
30941         Factor out some macros for use by additional modules.
30942         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30943         exponentf.m4.
30944         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30945         exponentd.m4.
30946         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30947         file exponentl.m4.
30948         * m4/exponentf.m4: New file.
30949         * m4/exponentd.m4: New file.
30950         * m4/exponentl.m4: New file.
30951         * modules/isnanf: Use new file m4/exponentf.m4.
30952         * modules/isnand: Use new file m4/exponentd.m4.
30953         * modules/isnanl: Use new file m4/exponentl.m4.
30954
30955 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30956
30957         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30958         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30959         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30960         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30961
30962         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30963         readlink on platforms without PATH_MAX.
30964
30965 2008-07-21  Eric Blake  <ebb9@byu.net>
30966
30967         Warn, not fail, on stale version.
30968         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30969
30970         Don't allow installation with stale devel version number.
30971         * top/GNUmakefile (_is-install-target): New macro.
30972         (_curr-ver): Forbid installation with stale version number.
30973
30974 2008-07-20  Bruno Haible  <bruno@clisp.org>
30975
30976         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30977         TESTS_ENVIRONMENT.
30978         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30979
30980 2008-07-20  Bruno Haible  <bruno@clisp.org>
30981
30982         * lib/c-stack.h (c_stack_action): Add documentation.
30983         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30984
30985 2008-07-20  Bruno Haible  <bruno@clisp.org>
30986
30987         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30988         * modules/readlink (License): Likewise.
30989
30990 2008-07-17  Eric Blake  <ebb9@byu.net>
30991
30992         * modules/c-stack (Link): Fix typo.
30993
30994         Make c-stack use libsigsegv, when available.
30995         * modules/c-stack (Depends-on): Add libsigsegv.
30996         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30997         needed.
30998         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30999         (segv_handler, overflow_handler, c_stack_action)
31000         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31001         implementation when libsigsegv is available, but only when using
31002         the library is necessary.
31003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31004         comment, explaining why XSI check fails on Linux.
31005         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31006         * tests/test-c-stack2.sh: Tweak skip message.
31007         * NEWS: Document new link-time requirements.
31008
31009 2008-07-16  Eric Blake  <ebb9@byu.net>
31010
31011         c-stack: Expose false positives when not using libsigsegv.
31012         * modules/c-stack-tests (Files): Expand test.
31013         * tests/test-c-stack.c (main): Add means to conditionally trigger
31014         non-overflow SIGSEGV.
31015         * tests/test-c-stack2.sh: New file.
31016
31017 2008-07-14  Bruno Haible  <bruno@clisp.org>
31018
31019         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31020         Reported by Eric Blake.
31021
31022 2008-07-14  Sam Steingold  <sds@gnu.org>
31023             Bruno Haible  <bruno@clisp.org>
31024
31025         New module libsigsegv.
31026         * modules/libsigsegv: New file.
31027         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31028         modifications.
31029         * MODULES.html.sh (Signal handling): New section.
31030
31031 2008-07-14  Bruno Haible  <bruno@clisp.org>
31032
31033         * modules/unictype/ctype-* (Description): Add the word "function".
31034         Improves the resulting doc in MODULES.html.
31035
31036 2008-07-12  Ben Pfaff  <blp@gnu.org>
31037
31038         Add longlong module.
31039         * modules/longlong: New file.
31040
31041 2008-07-12  Bruno Haible  <bruno@clisp.org>
31042
31043         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31044         to empty.
31045
31046 2008-07-10  Ben Pfaff  <blp@gnu.org>
31047
31048         Add isnan module.
31049         * doc/posix-functions/isnan.texi: Mention new module.
31050         * lib/math.in.h: Define isnan macro if we have decided to replace
31051         it.
31052         * m4/isnan.m4: New file.
31053         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31054         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31055         also.
31056         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31057         redundancy.
31058         * m4/math_h.m4: Initialize and substitute variables for isnan
31059         module.
31060         * modules/isnan: New file.
31061         * modules/isnan-tests: New file.
31062         * modules/math: Add substitutions for new module.
31063         * tests/test-isnan.c: New file.
31064         * MODULES.html.sh: Mention new module.
31065
31066 2008-07-10  Ben Pfaff  <blp@gnu.org>
31067
31068         Add isnanf module.
31069         * lib/isnanf.m4: New file.
31070         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31071         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31072         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31073         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31074         * modules/isnanf: New file.
31075         * modules/isnanf-tests: New file.
31076         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31077         files.
31078         * tests/test-isnanf-nolibm.c: factored most of its contents into
31079         new file tests/test-isnanf.h.
31080         * tests/test-isnanf.h: New file.
31081         * tests/test-isnanf.c: New file.
31082         * MODULES.html.sh: Mention new module.
31083         * doc/glibc-functions/isnanf.texi: Mention new module.
31084
31085 2008-07-10  Ben Pfaff  <blp@gnu.org>
31086
31087         Add isnand module.
31088         * lib/isnand.h: New file.
31089         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31090         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31091         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31092         functionality also.
31093         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31094         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31095         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31096         * modules/isnand: New file.
31097         * modules/isnand-tests: New file.
31098         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31099         files.
31100         * tests/test-isnand-nolibm.c: factored most of its contents into
31101         new file tests/test-isnand.h.
31102         * tests/test-isnand.h: New file.
31103         * tests/test-isnand.c: New file.
31104         * MODULES.html.sh: Mention new module.
31105
31106 2008-07-10  Ben Pfaff  <blp@gnu.org>
31107
31108         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31109         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31110         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31111         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31112         * modules/isnanf-nolibm: Update references to renamed files.
31113         * modules/isnand-nolibm: Likewise.
31114         * modules/isnanf-nolibm-tests: Likewise.
31115         * modules/isnand-nolibm-tests: Likewise.
31116         * lib/frexp.c: Likewise.
31117         * lib/isfinite.c: Likewise.
31118         * lib/signbitd.c: Likewise.
31119         * lib/signbitf.c: Likewise.
31120         * lib/vasnprintf.c: Likewise.
31121         * tests/test-ceilf1.c: Likewise.
31122         * tests/test-ceilf2.c: Likewise.
31123         * tests/test-floorf1.c: Likewise.
31124         * tests/test-floorf2.c: Likewise.
31125         * tests/test-frexp.c: Likewise.
31126         * tests/test-round1.c: Likewise.
31127         * tests/test-round2.c: Likewise.
31128         * tests/test-roundf1.c: Likewise.
31129         * tests/test-strtod.c: Likewise.
31130         * tests/test-trunc1.c: Likewise.
31131         * tests/test-trunc2.c: Likewise.
31132         * tests/test-truncf1.c: Likewise.
31133         * tests/test-truncf2.c: Likewise.
31134         * NEWS: Mention the renamed header files.
31135
31136 2008-07-11  Jim Meyering  <meyering@redhat.com>
31137
31138         vc-list-files: make the last-resort awk code more portable
31139         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31140         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31141         does not support it.
31142
31143 2008-07-10  Eric Blake  <ebb9@byu.net>
31144
31145         Work with tar's bootstrap.
31146         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31147         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31148         an m4 comment.
31149
31150 2008-07-09  Jim Meyering  <meyering@redhat.com>
31151
31152         posix-shell.m4: fix typo that made this test malfunction
31153         * m4/posix-shell.m4: Remove capitalization in variable name.
31154
31155 2008-07-08  Bruno Haible  <bruno@clisp.org>
31156
31157         * m4/onceonly.m4: Update comments.
31158         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31159
31160 2008-07-04  Jim Meyering  <meyering@redhat.com>
31161
31162         * users.txt: Add vc-dwim.
31163         (bison, coreutils): Use the gitweb URL.
31164
31165 2008-07-03  Jim Meyering  <meyering@redhat.com>
31166
31167         * users.txt: Add libffcall.  From Sam Steingold.
31168
31169 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31170
31171         getdate.y: do not ignore TZ with relative day, month or year offset
31172         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31173         relative-date-handling, since otherwise, the latter would clobber the
31174         sole output (an updated Start value) of the tz-handling block.
31175         * tests/test-getdate.c: Tests for the fix
31176
31177 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31178
31179         Recognize 'foo_LIBRARIES += libgnu.a'.
31180         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31181         makefile snippet has already specified an installation location,
31182         also using '+='.
31183
31184 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31185
31186         getdate.y: factor out common actions
31187         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31188         Use them in place of open-coded actions.
31189
31190 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31191
31192         Add self-test for getdate module.
31193         * modules/getdate-tests: New file.
31194         * tests/test-getdate.c: New file.
31195
31196 2008-06-29  Bruno Haible  <bruno@clisp.org>
31197
31198         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31199         .gitignore.
31200         Reported by Sylvain Beucler <beuc@beuc.net>.
31201
31202 2008-06-29  Bruno Haible  <bruno@clisp.org>
31203
31204         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31205         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31206
31207 2008-06-29  Bruno Haible  <bruno@clisp.org>
31208
31209         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31210         EXTRA_DIST.
31211         Reported by Sylvain Beucler <beuc@beuc.net>.
31212
31213 2008-06-26  Jim Meyering  <meyering@redhat.com>
31214
31215         make several modules depend on the "open" module
31216         This provides slightly increased consistency when opening-for-write
31217         the name of a non-directory spelled with a trailing slash.
31218         * modules/chdir-safer: Likewise.
31219         * modules/chown: Likewise.
31220         * modules/clean-temp: Likewise.
31221         * modules/copy-file: Likewise.
31222         * modules/fchdir: Likewise.
31223         * modules/fcntl-safer: Likewise.
31224         * modules/pipe: Likewise.
31225         * modules/utime: Likewise.
31226         Prompted by Eric Blake and Bruno Haible.
31227
31228 2008-06-24  Andreas Schwab  <schwab@suse.de>
31229
31230         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31231         literals can be used as initializers for global variables.
31232
31233 2008-06-23  Eric Blake  <ebb9@byu.net>
31234
31235         Make gnulib-cache.m4 easier to diff.
31236         * gnulib-tool (func_import): Allow newlines when reading cached
31237         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31238
31239 2008-06-23  Bruno Haible  <bruno@clisp.org>
31240
31241         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31242         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31243         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31244         m4/signalblocking.m4.
31245         (gl_PREREQ_SIGACTION): Don't invoke it.
31246         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31247         gl_PREREQ_SIG_HANDLER_H.
31248         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31249         Don't check for sigaction here.
31250
31251 2008-06-23  Bruno Haible  <bruno@clisp.org>
31252
31253         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31254         (install_handlers): Don't set the SA_RESETHAND flag.
31255
31256 2008-06-23  Bruno Haible  <bruno@clisp.org>
31257
31258         * m4/sigaction.m4: Comment fixes.
31259         * lib/signal.in.h: Likewise.
31260
31261 2008-06-23  Eric Blake  <ebb9@byu.net>
31262
31263         Fix typo.
31264         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31265
31266         Avoid SA_ namespace.
31267         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31268         Reported by Ralf Wildenhues.
31269
31270         Avoid test failure due to SA_RESTORER.
31271         * tests/test-sigaction.c (SA_MASK): New macro.
31272         (main): Avoid failing due to extension flags being set.
31273         Reported by Jim Meyering.
31274
31275         Revert use of sig-handler.h in sigprocmask.c.
31276         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31277         it requires the existence of struct sigaction.
31278         * lib/sigprocmask.c (handler_t): Restore typedef.
31279         (rpl_signal, old_handlers): Use local type.
31280
31281 2008-06-22  Bruno Haible  <bruno@clisp.org>
31282
31283         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31284         conditionally.
31285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31286
31287 2008-06-22  Bruno Haible  <bruno@clisp.org>
31288
31289         * doc/posix-functions/siginterrupt.texi: Move note.
31290
31291         * lib/signal.in.h (SA_RESTART): New macro.
31292         * lib/sigaction.c: Update comment.
31293
31294         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31295
31296         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31297         (gl_PREREQ_SIGPROCMASK): Invoke it.
31298         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31299
31300         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31301
31302         * lib/sigprocmask.c: Update a comment.
31303
31304 2008-06-21  Eric Blake  <ebb9@byu.net>
31305
31306         Use sigaction module rather than signal().
31307         * modules/c-stack (Depends-on): Add sigaction.
31308         * modules/fatal-signal (Depends-on): Likewise.
31309         * modules/nanosleep (Depends-on): Likewise.
31310         * modules/sigprocmask (Files): Add sig-handler.h.
31311         * modules/sigaction (Files): Likewise.
31312         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31313         Eggert.
31314         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31315         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31316         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31317         (init_fatal_signals): Likewise.
31318         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31319         (siginterrupt): Delete fallback.
31320         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31321         instead.
31322         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31323         siginterrupt.
31324
31325         New module sigaction, for mingw.
31326         * modules/sigaction: New module...
31327         * modules/sigaction-tests: ...and its test.
31328         * m4/sigaction.m4: New file.
31329         * lib/sigaction.c: Likewise.
31330         * tests/test-sigaction.c: Likewise.
31331         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31332         * modules/signal (Makefile.am): Likewise.
31333         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31334         needed.
31335         * doc/posix-headers/signal.texi (signal.h): Mention provided
31336         types.
31337         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31338         that sigaction is preferable.
31339         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31340         module.
31341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31342         sigaction.
31343
31344         Improve robustness of sigprocmask by overriding signal.
31345         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31346         is in use.
31347         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31348         (SIGKILL, SIGSTOP): Provide fallbacks.
31349         (rpl_signal): Implement.
31350         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31351         signal can be called inside handlers.
31352
31353         Fix nanosleep module on mingw.
31354         * modules/nanosleep (Depends-on): Add sys_select.
31355         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31356
31357         Fix licensing of sigprocmask.
31358         * modules/raise (License): Relicense as LGPL.
31359
31360 2008-06-21  Bruno Haible  <bruno@clisp.org>
31361
31362         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31363         result if it contains question marks.
31364         Reported by Michael Geng <linux@michaelgeng.de>.
31365
31366 2008-06-19  Bruno Haible  <bruno@clisp.org>
31367
31368         Fix CVS-ism.
31369         * doc/gnulib.texi: Include updated-stamp.texi.
31370         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31371         (updated-stamp.texi): New rule.
31372         (gnulib.info): Depend on it.
31373         * doc/.gitignore: Add updated-stamp.texi.
31374         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31375
31376 2008-06-19  Bruno Haible  <bruno@clisp.org>
31377
31378         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31379         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31380
31381 2008-06-19  Eric Blake  <ebb9@byu.net>
31382
31383         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31384         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31385         Reported by Stepan Kasal.
31386
31387 2008-06-18  Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31390         Reported by Eric Blake.
31391
31392 2008-06-18  Eric Blake  <ebb9@byu.net>
31393
31394         Work around cygwin 1.5.25 strsignal bug.
31395         * tests/test-strsignal.c: Allow for const char *.
31396         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31397
31398 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31399
31400         * users.txt: Update URL to article and add author/date
31401         information.
31402
31403 2008-06-17  Bruno Haible  <bruno@clisp.org>
31404
31405         New macro gl_DISABLE_THREADS.
31406         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31407         if the user did not pass --enable-threads or --disable-threads option.
31408         (gl_DISABLE_THREADS): New macro.
31409         Reported by Eric Blake <ebb9@byu.net>.
31410
31411 2008-06-17  Bruno Haible  <bruno@clisp.org>
31412
31413         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31414         when the macro ignores it.
31415         Based on a patch by Eric Blake <ebb9@byu.net>.
31416
31417 2008-06-17  Bruno Haible  <bruno@clisp.org>
31418
31419         * modules/tls (License): Change to LGPLv2+.
31420         Reported by Eric Blake.
31421
31422 2008-06-17  Eric Blake  <ebb9@byu.net>
31423
31424         Simplify c-stack prerequisites.
31425         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31427         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31428         check.
31429         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31430         <sys/resource.h>.
31431
31432         Move c-stack test into testsuite.
31433         * modules/c-stack-tests: New file.
31434         * lib/c-stack.c [DEBUG]: Move test program...
31435         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31436         fail test if sigaltstack is lacking.
31437         * tests/test-c-stack.sh: New driver file.
31438
31439 2008-06-16  Eric Blake  <ebb9@byu.net>
31440
31441         Use raise module consistently.
31442         * modules/fatal-signal (Depends-on): Add raise.
31443         * modules/sigprocmask (Depends-on): Likewise.
31444         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31445         * lib/sigprocmask.c (sigprocmask): Likewise.
31446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31447         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31448
31449         Fix compliance bug in sigpending.
31450         * lib/sigprocmask.c (sigpending): Return pending array via
31451         parameter, not return value.
31452
31453 2008-06-14  Eric Blake  <ebb9@byu.net>
31454
31455         Improve obstack-printf test code.
31456         * tests/test-obstack-printf.c (test_function): Fix comment, and
31457         simplify usage of obstack_* in macros.  Add a test for coverage.
31458         Reported by Bruno Haible.
31459
31460 2008-06-14  Bruno Haible  <bruno@clisp.org>
31461
31462         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31463         array size as a constant, not as a const variable.
31464         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31465         AC_USE_SYSTEM_EXTENSIONS.
31466         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31467         Test whether the obstack_printf function actually exists.
31468         * modules/obstack-printf (Depends-on): Add extensions.
31469         (Include): Remove obstack.h.
31470         * modules/obstack-printf-posix (Depends-on): Add extensions.
31471         (Include): Remove obstack.h.
31472
31473 2008-06-13  Eric Blake  <ebb9@byu.net>
31474
31475         Add obstack-printf and obstack-printf-posix modules.
31476         * modules/obstack-printf: New file.
31477         * modules/obstack-printf-posix: Likewise.
31478         * MODULES.html.sh (Misc): Mention them.
31479         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31480         Likewise.
31481         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31482         Likewise.
31483         * modules/stdio (Makefile.am): Accomodate new modules.
31484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31485         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31486         Declare.
31487         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31488         functions.
31489         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31490         (gl_REPLACE_OBSTACK_PRINTF): New macros
31491         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31492         * tests/test-obstack-printf.c: New file.
31493         * modules/obstack-printf-tests: Likewise.
31494         * modules/obstack-printf-posix-tests: Likewise.
31495
31496 2008-06-11  Bruno Haible  <bruno@clisp.org>
31497
31498         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31499         * lib/open.c: Include errno.h.
31500         (open): Fail when attempting to write to a file that has a trailing
31501         slash.
31502         * tests/test-open.c (main): Test against trailing slash bug.
31503         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31504
31505 2008-06-10  Bruno Haible  <bruno@clisp.org>
31506
31507         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31508         for $? to work inside the trap command, with various /bin/sh-s.
31509         * tests/test-vc-list-files-cvs.sh: Likewise.
31510
31511 2008-06-10  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/acl-internal.h: Don't include gettext.h here.
31514         * lib/set-mode-acl.c: Include gettext.h here.
31515         * lib/copy-acl.c: Likewise.
31516
31517 2008-06-10  Bruno Haible  <bruno@clisp.org>
31518
31519         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31520         * lib/wait-process.c (wait_subprocess): Likewise.
31521         * lib/execute.h (execute): Add termsigp argument.
31522         * lib/execute.c (execute): Likewise.
31523         * lib/csharpcomp.c (compile_csharp_using_pnet,
31524         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31525         * lib/csharpexec.c (execute_csharp_using_pnet,
31526         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31527         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31528         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31529         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31530         is_jikes_present): Update.
31531         * lib/javaexec.c (execute_java_class): Update.
31532         * lib/javaversion.c (execute_and_read_line): Update.
31533         * NEWS: Document the changes.
31534         Reported by Eric Blake.
31535
31536 2008-06-10  Eric Blake  <ebb9@byu.net>
31537
31538         Add missing include.
31539         * tests/test-strstr.c (includes): Add <signal.h>.
31540         * tests/test-strcasestr.c (includes): Likewise.
31541         * tests/test-memmem.c (includes): Likewise.
31542
31543 2008-06-10  Bruno Haible  <bruno@clisp.org>
31544
31545         * lib/wait-process.c (wait_subprocess): Add an assertion.
31546
31547 2008-06-10  Bruno Haible  <bruno@clisp.org>
31548
31549         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31550
31551 2008-06-10  Bruno Haible  <bruno@clisp.org>
31552
31553         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31554         using alarm().
31555         * tests/test-strcasestr.c (main): Likewise.
31556         * tests/test-strstr.c (main): Likewise.
31557
31558 2008-06-09  Bruno Haible  <bruno@clisp.org>
31559
31560         Work around the Solaris 10 ACE ACLs ABI change.
31561         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31562         declare if ACL_NO_TRIVIAL is present.
31563         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31564         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31565         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31566         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31567         define if ACL_NO_TRIVIAL is present.
31568         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31569         and use the current ABI.
31570         (file_has_acl): Use same #if condition as elsewhere.
31571         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31572         in use, and use the current ABI.
31573         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31574         Reported by Jim Meyering.
31575
31576 2008-06-09  Eric Blake  <ebb9@byu.net>
31577
31578         Work around environments that (stupidly) ignore SIGALRM.
31579         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31580         before using alarm().
31581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31583         Reported by Ian Beckwith <ianb@erislabs.net>.
31584
31585         Produce autobuild blurb earlier in log.
31586         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31587
31588 2008-06-09  Jim Meyering  <meyering@redhat.com>
31589         and OndÅ™ej Vašík  <ovasik@redhat.com>
31590
31591         utimens.c: correct kernel bug work-around
31592         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31593         failure, not success, and the kernel bug we're trying to work
31594         around affects not just the utimensat call, but also the fallback
31595         futimens call.
31596         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31597         not success.
31598         [HAVE_FUTIMENS]: Use the same work-around, here.
31599
31600 2008-06-09  Jim Meyering  <meyering@redhat.com>
31601
31602         add more guards around definition of ACE_-related code
31603         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31604         ALLOW and ACE_OWNER are also defined.
31605
31606 2008-06-08  Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/acl-internal.h: Add me as co-author.
31609         * lib/file-has-acl.c: Likewise.
31610         * lib/set-mode-acl.c: Likewise.
31611         * lib/copy-acl.c: Likewise.
31612
31613 2008-06-08  Bruno Haible  <bruno@clisp.org>
31614
31615         Add support for AIX ACLs.
31616         * lib/acl-internal.h (acl_nontrivial): New declaration.
31617         * lib/file-has-acl.c (acl_nontrivial): New function.
31618         (file_has_acl): Add implementation using AIX 4 ACL API.
31619         * lib/set-mode-acl.c (qset_acl): Likewise.
31620         * lib/copy-acl.c (qcopy_acl): Likewise.
31621
31622 2008-06-08  Bruno Haible  <bruno@clisp.org>
31623
31624         Add support for HP-UX ACLs.
31625         * lib/acl-internal.h (acl_nontrivial): New declaration.
31626         * lib/file-has-acl.c (acl_nontrivial): New function.
31627         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31628         * lib/set-mode-acl.c (qset_acl): Likewise.
31629         * lib/copy-acl.c (qcopy_acl): Likewise.
31630
31631 2008-06-08  Bruno Haible  <bruno@clisp.org>
31632
31633         Add support for Cygwin ACLs.
31634         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31635         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31636         the chmod_or_fchmod call.
31637         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31638
31639 2008-06-08  Bruno Haible  <bruno@clisp.org>
31640
31641         Fix bug with setuid modes in Solaris 10+ code.
31642         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31643         succeeded, when the mode contains some special bits.
31644
31645 2008-06-08  Bruno Haible  <bruno@clisp.org>
31646
31647         Add support for Solaris 7..10 ACLs.
31648         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31649         declarations.
31650         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31651         functions.
31652         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31653         * lib/set-mode-acl.c (qset_acl): Likewise.
31654         * lib/copy-acl.c (qcopy_acl): Likewise.
31655
31656 2008-06-08  Bruno Haible  <bruno@clisp.org>
31657
31658         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31659         declaration.
31660         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31661         (acl_access_nontrivial): Remove MacOS X case.
31662         (file_has_acl): Use acl_extended_nontrivial.
31663         * lib/copy-acl.c (qcopy_acl): Likewise.
31664
31665 2008-06-08  Bruno Haible  <bruno@clisp.org>
31666
31667         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31668
31669 2008-06-08  Jim Meyering  <meyering@redhat.com>
31670
31671         * modules/acl (Maintainer): Add Bruno Haible.
31672
31673 2008-06-07  Bruno Haible  <bruno@clisp.org>
31674
31675         Improve support for Tru64 ACLs.
31676         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31677         ACL on OSF/1.
31678
31679 2008-06-07  Bruno Haible  <bruno@clisp.org>
31680
31681         Add support for MacOS X ACLs.
31682         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31683         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31684         * lib/set-mode-acl.c (qset_acl): Likewise.
31685         * lib/copy-acl.c (qcopy_acl): Likewise.
31686
31687 2008-06-07  Bruno Haible  <bruno@clisp.org>
31688
31689         Fix memory leak introduced on 2008-05-22.
31690         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31691         use.
31692
31693 2008-06-07  Bruno Haible  <bruno@clisp.org>
31694
31695         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31696         to construct an empty ACL.
31697
31698 2008-06-07  Bruno Haible  <bruno@clisp.org>
31699
31700         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31701         precisely.
31702         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31703
31704 2008-06-07  Bruno Haible  <bruno@clisp.org>
31705
31706         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31707         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31708
31709 2008-06-07  Bruno Haible  <bruno@clisp.org>
31710
31711         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31712         regardless of POSIX.
31713         * doc/posix-functions/_longjmp.texi: Likewise.
31714         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31715         SystemV platform in this case.
31716
31717 2008-06-06  Eric Blake  <ebb9@byu.net>
31718
31719         Document abort() bugs.
31720         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31721
31722         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31723         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31724         sigsetjmp.
31725         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31726         siglongjmp, but only as a macro.
31727         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31728         is obsolete.
31729         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31730
31731         Tweak documentation to cover cygwin argz bugs.
31732         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31733         argz bug fix; no code change needed since no cygwin releases
31734         occurred between the last fix and the bug being tested.
31735         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31736         module and recently fixed cygwin bugs.
31737         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31738         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31739         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31740         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31741         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31742         Likewise.
31743         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31744         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31745         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31746         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31747         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31748         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31749         Likewise.
31750
31751         Avoid gcc warning on cygwin.
31752         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31753         !ACL_NO_TRIVIAL]: Avoid unused variable.
31754
31755 2008-06-05  Eric Blake  <ebb9@byu.net>
31756
31757         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31758         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31759         git-version-gen fails to come up with a version.
31760         Reported by Simon Josefsson.
31761
31762 2008-06-05  Jim Meyering  <meyering@redhat.com>
31763             Paul Eggert  <eggert@cs.ucla.edu>
31764
31765         utimens.c: work around a probable Linux kernel bug
31766         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31767         appears to be a kernel bug that causes utimensat to return 280
31768         instead of 0, indicating success.
31769
31770 2008-06-04  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31773         2008-06-01 commit.
31774
31775 2008-06-04  Bruno Haible  <bruno@clisp.org>
31776
31777         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31778         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31779         (file_has_acl): Use it. Save errno afterwards.
31780         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31781
31782 2008-06-03  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31785         draft code. Simplify #ifs.
31786         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31787         Put Solaris code after POSIX-draft code. Fix comments regarding
31788         Solaris 10, HP-UX. Mention Cygwin.
31789         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31790
31791 2008-06-03  Eric Blake  <ebb9@byu.net>
31792
31793         Provide fallback for older kernels.
31794         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31795         Provide runtime fallback if kernel lacks support.
31796         Reported by Mike Frysinger.
31797
31798 2008-06-02  Bruno Haible  <bruno@clisp.org>
31799
31800         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31801         it exists.
31802
31803 2008-06-02  Bruno Haible  <bruno@clisp.org>
31804
31805         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31806         * lib/copy-acl.c (qcopy_acl): Update comment.
31807
31808 2008-06-02  Bruno Haible  <bruno@clisp.org>
31809
31810         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31811         like ACL APIs.
31812
31813 2008-06-02  Bruno Haible  <bruno@clisp.org>
31814
31815         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31816         * tests/test-set-mode-acl.sh: Likewise.
31817         * tests/test-copy-acl.sh: Likewise.
31818         * tests/test-copy-file.sh: Likewise.
31819
31820 2008-06-02  Bruno Haible  <bruno@clisp.org>
31821
31822         * tests/test-file-has-acl.sh: Remove unused code.
31823
31824 2008-06-01  Bruno Haible  <bruno@clisp.org>
31825
31826         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31827         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31828         messages.
31829         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31830
31831 2008-06-01  Bruno Haible  <bruno@clisp.org>
31832
31833         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31834         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31835         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31836         APIs.
31837         * modules/acl-tests (configure.ac): Remove tests now contained in
31838         m4/acl.m4.
31839
31840 2008-06-02  Jim Meyering  <meyering@redhat.com>
31841
31842         announce-gen: use a better key-server host name
31843         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31844         it may be more consistently reliable.  Suggested by Werner Koch
31845         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31846
31847 2008-06-01  Bruno Haible  <bruno@clisp.org>
31848
31849         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31850         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31851
31852 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31853
31854         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31855
31856 2008-06-01  Bruno Haible  <bruno@clisp.org>
31857
31858         New ACL tests.
31859         * tests/test-file-has-acl.sh: New file.
31860         * tests/test-file-has-acl.c: New file.
31861         * tests/test-set-mode-acl.sh: New file.
31862         * tests/test-set-mode-acl.c: New file.
31863         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31864         * tests/test-copy-acl.c: New file.
31865         * modules/acl-tests: New file, based on modules/copy-file-tests.
31866         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31867         (Depends-on): Add acl-tests.
31868         (configure.ac): Remove checks.
31869         (Makefile.am): Don't create test-sameacls program here any more.
31870
31871 2008-06-01  Bruno Haible  <bruno@clisp.org>
31872
31873         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31874         * tests/test-sameacls.c: Include progname.h.
31875         (main): Invoke set_program_name. Portability fixes for MacOS X,
31876         Solaris, HP-UX.
31877
31878 2008-06-01  Bruno Haible  <bruno@clisp.org>
31879
31880         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31881         function.
31882         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31883
31884 2008-06-01  Bruno Haible  <bruno@clisp.org>
31885
31886         * modules/rpmatch (Depends-on): Add strdup.
31887
31888 2008-06-01  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/pipe.c: Include unistd-safer.h.
31891         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31892         * modules/pipe (Depends-on): Add unistd-safer.
31893
31894 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31895
31896         * modules/autobuild (configure.ac): Call AB_INIT.
31897
31898 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31899
31900         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31901         Suggested by Bruno Haible <bruno@clisp.org>.
31902
31903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31904
31905         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31906         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31907         <bruno@clisp.org>.
31908
31909 2008-05-29  Eric Blake  <ebb9@byu.net>
31910
31911         Prefer new POSIX 200x interfaces over futimesat.
31912         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31913         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31914         when available.
31915         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31916
31917 2008-05-28  Bruno Haible  <bruno@clisp.org>
31918
31919         * modules/stpcpy (License): Change to LGPLv2+.
31920         Requested by David Lutterkort <dlutter@redhat.com>.
31921
31922 2008-05-27  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31925         current mingw.
31926         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31927
31928 2008-05-27  Bruno Haible  <bruno@clisp.org>
31929
31930         * modules/iconv_open (Link): New section, from module 'iconv'.
31931         * modules/striconv (Link): Likewise.
31932         * modules/striconveh (Link): Likewise.
31933         * modules/xstriconv (Link): Likewise.
31934         * modules/unicodeio (Link): Likewise.
31935         * modules/propername (Link): Likewise.
31936         Reported by Jim Meyering.
31937
31938 2008-05-26  Jim Meyering  <meyering@redhat.com>
31939
31940         sha256: do not artificially restrict buffer length to be < 2^32
31941         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31942         uint32_t to size_t.
31943         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31944         to match.
31945
31946         avoid unaligned access errors, e.g., on sparc
31947         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31948         direct access through a possibly-unaligned uint64* pointer.
31949         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31950         direct access through a possibly-unaligned uint32* pointer.
31951         Prompted by this patch from Tom "spot" Callaway:
31952         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31953
31954         sha512.c: fix typo in comment
31955         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31956
31957 2008-05-25  Bruno Haible  <bruno@clisp.org>
31958
31959         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31960         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31961         (Makefile.am): Update lib_SOURCES.
31962
31963 2008-05-25  Bruno Haible  <bruno@clisp.org>
31964
31965         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31966
31967 2008-05-25  Jim Meyering  <meyering@redhat.com>
31968
31969         useless-if-before-free: freed expr may have white-space differences
31970         * build-aux/useless-if-before-free: Recognize cases in which the
31971         freed expression differs from the tested one in embedded white
31972         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31973         $1 was used, so we can't make any regexp shy.  Improved tests now
31974         detect this.
31975
31976         useless-if-before-free: accept white space in the expression.
31977         * build-aux/useless-if-before-free: For now, any white space
31978         in the expression must be identical in the free argument.
31979
31980         useless-if-before-free: efficiency tweak
31981         * build-aux/useless-if-before-free: Make the expression-matching
31982         regexp "shy".
31983         Make the *outer* regexp shy, not the expr-matching one.
31984
31985         update code-in-comment to accept cast of free arg
31986         * build-aux/useless-if-before-free: Update regexp.
31987
31988 2008-05-25  Bruno Haible  <bruno@clisp.org>
31989
31990         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31991         * modules/copy-file-tests (Files, Makefile.am): Update.
31992         * tests/test-copy-file.c (func_test_copy): Update.
31993
31994 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31995
31996         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31997
31998 2008-05-23  Bruno Haible  <bruno@clisp.org>
31999
32000         Improve support for ACLs on OSF/1.
32001         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32002         Remove fallback for unknown flavors of ACLs.
32003
32004 2008-05-22  Bruno Haible  <bruno@clisp.org>
32005
32006         Add support for ACLs on OSF/1.
32007         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32008         replacements.
32009         (acl_free_text): New macro fallback.
32010         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32011         acl_free.
32012         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32013         acl_free_text function. Require AC_C_INLINE.
32014
32015 2008-05-22  Bruno Haible  <bruno@clisp.org>
32016
32017         Make copy_acl work on MacOS X 10.5.
32018         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32019         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32020         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32021         If MODE_INSIDE_ACL, don't assume that every system has the same text
32022         representation for ACLs as FreeBSD.
32023         * lib/copy-acl.c (copy_acl): Add support for platforms with
32024         !MODE_INSIDE_ACL.
32025         * lib/file-has-acl.c (file_has_acl): Likewise.
32026         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32027         FreeBSD, MacOS X, or IRIX, respectively.
32028
32029 2008-05-22  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/acl.h: Don't include <sys/acl.h>.
32032         (GETACLCNT): Move fallback to lib/acl-internal.h.
32033         * lib/acl-internal.h: Include <sys/acl.h> here.
32034         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32035
32036 2008-05-22  Bruno Haible  <bruno@clisp.org>
32037
32038         Split off copy_acl function to separate file.
32039         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32040         * lib/acl.c (copy_acl): Moved function to separate file.
32041         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32042         * modules/acl (Files): Add lib/copy-acl.c.
32043         (Makefiles.am): Augment lib_SOURCES.
32044
32045 2008-05-22  Bruno Haible  <bruno@clisp.org>
32046
32047         * modules/copy-file-tests: New file.
32048         * tests/test-copy-file.sh: New file.
32049         * tests/test-copy-file.c: New file.
32050         * tests/test-copy-file-sameacls.c: New file.
32051
32052 2008-05-22  Eric Blake  <ebb9@byu.net>
32053
32054         Avoid gcc warning.
32055         * tests/test-memcmp.c (main): Pass NULL indirectly.
32056
32057 2008-05-21  Bruno Haible  <bruno@clisp.org>
32058
32059         Add reference doc about ACLs.
32060         * doc/acl-resources.txt: New file.
32061         * doc/acl-cygwin.txt: New file.
32062
32063 2008-05-21  Bruno Haible  <bruno@clisp.org>
32064
32065         Avoid one more warning from gcc.
32066         * lib/vasnprintf.c (IF_LINT): Update comments.
32067         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32068
32069 2008-05-21  Jim Meyering  <meyering@redhat.com>
32070
32071         avoid a warning from gcc
32072         * lib/vasnprintf.c (IF_LINT): Define.
32073         (scale10_round_decimal_long_double):
32074         Use it to avoid a "may be used uninitialized" warning.
32075         (scale10_round_decimal_double): Likewise.
32076
32077 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32078
32079         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32080         declared.
32081
32082 2008-05-20  Bruno Haible  <bruno@clisp.org>
32083
32084         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32085         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32086
32087 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32088
32089         * modules/memcmp-tests: New file.
32090         * tests/test-memcmp.c: New file.
32091
32092 2008-05-19  Bruno Haible  <bruno@clisp.org>
32093
32094         * modules/propername (Notice, configure.ac): Put quoted "..." into
32095         --keyword option.
32096         * lib/propername.h: Update comments accordingly.
32097         Reported by Eric Blake.
32098
32099 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32100
32101         * modules/getpass-gnu (Depends-on): Add fseeko.
32102
32103 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32104
32105         * modules/base64-tests: New file.
32106
32107 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32108
32109         * lib/base64.c (base64_decode_ctx): If a decode context structure
32110         was passed in use it to ignore newlines.  If a context structure
32111         was _not_ passed in, continue to treat newlines as garbage (this
32112         is the historical behavior).  Formerly base64_decode.
32113         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32114         takes a decode context structure.
32115         * lib/base64.h (base64_decode): Macro for four-argument calls.
32116         (base64_decode_alloc): Likewise.
32117         * lib/base64.c (base64_decode_ctx): If a decode context structure
32118         was passed in use it to ignore newlines.  If a context structure
32119         was _not_ passed in, continue to treat newlines as garbage (this
32120         is the historical behavior).  Formerly base64_decode.
32121         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32122         takes a decode context structure.
32123         * lib/base64.h (base64_decode): Macro for four-argument calls.
32124         (base64_decode_alloc): Likewise.
32125
32126 2008-05-19  Jim Meyering  <meyering@redhat.com>
32127
32128         avoid a warning from gcc
32129         * lib/trim.c (IF_LINT): Define.
32130         (trim2): Use it to avoid a "may be used uninitialized" warning.
32131
32132         Fix doc typo.
32133         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32134
32135 2008-05-19  Bruno Haible  <bruno@clisp.org>
32136
32137         * doc/glibc-functions/getpass.texi: Document limits of other
32138         implementations.
32139
32140 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32141             Bruno Haible <bruno@clisp.org>
32142
32143         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32144
32145 2008-05-18  Bruno Haible  <bruno@clisp.org>
32146
32147         * modules/propername: New file, from GNU gettext.
32148         * lib/propername.h: New file, from GNU gettext.
32149         * lib/propername.c: New file, from GNU gettext.
32150         * MODULES.html.sh (Internationalization functions): Add propername.
32151
32152 2008-05-16  Jim Meyering  <meyering@redhat.com>
32153             Bruno Haible  <bruno@clisp.org>
32154
32155         Avoid some warnings from "gcc -Wshadow".
32156         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32157
32158 2008-05-15  Eric Blake  <ebb9@byu.net>
32159
32160         Extend previous patch to cygwin 1.7.0.
32161         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32162         fast implementation in cygwin >= 1.7.0.
32163         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32165
32166 2008-05-15  Bruno Haible  <bruno@clisp.org>
32167
32168         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32169         implementation in glibc >= 2.9.
32170         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32172
32173 2008-05-15  Bruno Haible  <bruno@clisp.org>
32174
32175         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32176         (Unicode string functions): Add unilbrk/*.
32177         Reported by Karl Berry.
32178
32179 2008-05-15  Eric Blake  <ebb9@byu.net>
32180
32181         Fix violation of <stdbool.h> replacement in regex.
32182         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32183         * lib/regexec.c (re_search_internal): Likewise.
32184         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32185
32186 2008-05-15  Jim Meyering  <meyering@redhat.com>
32187
32188         avoid distracting test output when git or cvs is not found
32189         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32190         * tests/test-vc-list-files-git.sh: Likewise.
32191
32192 2008-05-15  Eric Blake  <ebb9@byu.net>
32193
32194         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32195         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32196         glibc version.
32197         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32198         * doc/posix-functions/strstr.texi (strstr): Likewise.
32199         * lib/str-two-way.h (MAX): Sychronize with glibc.
32200
32201 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32202
32203         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32204         opr.ctx_type.
32205         (calc_first): Initialize constraint field.
32206         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32207         Fix grammar.
32208         (duplicate_node): Merge constraint field for all node types.
32209         (calc_eclosure_iter): Look at constraint field for all node types.
32210         * lib/regex_internal.c (create_cd_newstate): Don't look at
32211         opr.ctx_type.
32212
32213 2008-05-14  Bruno Haible  <bruno@clisp.org>
32214
32215         Help GCC to do better code generation.
32216         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32217         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32218         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32219         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32220         Declare with attribute 'malloc' if supported.
32221
32222 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32223
32224         use "echo STR|wc -c" rather than unportable "expr length STR"
32225         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32226         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32227
32228 2008-05-14  Jim Meyering  <meyering@redhat.com>
32229
32230         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32231         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32232         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32233         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32234         via Collin Lasse.
32235
32236 2008-05-14  Eric Blake  <ebb9@byu.net>
32237
32238         Avoid quadratic growth in gl_LIBSOURCES.
32239         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32240         Suggested by Bruno Haible.
32241
32242         Test xmemdup0.
32243         * modules/xmemdup0-tests: New file.
32244         * tests/test-xmemdup0.c: Likewise.
32245
32246 2008-05-13  Eric Blake  <ebb9@byu.net>
32247
32248         Split xmemdup0 into its own module.
32249         * modules/xmemdup0: New file.
32250         * lib/xmemdup0.h: Likewise.
32251         * lib/xmemdup0.c: Likewise.
32252         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32253         * lib/xalloc.h (xmemdup0): Remove.
32254         * lib/xmalloc.c (xmemdup0): Likewise.
32255
32256 2008-05-13  Eric Blake  <ebb9@byu.net>
32257             Bruno Haible  <bruno@clisp.org>
32258
32259         Reduce number of forks required during autoconf.
32260         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32261         and gl_LIBSOURCES_DIR.
32262         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32263         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32264         m4_syscmd per file.
32265         <m4_foreach_w>: Move...
32266         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32267
32268 2008-05-13  Eric Blake  <ebb9@byu.net>
32269
32270         * gnulib-tool: Fix various comment typos.
32271
32272 2008-05-12  Bruno Haible  <bruno@clisp.org>
32273
32274         Tailor the linebreaking algorithm.
32275         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32276
32277 2008-05-12  Bruno Haible  <bruno@clisp.org>
32278
32279         Update to Unicode 5.0.0.
32280         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32281         LBP_JV, LBP_JT. Redistribute values.
32282         (unilbrk_table): Change size.
32283         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32284         Unicode TR#14 rev. 22.
32285         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32286         LBP_JV, LBP_JT. Redistribute values.
32287         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32288         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32289         Update.
32290         * lib/unilbrk/lbrkprop1.h: Regenerated.
32291         * lib/unilbrk/lbrkprop2.h: Regenerated.
32292         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32293         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32294         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32295         Likewise.
32296         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32297         Likewise.
32298         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32299         result.
32300         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32301         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32302         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32303         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32304         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32305         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32306
32307 2008-05-11  Bruno Haible  <bruno@clisp.org>
32308
32309         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32310
32311 2008-05-11  Bruno Haible  <bruno@clisp.org>
32312
32313         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32314         * modules/unilbrk/gen-lbrk: New file.
32315
32316 2008-05-11  Bruno Haible  <bruno@clisp.org>
32317
32318         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32319         * m4/sha512.m4 (gl_SHA512): Likewise.
32320
32321 2008-05-11  Jim Meyering  <meyering@redhat.com>
32322
32323         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32324         * modules/crypto/sha256: New file.
32325         * modules/crypto/sha512: Likewise.
32326         * lib/sha256.c: Likewise.
32327         * lib/sha256.h: Likewise.
32328         * lib/sha512.c: Likewise.
32329         * lib/sha512.h: Likewise.
32330         * lib/u64.h: Likewise.
32331         * m4/sha256.m4: Likewise.
32332         * m4/sha512.m4: Likewise.
32333         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32334
32335 2008-05-10  Bruno Haible  <bruno@clisp.org>
32336
32337         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32338         (Input/Output <stdio.h>): Add xprintf.
32339         (Signal handling <signal.h>): Add strsignal.
32340         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32341         (Core language properties): Add func.
32342         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32343         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32344         strings.
32345         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32346         (Input/output): New section.
32347         (File system functions): Add openat-die, stat-macros.
32348         (Networking functions): Add sockets.
32349         (Unicode string functions): Add unictype/*.
32350         (Support for building libraries and executables): Add gperf.
32351         (Support for building documentation): Add agpl-3.0.
32352         (Misc): Add nocrash.
32353
32354 2008-05-10  Bruno Haible  <bruno@clisp.org>
32355
32356         * modules/unictype/gen-ctype: New file.
32357
32358 2008-05-10  Jim Meyering  <meyering@redhat.com>
32359
32360         Make chdir-safer.c more efficient on a system with no symlinks.
32361         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32362         also if ELOOP is zero.  Suggested by Bruno Haible.
32363
32364         Make chdir-safer.c slightly safer.
32365         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32366         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32367
32368         Avoid compile failure on systems without ELOOP (like mingw).
32369         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32370         Reported by Bruno Haible.
32371
32372 2008-05-10  Bruno Haible  <bruno@clisp.org>
32373
32374         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32375         (is_utf8_encoding): Use a case-insensitive comparison.
32376         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32377         streq.
32378
32379 2008-05-10  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32382         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32383         * lib/unilbrk/ulc-common.h (iconv_string_length,
32384         iconv_string_keeping_offsets): Remove declarations.
32385         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32386         Don't include <iconv.h>, streq.h, xsize.h.
32387         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32388         conversion.
32389         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32390         <iconv.h>, streq.h, xsize.h.
32391         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32392         conversion.
32393         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32394         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32395         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32396         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32397
32398 2008-05-10  Bruno Haible  <bruno@clisp.org>
32399
32400         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32401         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32402
32403         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32404         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32405
32406         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32407         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32408
32409         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32410         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32411
32412         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32413         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32414
32415         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32416         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32417
32418         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32419         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32420
32421         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32422         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32423
32424 2008-05-10  Bruno Haible  <bruno@clisp.org>
32425
32426         Split up 'linebreak' module.
32427         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32428         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32429         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32430         modifications.
32431         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32432         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32433         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32434         lib/linebreak.c.
32435         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32436         lib/linebreak.c.
32437         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32438         lib/linebreak.c.
32439         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32440         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32441         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32442         lib/linebreak.c.
32443         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32444         lib/linebreak.c.
32445         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32446         lib/linebreak.c.
32447         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32448         lib/linebreak.c.
32449         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32450         lib/linebreak.c.
32451         * modules/unilbrk/base: New file.
32452         * modules/unilbrk/tables: New file.
32453         * modules/unilbrk/u8-possible-linebreaks: New file.
32454         * modules/unilbrk/u16-possible-linebreaks: New file.
32455         * modules/unilbrk/u32-possible-linebreaks: New file.
32456         * modules/unilbrk/ulc-common: New file.
32457         * modules/unilbrk/ulc-possible-linebreaks: New file.
32458         * modules/unilbrk/u8-width-linebreaks: New file.
32459         * modules/unilbrk/u16-width-linebreaks: New file.
32460         * modules/unilbrk/u32-width-linebreaks: New file.
32461         * modules/unilbrk/ulc-width-linebreaks: New file.
32462         * lib/linebreak.h: Remove file.
32463         * lib/linebreak.c: Remove file.
32464         * m4/linebreak.m4: Remove file.
32465         * modules/linebreak: Remove file.
32466         * NEWS: Mention the changes.
32467
32468 2008-05-09  Eric Blake  <ebb9@byu.net>
32469
32470         Add xmemdup0.
32471         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32472         implementation.
32473         * lib/xmalloc.c (xmemdup0): New C implementation.
32474
32475 2008-05-08  Bruno Haible  <bruno@clisp.org>
32476
32477         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32478
32479 2008-05-07  Eric Blake  <ebb9@byu.net>
32480
32481         Support cross-compilation of <wctype.h>.
32482         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32483         AC_CACHE_CHECK.
32484
32485 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32486
32487         * build-aux/vc-list-files: Add support for bzr.
32488
32489 2008-05-03  Jim Meyering  <meyering@redhat.com>
32490
32491         avoid failed assertion with tight malloc
32492         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32493
32494 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32495
32496         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32497         are needed from arpa/inet.h.
32498         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32499         Reported by Bruno Haible.
32500
32501 2008-05-02  Jim Meyering  <meyering@redhat.com>
32502
32503         avoid compilation error on FreeBSD 6
32504         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32505
32506 2008-05-01  Jim Meyering  <meyering@redhat.com>
32507
32508         useless-if-before-free: correct --help's exit status description
32509         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32510         for one or more matches, etc.  Reported by Bruno Haible.
32511
32512         vc-list-files: make the stand-alone gnulib test work
32513         * modules/vc-list-files-tests (configure.ac):
32514         Define and AC_SUBST abs_aux_dir.
32515         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32516         $(abs_top_srcdir) to each script and having each of them
32517         duplicate the work of setting PATH, set PATH here, using
32518         the new variable, abs_aux_dir instead.
32519         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32520         * tests/test-vc-list-files-git.sh: Likewise.
32521         Reported by Bruno Haible.
32522
32523 2008-05-01  Bruno Haible  <bruno@clisp.org>
32524
32525         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32526         reallocation. Rename 'done' to 'found_delimiter'.
32527
32528 2008-05-01  Jim Meyering  <meyering@redhat.com>
32529
32530         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32531         * build-aux/vc-list-files: Use `...`, not $(...).
32532
32533 2008-04-30  Jim Meyering  <meyering@redhat.com>
32534
32535         add tests for vc-list-files
32536         * modules/vc-list-files-tests: New module.
32537         * tests/test-vc-list-files-cvs.sh: New file.
32538         * tests/test-vc-list-files-git.sh: New file.
32539
32540         avoid a warning from gcc
32541         * lib/getndelim2.c (IF_LINT): Define.
32542         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32543
32544         vc-list-files: work properly with build-aux/cvsu, too
32545         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32546         to all cvs-based clauses.
32547
32548         vc-list-files: work properly in the CVS+awk case, too
32549         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32550
32551         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32552         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32553         take more than one file argument, so .  Add quotes, just in case $dir
32554         ever contains a shell meta-character.  Prompted by Soren Hansen in
32555         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32556
32557 2008-04-29  Eric Blake  <ebb9@byu.net>
32558
32559         Optimize getndelim2 to use block operations when possible.
32560         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32561         freadseek, and memchr2.
32562         * lib/getndelim2.c (getndelim2): Use them for block reads.
32563
32564 2008-04-29  Bruno Haible  <bruno@clisp.org>
32565
32566         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32567         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32568         * modules/inet_ntop (Depends-on): Add extensions.
32569         * modules/inet_pton (Depends-on): Likewise.
32570         Reported by Simon Josefsson.
32571
32572 2008-04-29  Jim Meyering  <meyering@redhat.com>
32573
32574         When the is more than one match in a block, match all of them.
32575         * build-aux/useless-if-before-free: Iterate through each block
32576         until there are no more matches.
32577
32578         Fix broken useless-if-before-free script.
32579         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32580         the expression to match cast of argument to free-like function.
32581
32582 2008-04-29  Eric Blake  <ebb9@byu.net>
32583
32584         Use new header.
32585         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32586
32587 2008-04-29  Jim Meyering  <meyering@redhat.com>
32588
32589         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32590         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32591         by gnulib to exist and to declare e.g., inet_ntop.
32592         Don't include "inet_ntop.h", now removed.
32593
32594         * m4/arpa_inet_h.m4: Remove trailing blanks.
32595
32596 2008-04-29  Eric Blake  <ebb9@byu.net>
32597
32598         Silence valgrind on safe reads beyond potential array bounds.
32599         * lib/rawmemchr.valgrind: New file.
32600         * lib/strchrnul.valgrind: Likewise.
32601         * modules/rawmemchr (Files): Distribute new file.
32602         * modules/strchrnul (Files): Likewise.
32603         Suggested by Bruno Haible.
32604
32605 2008-04-29  Bruno Haible  <bruno@clisp.org>
32606
32607         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32608         (inet_ntop, inet_pton): Change portability warning's wording.
32609         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32610         Invoke gl_CHECK_NEXT_HEADERS.
32611         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32612         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32613         set ARPA_INET_H.
32614         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32615         * modules/arpa_inet (Description): No longer only for systems that
32616         lack it.
32617         (Depends-on): Add include_next.
32618         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32619         HAVE_ARPA_INET_H.
32620
32621 2008-04-29  Jim Meyering  <meyering@redhat.com>
32622
32623         * modules/mkdir (License): Re-license as LGPLv2+.
32624
32625 2008-04-29  Bruno Haible  <bruno@clisp.org>
32626
32627         * modules/rawmemchr (Maintainer): Set to Eric.
32628         * modules/strchrnul (Maintainer): Likewise.
32629
32630 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32631
32632         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32633         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32634
32635         * modules/arpa_inet (arpa/inet.h): Use them.
32636
32637 2008-04-28  Eric Blake  <ebb9@byu.net>
32638
32639         Test getndelim2.
32640         * modules/getndelim2-tests: New file.
32641         * tests/test-getndelim2.c: Likewise.
32642         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32643         stream.
32644         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32645
32646         * MODULES.html.sh: Document new module.
32647
32648 2008-04-20  Bruno Haible  <bruno@clisp.org>
32649
32650         * lib/c-stack.c (die): Use raise.
32651         * modules/c-stack (Depends-on): Add raise.
32652
32653 2008-04-28  Bruno Haible  <bruno@clisp.org>
32654
32655         Expect rpmatch to be declared.
32656         * lib/yesno.c (rpmatch): Remove declaration.
32657
32658         Declare rpmatch.
32659         * lib/stdlib.in.h (rpmatch): New declaration.
32660         * lib/rpmatch.c: Include <stdlib.h> first.
32661         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32662         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32664         HAVE_RPMATCH.
32665         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32667         (Include): Set to <stdlib.h>.
32668         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32669         HAVE_RPMATCH.
32670         * NEWS: Document the change.
32671
32672 2008-04-28  Bruno Haible  <bruno@clisp.org>
32673
32674         Change rpmatch to use nl_langinfo when appropriate.
32675         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32676         (N_): New macro.
32677         (localized_pattern): New function/macro.
32678         (try): Remove match, nomatch arguments. Copy the pattern into safe
32679         memory before caching it.
32680         (rpmatch): Use localized_pattern. Add translator comments.
32681         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32682         Suggested by Eric Blake.
32683         * modules/rpmatch (Depends-on): Add stdbool.
32684
32685 2008-04-28  Eric Blake  <ebb9@byu.net>
32686
32687         Add rawmemchr module, matching glibc.
32688         * modules/string (Makefile.am): New indicator.
32689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32690         * lib/string.in.h (rawmemchr): Declare when appropriate.
32691         * modules/rawmemchr: New file.
32692         * m4/rawmemchr.m4: Likewise.
32693         * lib/rawmemchr.c: Likewise.
32694         * modules/rawmemchr-tests: Likewise.
32695         * tests/test-rawmemchr.c: Likewise.
32696         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32697         module.
32698         * modules/strchrnul (Depends-on): Add rawmemchr.
32699         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32700
32701         Whitespace cleanup.
32702         * tests/test-strchrnul.c: Reindent.
32703         * lib/strchrnul.c: Likewise.
32704
32705         Optimize and test strchrnul.
32706         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32707         * modules/strchrnul-tests: New file.
32708         * tests/test-strchrnul.c: Likewise.
32709
32710         Remove intprops dependency.
32711         * modules/memchr (Depends-on): Remove intprops.
32712         * modules/memrchr (Depends-on): Likewise.
32713         * modules/memchr2 (Depends-on): Likewise.
32714         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32715         * lib/memrchr.c (__memrchr): Likewise.
32716         * lib/memrchr2.c (memchr2): Likewise.
32717         Reported by Simon Josefsson.
32718
32719 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32720
32721         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32722         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32723
32724 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32725
32726         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32727
32728         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32729
32730         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32731
32732         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32733         declarations.
32734         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32735
32736         * m4/inet_pton.m4: Don't check for header files.
32737
32738         * m4/inet_ntop.m4: Don't check for header files.
32739
32740 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32741
32742         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32743         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32744         trigger for cygwin).
32745         Reported by Bruno Haible  <bruno@clisp.org>.
32746
32747 2008-04-28  Bruno Haible  <bruno@clisp.org>
32748
32749         * doc/posix-functions/strdup.texi: Mention mingw problem.
32750
32751 2008-04-27  Bruno Haible  <bruno@clisp.org>
32752
32753         * modules/stat-time-tests (Depends-on): Add sleep.
32754         * tests/test-stat-time.c (force_unlink): New function.
32755         (cleanup): Use it.
32756         (test_mtime): Remove the ctime related tests.
32757         (test_ctime): New function, containing the ctime related tests.
32758         (main): Call test_ctime, except on native Windows platforms.
32759
32760 2008-04-27  Bruno Haible  <bruno@clisp.org>
32761
32762         * lib/rpmatch.c (rpmatch): Add some comments.
32763         Reported by James Youngman <jay@gnu.org>.
32764
32765 2008-04-27  Bruno Haible  <bruno@clisp.org>
32766
32767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32768         quiet NaNs.
32769
32770 2008-04-27  Bruno Haible  <bruno@clisp.org>
32771
32772         Make test-yesno.sh work on mingw.
32773         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32774         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32775         (main): Set stdin to binary mode.
32776         * modules/yesno-tests (Depends-on): Add binary-io.
32777
32778 2008-04-27  Bruno Haible  <bruno@clisp.org>
32779
32780         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32781         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32782         argument that lie outside the IEEE 854 domain.
32783         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32784         (gl_ISFINITE): Use it.
32785         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32786
32787 2008-04-27  Bruno Haible  <bruno@clisp.org>
32788
32789         Allow local renaming in config.h.
32790         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32791
32792 2008-04-27  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/memchr.c (__memchr): Change type of 'i'.
32795         * lib/memchr2.c (memchr2): Likewise.
32796
32797 2008-04-26  Eric Blake  <ebb9@byu.net>
32798         and Bruno Haible  <bruno@clisp.org>
32799
32800         Optimize and test memrchr.
32801         * modules/memrchr (Depends-on): Add intprops.
32802         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32803         * modules/memrchr-tests: New file.
32804         * tests/test-memrchr.c: New file.
32805
32806 2008-04-26  Bruno Haible  <bruno@clisp.org>
32807
32808         Add tentative support for DragonFly BSD.
32809         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32810         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32811         fp.
32812         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32813         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32814         * lib/fpurge.c (fpurge): Likewise.
32815         * lib/freadable.c (freaadable): Likewise.
32816         * lib/freadahead.c (freadahead): Likewise.
32817         * lib/freading.c (freading): Likewise.
32818         * lib/freadptr.c (freadptr): Likewise.
32819         * lib/freadseek.c (freadptrinc): Likewise.
32820         * lib/fseeko.c (fseeko): Likewise.
32821         * lib/fseterr.c (fseterr): Likewise.
32822         * lib/fwritable.c (fwritable): Likewise.
32823         * lib/fwriting.c (fwriting): Likewise.
32824
32825 2008-04-26  Bruno Haible  <bruno@clisp.org>
32826
32827         * lib/stdio-impl.h: New file.
32828         * lib/fbufmode.c: Include stdio-impl.h.
32829         (fbufmode): Use fp_, remove redundant #defines.
32830         * lib/fflush.c: Include stdio-impl.h.
32831         (clear_ungetc_buffer): Remove redundant #defines.
32832         * lib/fpurge.c: Include stdio-impl.h.
32833         (fpurge): Remove redundant #defines.
32834         * lib/freadable.c: Include stdio-impl.h.
32835         (freadable): Remove redundant #defines.
32836         * lib/freadahead.c: Include stdio-impl.h.
32837         (freadahead): Remove redundant #defines.
32838         * lib/freading.c: Include stdio-impl.h.
32839         (freading): Remove redundant #defines.
32840         * lib/freadptr.c: Include stdio-impl.h.
32841         (freadptr): Remove redundant #defines.
32842         * lib/freadseek.c: Include stdio-impl.h.
32843         (freadptrinc): Remove redundant #defines.
32844         * lib/fseeko.c: Include stdio-impl.h.
32845         (rpl_fseeko): Remove redundant #defines.
32846         * lib/fseterr.c: Include stdio-impl.h.
32847         (fseterr): Remove redundant #defines.
32848         * lib/fwritable.c: Include stdio-impl.h.
32849         (fwritable: Remove redundant #defines.
32850         * lib/fwriting.c: Include stdio-impl.h.
32851         (fwriting): Remove redundant #defines.
32852         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32853         * modules/fflush (Files): Likewise.
32854         * modules/fpurge (Files): Likewise.
32855         * modules/freadable (Files): Likewise.
32856         * modules/freadahead (Files): Likewise.
32857         * modules/freading (Files): Likewise.
32858         * modules/freadptr (Files): Likewise.
32859         * modules/freadseek (Files): Likewise.
32860         * modules/fseeko (Files): Likewise.
32861         * modules/fseterr (Files): Likewise.
32862         * modules/fwritable (Files): Likewise.
32863         * modules/fwriting (Files): Likewise.
32864
32865 2008-04-26  Bruno Haible  <bruno@clisp.org>
32866
32867         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32868         restore_seek_optimization, update_fpos_cache): New functions, extracted
32869         from rpl_fflush.
32870         (rpl_fflush): Use them.
32871         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32872         (gl_REPLACE_FFLUSH): Use it.
32873
32874 2008-04-26  Bruno Haible  <bruno@clisp.org>
32875
32876         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32877         on Solaris.
32878         * tests/test-xstrtoimax.sh: Likewise.
32879         * tests/test-xstrtoumax.sh: Likewise.
32880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32881
32882 2008-04-26  Bruno Haible  <bruno@clisp.org>
32883
32884         * modules/memchr-tests: New file.
32885         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32886
32887 2008-04-26  Eric Blake  <ebb9@byu.net>
32888             Bruno Haible  <bruno@clisp.org>
32889
32890         * lib/memchr.c: Include intprops.h.
32891         (__memchr): Optimize parallel detection of matching bytes. Rename local
32892         variables. Add explanatory comments.
32893
32894 2008-04-26  Bruno Haible  <bruno@clisp.org>
32895
32896         Fix module 'memchr', broken since 2000-10-28.
32897         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32898
32899 2008-04-26  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32902         comments.
32903
32904 2008-04-25  Eric Blake  <ebb9@byu.net>
32905
32906         Use native fstatat on cygwin 1.7.0.
32907         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32908         first.
32909
32910 2008-04-23  Eric Blake  <ebb9@byu.net>
32911
32912         Improve memchr2 performance.
32913         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32914         NUL bytes.
32915         * modules/memchr2 (Depends-on): Use intprops.h.
32916
32917 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32918
32919         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32920         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32921         <blp@cs.stanford.edu>.
32922
32923 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32924
32925         * lib/arpa_inet.in.h: New file.
32926
32927         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32928         (Makefile.am): Sed in substitute header file.
32929
32930         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32931         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32932
32933         * modules/inet_ntop (configure.ac): Use
32934         gl_ARPA_INET_MODULE_INDICATOR.
32935
32936         * modules/inet_pton (configure.ac): Use
32937         gl_ARPA_INET_MODULE_INDICATOR.
32938
32939 2008-04-22  Jim Meyering  <meyering@redhat.com>
32940
32941         * modules/verify (License): Re-license as LGPLv2+.
32942
32943 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32944
32945         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32946         parameter to void* as per POSIX standard (MinGW uses char*).
32947
32948 2008-04-21  Bruno Haible  <bruno@clisp.org>
32949
32950         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32951         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32952         Define to replacements if REPLACE_ISWCNTRL is 1.
32953         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32954         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32955         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32956         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32957         what it fixes.
32958         * doc/posix-functions/iswalpha.texi: Likewise.
32959         * doc/posix-functions/iswblank.texi: Likewise.
32960         * doc/posix-functions/iswcntrl.texi: Likewise.
32961         * doc/posix-functions/iswdigit.texi: Likewise.
32962         * doc/posix-functions/iswgraph.texi: Likewise.
32963         * doc/posix-functions/iswlower.texi: Likewise.
32964         * doc/posix-functions/iswprint.texi: Likewise.
32965         * doc/posix-functions/iswpunct.texi: Likewise.
32966         * doc/posix-functions/iswspace.texi: Likewise.
32967         * doc/posix-functions/iswupper.texi: Likewise.
32968         * doc/posix-functions/iswxdigit.texi: Likewise.
32969         Reported by Alain Guibert.
32970
32971 2008-04-21  Bruno Haible  <bruno@clisp.org>
32972
32973         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32974         Patch by Alain Guibert.
32975
32976 2008-04-21  Bruno Haible  <bruno@clisp.org>
32977
32978         Fix test failures on mingw.
32979         * tests/test-xstrtol.c (print_no_progname): New function.
32980         (main): Install it in error_print_progname hook.
32981         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32982         * tests/test-xstrtoimax.sh: Likewise.
32983         * tests/test-xstrtoumax.sh: Likewise.
32984
32985 2008-04-21  Bruno Haible  <bruno@clisp.org>
32986
32987         Fix test failure on mingw.
32988         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32989
32990 2008-04-21  Bruno Haible  <bruno@clisp.org>
32991
32992         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32993         Actually assign a value.
32994
32995 2008-04-20  Bruno Haible  <bruno@clisp.org>
32996
32997         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32998         take 2.
32999         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33000         'canonicalize-lgpl' module is also used.
33001         * lib/canonicalize-lgpl.c: Undo last change.
33002         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33003
33004 2008-04-20  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33007         config.h. Provide _mkdir based fallback for mingw.
33008         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33009         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33010         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33011         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33012         rather than defining mkdir in config.h.
33013         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33014         (gl_SYS_STAT_H_DEFAULTS): New macro.
33015         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33016         HAVE_IO_H any more.
33017         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33018         HAVE_DECL_MKDIR and HAVE_IO_H.
33019
33020 2008-04-20  Bruno Haible  <bruno@clisp.org>
33021
33022         * lib/isapipe.c: Port to native Windows platforms.
33023
33024 2008-04-20  Bruno Haible  <bruno@clisp.org>
33025
33026         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33027
33028 2008-04-21  Eric Blake  <ebb9@byu.net>
33029
33030         Work around preprocessors that don't handle UINTMAX_MAX.
33031         * lib/memchr2.c (memchr2): Avoid embedded #if.
33032         Reported by Alain Guibert, fix suggested by Bruno Haible.
33033
33034 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33035
33036         * doc/posix-functions/strftime.texi (strftime): Explain better
33037         Windows incompatibility.  Suggested by Micah Cowan
33038         <micah@cowan.name>.
33039
33040 2008-04-20  Bruno Haible  <bruno@clisp.org>
33041
33042         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33043         unistr/u8-mblen.
33044
33045 2008-04-20  Bruno Haible  <bruno@clisp.org>
33046
33047         Fix test failure on platforms with non-GNU iconv.
33048         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33049         (U_TO_U8): Use it, rather than u16_to_u8.
33050         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33051         units at the end of the input string.
33052         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33053
33054 2008-04-20  Bruno Haible  <bruno@clisp.org>
33055
33056         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33057         when the resulting length is 0.
33058         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33059
33060 2008-04-20  Bruno Haible  <bruno@clisp.org>
33061
33062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33063         works.
33064         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33065
33066 2008-04-20  Bruno Haible  <bruno@clisp.org>
33067
33068         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33069         * modules/tsearch-tests (configure.ac): Test for initstate function.
33070
33071 2008-04-20  Bruno Haible  <bruno@clisp.org>
33072
33073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33074         for nlink_t if missing.
33075         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33076
33077 2008-04-19  Bruno Haible  <bruno@clisp.org>
33078
33079         Work around snprintf bug on Linux libc5.
33080         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33082         gl_SNPRINTF_SIZE1.
33083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33084         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33085         that test failed.
33086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33087         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33088         * modules/snprintf (Files): Add m4/printf.m4.
33089         * modules/vsnprintf (Files): Likewise.
33090         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33091         * doc/posix-functions/vsnprintf.texi: Likewise.
33092
33093 2008-04-19  Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33096         from 0.0058 to less than 10^-7.
33097
33098 2008-04-19  Bruno Haible  <bruno@clisp.org>
33099
33100         Fix rounding when a precision is given.
33101         * lib/vasnprintf.c (is_borderline): New function.
33102         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33103         9...9x.
33104         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33105         %e, %g.
33106         * tests/test-vasprintf-posix.c (test_function): Likewise.
33107         * tests/test-snprintf-posix.h (test_function): Likewise.
33108         * tests/test-sprintf-posix.h (test_function): Likewise.
33109         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33110         * tests/test-printf-posix.h (test_function): Likewise.
33111         * tests/test-printf-posix.output: Update.
33112         Reported by John Darrington <john@darrington.wattle.id.au> via
33113         Ben Pfaff <blp@cs.stanford.edu>.
33114
33115 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33116
33117         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33118         Suggested by Bruno Haible <bruno@clisp.org>.
33119
33120 2008-04-17  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33123         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33124         implementation.
33125         Patch by Bruce Merry <bmerry@gmail.com>.
33126
33127 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33128
33129         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33130         doesn't work under Windows.
33131
33132 2008-04-16  Bruno Haible  <bruno@clisp.org>
33133
33134         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33135         New macros.
33136         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33137         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33138         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33139         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33140         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33141         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33142         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33143         macros.
33144         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33145         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33146         Northern Sotho, Uighur.
33147
33148 2008-04-16  Bruno Haible  <bruno@clisp.org>
33149
33150         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33151         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33152         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33153         Reported by Daniel Bergström <daniel@octocode.com>.
33154
33155 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33156             Bruno Haible  <bruno@clisp.org>
33157
33158         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33159         function.
33160         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33161         New functions, mostly extracted from gl_locale_name_default.
33162         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33163
33164 2008-04-16  Eric Blake  <ebb9@byu.net>
33165
33166         Adjust strtod detection to catch glibc 2.7 bug.
33167         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33168         Reported by John Gatewood Ham.
33169
33170 2008-04-16  Bruno Haible  <bruno@clisp.org>
33171
33172         Add tentative support for Linux libc5.
33173         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33174         * lib/fpurge.c (fpurge): Likewise.
33175         * lib/freadable.c (freadable): Likewise.
33176         * lib/freadahead.c (freadahead): Likewise.
33177         * lib/freading.c (freading): Likewise.
33178         * lib/freadptr.c (freadptr): Likewise.
33179         * lib/freadseek.c (freadptrinc): Likewise.
33180         * lib/fseeko.c (rpl_fseeko): Likewise.
33181         * lib/fseterr.c (fseterr): Likewise.
33182         * lib/fwritable.c (fwritable): Likewise.
33183         * lib/fwriting.c (fwriting): Likewise.
33184         Reported by Alain Guibert <alguibert+bts@free.fr>.
33185
33186 2008-04-15  Bruno Haible  <bruno@clisp.org>
33187
33188         * modules/mathl (configure.ac): Define module indicator.
33189
33190 2008-04-15  Bruno Haible  <bruno@clisp.org>
33191
33192         * lib/logl.c (logl): Remove unused variables.
33193
33194 2008-04-15  Bruno Haible  <bruno@clisp.org>
33195
33196         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33197         fails.
33198
33199 2008-04-15  Bruno Haible  <bruno@clisp.org>
33200
33201         * lib/trim.c (trim2): Fix argument of isspace() macro.
33202
33203 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33204
33205         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33206         to 0.
33207         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33208
33209 2008-04-14  Bruno Haible  <bruno@clisp.org>
33210
33211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33212         AC_LANG_PROGRAM argument.
33213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33214         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33216         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33217         * m4/math_h.m4 (gl_MATH_H): Likewise.
33218         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33220         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33221         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33222         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33223         * m4/regex.m4 (gl_REGEX): Likewise.
33224         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33225         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33229         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33232
33233 2008-04-14  Jim Meyering  <meyering@redhat.com>
33234
33235         test-strtod: fix typos: s/abs/fabs/
33236         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33237
33238 2008-04-13  Bruno Haible  <bruno@clisp.org>
33239
33240         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33241         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33242         module is also used and while not building the reloc-wrapper.
33243
33244 2008-04-13  Bruno Haible  <bruno@clisp.org>
33245
33246         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33247
33248 2008-04-13  Bruno Haible  <bruno@clisp.org>
33249
33250         Fix AIX compilation failure introduced on 2008-04-02.
33251         * tests/test-frexp.c (exp): Undefine before redefining.
33252         * tests/test-frexpl.c (exp): Likewise.
33253
33254 2008-04-13  Bruno Haible  <bruno@clisp.org>
33255
33256         Work around a HP-UX stdio bug.
33257         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33258         * tests/test-ftello.c (main): Likewise.
33259         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33260         * doc/posix-functions/ftello.texi: Likewise.
33261
33262 2008-04-13  Bruno Haible  <bruno@clisp.org>
33263
33264         Make test-signbit pass on HP-UX/hppa.
33265         * tests/test-signbit.c (minus_zerol): New variable.
33266         (test_signbitl): Use it.
33267
33268 2008-04-13  Bruno Haible  <bruno@clisp.org>
33269
33270         Make truncl work on OSF/1 4.0.
33271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33272         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33273         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33275         HAVE_DECL_TRUNCL.
33276         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33277         HAVE_DECL_TRUNCL.
33278         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33279
33280 2008-04-13  Bruno Haible  <bruno@clisp.org>
33281
33282         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33283
33284 2008-04-13  Bruno Haible  <bruno@clisp.org>
33285
33286         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33287         expression, so as to avoid HP-UX 11 cc compiler bug.
33288
33289 2008-04-13  Bruno Haible  <bruno@clisp.org>
33290
33291         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33292
33293 2008-04-13  Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/git-merge-changelog.c: Remove empty declaration outside of
33296         functions.
33297
33298 2008-04-13  Bruno Haible  <bruno@clisp.org>
33299
33300         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33301
33302 2008-04-13  Bruno Haible  <bruno@clisp.org>
33303
33304         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33305         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33307         also if it exists but lacks definitions of the SHUT_* macros.
33308         * modules/sys_socket (Description): Update.
33309         Reported by Elbert Pol <e.pol@chello.nl>.
33310
33311 2008-04-13  Bruno Haible  <bruno@clisp.org>
33312
33313         * lib/localcharset.c (OS2): Don't redefine if already defined.
33314         Reported by Elbert Pol <e.pol@chello.nl>.
33315
33316 2008-04-13  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/binary-io.h [__EMX__]: Include <io.h>.
33319         Reported by Elbert Pol <e.pol@chello.nl>.
33320
33321 2008-04-12  Bruno Haible  <bruno@clisp.org>
33322
33323         * lib/fpucw.h: Enable the definitions also for x86_64.
33324         Needed for NetBSD/x86_64.
33325         Reported by Thomas Klausner <tk@giga.or.at>.
33326
33327 2008-04-12  Bruno Haible  <bruno@clisp.org>
33328
33329         * tests/test-strtod.c: Include isnand.h.
33330         (main): Use isnand instead of isnan.
33331         Reported by Jim Meyering.
33332
33333 2008-04-12  Bruno Haible  <bruno@clisp.org>
33334
33335         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33336         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33337
33338 2008-04-12  Jim Meyering  <meyering@redhat.com>
33339
33340         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33341
33342 2008-04-12  Bruno Haible  <bruno@clisp.org>
33343
33344         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33345         Reported by Elbert Pol <e.pol@chello.nl>.
33346
33347 2008-04-12  Eric Blake  <ebb9@byu.net>
33348
33349         Work around Solaris 10 math.h bug.
33350         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33351         (gl_MATH_H_DEFAULTS): Set up default.
33352         * modules/math (Makefile.am): Replace new indicators.
33353         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33354         * tests/test-math.c (main): Test this.
33355         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33356         * doc/posix-headers/math.texi (math.h): Mention bug.
33357         Reported by Nelson H. F. Beebe and Jim Meyering.
33358
33359 2008-04-11  Bruno Haible  <bruno@clisp.org>
33360
33361         Adapt to future versions of Apple GCC.
33362         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33363         Reported by Peter O'Gorman <peter@pogma.com>.
33364
33365 2008-04-11  Bruno Haible  <bruno@clisp.org>
33366
33367         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33368
33369 2008-04-11  Bruno Haible  <bruno@clisp.org>
33370
33371         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33372
33373         * modules/getaddrinfo-tests (Makefile.am): Define
33374         test_getaddrinfo_LDADD.
33375
33376 2008-04-11  Bruno Haible  <bruno@clisp.org>
33377
33378         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33379         (init): Fix syntax error.
33380         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33381         is declared.
33382
33383 2008-04-11  Bruno Haible  <bruno@clisp.org>
33384
33385         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33386         * modules/glob (Depends-on): Add stdbool.
33387
33388 2008-04-11  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/trim.c: Include <string.h>.
33391
33392 2008-04-11  Eric Blake  <ebb9@byu.net>
33393
33394         Avoid compile failure on OS/2.
33395         * lib/regex_internal.h (internal_function): Disable optimization
33396         on OS/2 (__EMX__), where it caused compiler error.
33397         Reported by Elbert Pol.
33398
33399 2008-04-11  Bruno Haible  <bruno@clisp.org>
33400
33401         Flush the standard error stream before aborting. Needed on mingw.
33402         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33403         * tests/test-array_list.c (ASSERT): Likewise.
33404         * tests/test-array_oset.c (ASSERT): Likewise.
33405         * tests/test-avltree_list.c (ASSERT): Likewise.
33406         * tests/test-avltree_oset.c (ASSERT): Likewise.
33407         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33408         * tests/test-binary-io.c (ASSERT): Likewise.
33409         * tests/test-byteswap.c (ASSERT): Likewise.
33410         * tests/test-c-ctype.c (ASSERT): Likewise.
33411         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33412         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33413         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33414         * tests/test-c-strstr.c (ASSERT): Likewise.
33415         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33416         * tests/test-canonicalize.c (ASSERT): Likewise.
33417         * tests/test-carray_list.c (ASSERT): Likewise.
33418         * tests/test-ceilf1.c (ASSERT): Likewise.
33419         * tests/test-ceilf2.c (ASSERT): Likewise.
33420         * tests/test-ceill.c (ASSERT): Likewise.
33421         * tests/test-count-one-bits.c (ASSERT): Likewise.
33422         * tests/test-fbufmode.c (ASSERT): Likewise.
33423         * tests/test-fflush2.c (ASSERT): Likewise.
33424         * tests/test-floorf1.c (ASSERT): Likewise.
33425         * tests/test-floorf2.c (ASSERT): Likewise.
33426         * tests/test-floorl.c (ASSERT): Likewise.
33427         * tests/test-fopen.c (ASSERT): Likewise.
33428         * tests/test-fpending.c (ASSERT): Likewise.
33429         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33430         * tests/test-fpurge.c (ASSERT): Likewise.
33431         * tests/test-freadable.c (ASSERT): Likewise.
33432         * tests/test-freadahead.c (ASSERT): Likewise.
33433         * tests/test-freading.c (ASSERT): Likewise.
33434         * tests/test-freadptr.c (ASSERT): Likewise.
33435         * tests/test-freadptr2.c (ASSERT): Likewise.
33436         * tests/test-freadseek.c (ASSERT): Likewise.
33437         * tests/test-freopen.c (ASSERT): Likewise.
33438         * tests/test-frexp.c (ASSERT): Likewise.
33439         * tests/test-frexpl.c (ASSERT): Likewise.
33440         * tests/test-fseek.c (ASSERT): Likewise.
33441         * tests/test-fseeko.c (ASSERT): Likewise.
33442         * tests/test-fstrcmp.c (ASSERT): Likewise.
33443         * tests/test-ftell.c (ASSERT): Likewise.
33444         * tests/test-ftello.c (ASSERT): Likewise.
33445         * tests/test-func.c (ASSERT): Likewise.
33446         * tests/test-fwritable.c (ASSERT): Likewise.
33447         * tests/test-fwriting.c (ASSERT): Likewise.
33448         * tests/test-getdelim.c (ASSERT): Likewise.
33449         * tests/test-getline.c (ASSERT): Likewise.
33450         * tests/test-i-ring.c (ASSERT): Likewise.
33451         * tests/test-iconv-utf.c (ASSERT): Likewise.
33452         * tests/test-iconv.c (ASSERT): Likewise.
33453         * tests/test-isfinite.c (ASSERT): Likewise.
33454         * tests/test-isnand.c (ASSERT): Likewise.
33455         * tests/test-isnanf.c (ASSERT): Likewise.
33456         * tests/test-isnanl.h (ASSERT): Likewise.
33457         * tests/test-ldexpl.c (ASSERT): Likewise.
33458         * tests/test-linked_list.c (ASSERT): Likewise.
33459         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33460         * tests/test-localename.c (ASSERT): Likewise.
33461         * tests/test-lseek.c (ASSERT): Likewise.
33462         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33463         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33464         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33465         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33466         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33467         * tests/test-mbschr.c (ASSERT): Likewise.
33468         * tests/test-mbscspn.c (ASSERT): Likewise.
33469         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33470         * tests/test-mbspbrk.c (ASSERT): Likewise.
33471         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33472         * tests/test-mbsrchr.c (ASSERT): Likewise.
33473         * tests/test-mbsspn.c (ASSERT): Likewise.
33474         * tests/test-mbsstr1.c (ASSERT): Likewise.
33475         * tests/test-mbsstr2.c (ASSERT): Likewise.
33476         * tests/test-mbsstr3.c (ASSERT): Likewise.
33477         * tests/test-memchr2.c (ASSERT): Likewise.
33478         * tests/test-memmem.c (ASSERT): Likewise.
33479         * tests/test-open.c (ASSERT): Likewise.
33480         * tests/test-printf-frexp.c (ASSERT): Likewise.
33481         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33482         * tests/test-printf-posix.c (ASSERT): Likewise.
33483         * tests/test-quotearg.c (ASSERT): Likewise.
33484         * tests/test-rbtree_list.c (ASSERT): Likewise.
33485         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33486         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33487         * tests/test-round1.c (ASSERT): Likewise.
33488         * tests/test-roundf1.c (ASSERT): Likewise.
33489         * tests/test-roundl.c (ASSERT): Likewise.
33490         * tests/test-signbit.c (ASSERT): Likewise.
33491         * tests/test-sleep.c (ASSERT): Likewise.
33492         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33493         * tests/test-snprintf.c (ASSERT): Likewise.
33494         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33495         * tests/test-stat-time.c (ASSERT): Likewise.
33496         * tests/test-strcasestr.c (ASSERT): Likewise.
33497         * tests/test-strerror.c (ASSERT): Likewise.
33498         * tests/test-striconv.c (ASSERT): Likewise.
33499         * tests/test-striconveh.c (ASSERT): Likewise.
33500         * tests/test-striconveha.c (ASSERT): Likewise.
33501         * tests/test-strsignal.c (ASSERT): Likewise.
33502         * tests/test-strstr.c (ASSERT): Likewise.
33503         * tests/test-strtod.c (ASSERT): Likewise.
33504         * tests/test-trunc1.c (ASSERT): Likewise.
33505         * tests/test-trunc2.c (ASSERT): Likewise.
33506         * tests/test-truncf1.c (ASSERT): Likewise.
33507         * tests/test-truncf2.c (ASSERT): Likewise.
33508         * tests/test-truncl.c (ASSERT): Likewise.
33509         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33510         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33511         * tests/test-vasnprintf.c (ASSERT): Likewise.
33512         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33513         * tests/test-vasprintf.c (ASSERT): Likewise.
33514         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33515         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33516         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33517         * tests/test-vsnprintf.c (ASSERT): Likewise.
33518         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33519         * tests/test-wcwidth.c (ASSERT): Likewise.
33520         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33521         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33522         * tests/test-xvasprintf.c (ASSERT): Likewise.
33523         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33524         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33525         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33526         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33527         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33528         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33529         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33530         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33531         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33532         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33533         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33534         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33535         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33536         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33537         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33538         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33539         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33540         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33541         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33542         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33543         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33544         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33545         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33546         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33547         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33548         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33549         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33550         * tests/unictype/test-combining.c (ASSERT): Likewise.
33551         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33552         * tests/unictype/test-digit.c (ASSERT): Likewise.
33553         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33554         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33555         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33556         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33557         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33558         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33559         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33560         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33561         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33562         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33563         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33564         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33565         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33566         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33567         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33568         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33569         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33570         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33571         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33572         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33573         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33574         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33575         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33576         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33577         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33578         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33579         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33580         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33581         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33582         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33583         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33584         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33585         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33586         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33587         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33588         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33589         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33590         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33591         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33592         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33593         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33594         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33595         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33596         Reported by Eric Blake.
33597
33598 2008-04-11  Bruno Haible  <bruno@clisp.org>
33599
33600         * lib/wchar.in.h: Tweak comment.
33601
33602 2008-04-11  Bruno Haible  <bruno@clisp.org>
33603
33604         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33605         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33606         gl_COMMON.
33607         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33608
33609 2008-04-11  Bruno Haible  <bruno@clisp.org>
33610
33611         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33612
33613 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33614
33615         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33616         of attempting to use non-existing /dev/*random.  Based on patch
33617         from Adam Strzelecki <ono@java.pl> in
33618         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33619
33620 2008-04-08  Bruno Haible  <bruno@clisp.org>
33621
33622         Add tentative support for emx+gcc.
33623         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33624         * lib/fpurge.c (fpurge): Likewise.
33625         * lib/freadable.c (freadable): Likewise.
33626         * lib/freadahead.c (freadahead): Likewise.
33627         * lib/freading.c (freading): Likewise.
33628         * lib/freadptr.c (freadptr): Likewise.
33629         * lib/freadseek.c (freadptrinc): Likewise.
33630         * lib/fseeko.c (rpl_fseeko): Likewise.
33631         * lib/fseterr.c (fseterr): Likewise.
33632         * lib/fwritable.c (fwritable): Likewise.
33633         * lib/fwriting.c (fwriting): Likewise.
33634         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33635
33636 2008-04-09  Eric Blake  <ebb9@byu.net>
33637
33638         Avoid some autoconf warnings.
33639         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33640         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33641         * m4/afs.m4 (gl_AFS): Likewise.
33642         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33643         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33644         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33645         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33646         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33647         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33648         (AC_CHECK_DECLS_ONCE): Likewise.
33649         Rename file...
33650         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33651         gnulib-tool requires autoconf 2.59 or better.
33652         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33653
33654 2008-04-08  Eric Blake  <ebb9@byu.net>
33655
33656         Use 'git describe --match' if present (added in git 1.5.5).
33657         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33658         if possible.
33659
33660 2008-04-08  Bruno Haible  <bruno@clisp.org>
33661
33662         Add tentative support for OpenServer.
33663         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33664         _ptr, _cnt.
33665         * lib/fpurge.c (fpurge): Likewise.
33666         * lib/freadable.c (freadable): Likewise.
33667         * lib/freadahead.c (freadahead): Likewise.
33668         * lib/freading.c (freading): Likewise.
33669         * lib/freadptr.c (freadptr): Likewise.
33670         * lib/freadseek.c (freadptrinc): Likewise.
33671         * lib/fseeko.c (rpl_fseeko): Likewise.
33672         * lib/fseterr.c (fseterr): Likewise.
33673         * lib/fwritable.c (fwritable): Likewise.
33674         * lib/fwriting.c (fwriting): Likewise.
33675         Reported by Roger Cornelius <rac@tenzing.org> and
33676         Brian K. White <brian@aljex.com>.
33677
33678 2008-04-06  Jim Meyering  <meyering@redhat.com>
33679
33680         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33681
33682 2008-04-06  Bruno Haible  <bruno@clisp.org>
33683
33684         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33685         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33686         * tests/test-printf-posix.sh: Likewise.
33687         * tests/test-vfprintf-posix.sh: Likewise.
33688         * tests/test-vprintf-posix.sh: Likewise.
33689         * tests/test-xprintf-posix.sh: Likewise.
33690
33691 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33692
33693         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33694         hide error from 'ls', needed on OS/2.
33695         Report by Elbert Pol <elbert.pol@gmail.com>.
33696
33697 2008-04-04  Eric Blake  <ebb9@byu.net>
33698
33699         Make test-fseeko.c failures meaningful.
33700         * tests/test-fseeko.c: Print line number on failure.
33701         * tests/test-fseek.c: Likewise.
33702         Reported by Nelson H. F. Beebe.
33703
33704         Improve strtod bug detection check.
33705         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33706         required for Solaris 10.
33707         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33708
33709 2008-04-04  Bruno Haible  <bruno@clisp.org>
33710
33711         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33712         by m4/setenv.m4.
33713
33714 2008-04-03  Eric Blake  <ebb9@byu.net>
33715
33716         Ensure sane .version contents.
33717         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33718         version string.
33719         * build-aux/git-version-gen: Improve documentation.
33720
33721         Make GNU make output nicer.
33722         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33723         MAKECMDGOALS to enforce message for all command line targets.  Set
33724         srcdir for use in maint.mk.
33725
33726         Another maintainer tweak.
33727         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33728         a target that regenerates version.
33729
33730 2008-04-03  Jim Meyering  <meyering@redhat.com>
33731
33732         vc-list-files: don't cause coreutils "make po-check" failure
33733         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33734
33735 2008-04-03  Eric Blake  <ebb9@byu.net>
33736
33737         Allow VPATH usage of vc-list-files.
33738         * build-aux/vc-list-files (scriptversion): Add timestamp.
33739         (options): Add --help, --version, -C.
33740         (CVS): Support installed cvsu.
33741
33742 2008-04-02  Bruno Haible  <bruno@clisp.org>
33743
33744         Avoid some "statement with no effect" warnings from gcc.
33745         * tests/test-wctype.c (main): Explicitly ignore unused values.
33746         Reported by Jim Meyering.
33747
33748 2008-04-02  Jim Meyering  <meyering@redhat.com>
33749
33750         Avoid some warnings from "gcc -Wshadow".
33751         * tests/test-frexp.c (exp): Define to a different identifier.
33752         * tests/test-frexpl.c (exp): Likewise.
33753
33754 2008-04-03  Jim Meyering  <meyering@redhat.com>
33755
33756         bootstrap: remove dangling *.[ch] symlinks from lib
33757         * build-aux/bootstrap [dangling symlink removal]: Move find's
33758         -depth option to precede all others, to avoid a warning.
33759         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33760
33761 2008-04-02  Bruno Haible  <bruno@clisp.org>
33762
33763         Avoid some warnings from "gcc -Wshadow".
33764         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33765         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33766         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33767         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33768         Reported by Jim Meyering.
33769
33770 2008-04-01  Bruno Haible  <bruno@clisp.org>
33771
33772         Fix test to work on IRIX 6.5 with cc.
33773         * tests/test-math.c (numeric_equal): New function.
33774         (main): Use it.
33775
33776 2008-04-01  Bruno Haible  <bruno@clisp.org>
33777
33778         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33779
33780 2008-04-01  Bruno Haible  <bruno@clisp.org>
33781
33782         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33783         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33784         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33785         (Depends-on): Remove math.
33786
33787         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33789         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33790         (Depends-on): Remove math.
33791
33792         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33794         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33795         (Depends-on): Remove math.
33796         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33797         (Depends-on): Remove math.
33798
33799         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33801         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33802         (Depends-on): Remove math.
33803         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33804         (Depends-on): Remove math.
33805
33806         * tests/test-round1.c: Include nan.h.
33807         (main): Use NaNd instead of NAN.
33808         * modules/round-tests (Files): Add tests/nan.h.
33809
33810         * tests/test-trunc1.c: Include nan.h.
33811         (main): Use NaNd instead of NAN.
33812         * modules/trunc-tests (Files): Add tests/nan.h.
33813
33814         * tests/test-roundf1.c: Include nan.h.
33815         (main): Use NaNf instead of NAN.
33816         * modules/roundf-tests (Files): Add tests/nan.h.
33817
33818         * tests/test-truncf1.c: Include nan.h.
33819         (main): Use NaNf instead of NAN.
33820         * modules/truncf-tests (Files): Add tests/nan.h.
33821
33822         * tests/test-ceilf1.c: Include nan.h.
33823         (main): Use NaNf instead of NAN.
33824         * modules/ceilf-tests (Files): Add tests/nan.h.
33825
33826         * tests/test-floorf1.c: Include nan.h.
33827         (main): Use NaNf instead of NAN.
33828         * modules/floorf-tests (Files): Add tests/nan.h.
33829
33830         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33831         (main): Use NaNf instead of NAN.
33832         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33833
33834         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33835         (main): Use NaNd instead of NAN.
33836         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33837
33838         * tests/test-frexp.c: Include nan.h.
33839         (main): Use NaNd instead of NAN.
33840         * modules/frexp-tests (Files): Add tests/nan.h.
33841
33842         * lib/isnan.c: Don't include <math.h>.
33843         (FUNC): Don't use NAN macro.
33844         * modules/isnand-nolibm (Depends-on): Remove math.
33845         * modules/isnanf-nolibm (Depends-on): Remove math.
33846         * modules/isnanl (Depends-on): Remove math.
33847         * modules/isnanl-nolibm (Depends-on): Remove math.
33848
33849         * tests/nan.h: New file.
33850
33851 2008-04-01  Eric Blake  <ebb9@byu.net>
33852
33853         Fix typos.
33854         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33855         values to be the right type.
33856
33857         For now, cater to gnulib strtod inaccuracies.
33858         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33859         fractional results.  While not as nice from a QoI perspective, it
33860         is a quicker patch than correctly implementing decimal to binary
33861         rounding.
33862
33863 2008-03-31  Eric Blake  <ebb9@byu.net>
33864
33865         Guarantee a definition of NAN.
33866         * lib/math.in.h (NAN): Define if missing.
33867         * tests/test-math.c (main): Test it.
33868         * doc/posix-headers/math.texi (math.h): Document this.
33869         * lib/isnan.c (rpl_isnand): Use it.
33870         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33871         * tests/test-floorf1.c (NaN): Likewise.
33872         * tests/test-frexp.c (NaN): Likewise.
33873         * tests/test-isnand.c (NaN): Likewise.
33874         * tests/test-isnanf.c (NaN): Likewise.
33875         * tests/test-round1.c (NaN): Likewise.
33876         * tests/test-roundf1.c (NaN): Likewise.
33877         * tests/test-snprintf-posix.h (NaN): Likewise.
33878         * tests/test-sprintf-posix.h (NaN): Likewise.
33879         * tests/test-trunc1.c (NaN): Likewise.
33880         * tests/test-truncf1.c (NaN): Likewise.
33881         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33882         * tests/test-vasprintf-posix.c (NaN): Likewise.
33883         * modules/isnand-nolibm (Depends-on): Add math.
33884         * modules/isnanf-nolibm (Depends-on): Likewise.
33885         * modules/isnanl (Depends-on): Likewise.
33886         * modules/isnanl-nolibm (Depends-on): Likewise.
33887         * modules/snprintf-posix-tests (Depends-on): Likewise.
33888         * modules/sprintf-posix-tests (Depends-on): Likewise.
33889         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33890         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33891         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33892         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33893
33894 2008-03-31  Bruno Haible  <bruno@clisp.org>
33895
33896         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33897         * doc/posix-functions/strtod.texi: Likewise.
33898
33899 2008-03-31  Bruno Haible  <bruno@clisp.org>
33900
33901         * tests/test-strtod.c (main): Don't use C99 syntax.
33902
33903 2008-03-31  Bruno Haible  <bruno@clisp.org>
33904
33905         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33906         Reported by Eric Blake.
33907
33908 2008-03-31  Jim Meyering  <meyering@redhat.com>
33909
33910         Don't compare actual signbit return values.
33911         * tests/test-strtod.c (main): Rather, compare only their
33912         zero/non-zero nature.
33913
33914 2008-03-31  Eric Blake  <ebb9@byu.net>
33915
33916         More strtod documentation.
33917         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33918         failures as distinct bugs.
33919
33920 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33921
33922         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33923         Problem reported by Erik Benada in
33924         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33925
33926 2008-03-30  Bruno Haible  <bruno@clisp.org>
33927
33928         * tests/test-strtod.c: Add comments about which assertion fails on which
33929         platform.
33930         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33931
33932 2008-03-30  Eric Blake  <ebb9@byu.net>
33933
33934         Test signbit behavior on zeros.
33935         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33936         (test_signbitd, test_signbitl): Likewise.
33937
33938         More strtod touchups.
33939         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33940         sign of negative underflow, for now.  Use .5, not .1.
33941         * doc/posix-functions/strtod.texi (strtod): Mention these
33942         limitations.
33943         Reported by Jim Meyering.
33944
33945 2008-03-30  Bruno Haible  <bruno@clisp.org>
33946
33947         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33948         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33949
33950 2008-03-30  Bruno Haible  <bruno@clisp.org>
33951
33952         Avoid failure when attempting to return empty iconv results on some
33953         platforms.
33954         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33955         allocation, don't report ENOMEM when the resulting string is empty.
33956
33957 2008-03-30  Bruno Haible  <bruno@clisp.org>
33958
33959         Fix buffer overrun.
33960         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33961         Don't consider the width for tmp_length. Check count against tmp_length
33962         before doing the padding. Ensure enough allocation during padding.
33963
33964 2008-03-30  Eric Blake  <ebb9@byu.net>
33965
33966         strtod touchups.
33967         * lib/strtod.c (strtod): Avoid compiler warnings.
33968         Reported by Jim Meyering.
33969
33970 2008-03-30  Bruno Haible  <bruno@clisp.org>
33971
33972         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33973         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33974         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33975         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33976         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33977         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33978         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33979         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33980
33981         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33982         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33983         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33984         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33985         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33986         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33987         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33988         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33989
33990         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33991         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33992         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33993         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33994         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33995         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33996         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33997         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33998
33999         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34000         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34001
34002         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34003         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34004
34005         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34006         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34007
34008         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34009         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34010         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34011
34012         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34014         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34015
34016         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34018         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34019
34020         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34022         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34023
34024         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34025         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34027         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34028         (Depends-on): Add EOVERFLOW.
34029         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34030         (Depends-on): Add EOVERFLOW.
34031         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34032         (Depends-on): Add EOVERFLOW.
34033         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34034         (Depends-on): Add EOVERFLOW.
34035         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34036         (Depends-on): Add EOVERFLOW.
34037         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34038         (Depends-on): Add EOVERFLOW.
34039         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34040         (Depends-on): Add EOVERFLOW.
34041         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34042         (Depends-on): Add EOVERFLOW.
34043
34044         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34046         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34047
34048         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34050         * modules/snprintf (Depends-on): Add EOVERFLOW.
34051
34052         * lib/poll.c (EOVERFLOW): Remove fallback.
34053         * modules/poll (Depends-on): Add EOVERFLOW.
34054
34055         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34056         * modules/getugroups (Depends-on): Add EOVERFLOW.
34057
34058         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34059         * modules/getdelim (Depends-on): Add EOVERFLOW.
34060
34061         * lib/ftell.c (EOVERFLOW): Remove fallback.
34062         * modules/ftell (Depends-on): Add EOVERFLOW.
34063
34064         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34066         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34067
34068         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34069
34070         * modules/EOVERFLOW-tests: New file.
34071         * tests/test-EOVERFLOW.c: New file.
34072
34073         * modules/EOVERFLOW: New file.
34074         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34075
34076 2008-03-30  Bruno Haible  <bruno@clisp.org>
34077
34078         Fix bug introduced on 2007-06-10.
34079         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34080         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34081
34082 2008-03-30  Bruno Haible  <bruno@clisp.org>
34083
34084         Improve freadseek's efficiency after ungetc.
34085         * lib/freadseek.c: Include freadahead.h.
34086         (freadptrinc): New function, extracted from freadseek.
34087         (freadseek): Use it in a loop. Use freadahead to determine the number
34088         of loop iterations.
34089         * modules/freadseek (Depends-on): Add freadahead.
34090         (configure.ac): Require AC_C_INLINE.
34091
34092 2008-03-30  Bruno Haible  <bruno@clisp.org>
34093
34094         * lib/freadseek.c (freadseek): Don't ignore the return value of
34095         freadptr.
34096
34097 2008-03-29  Eric Blake  <ebb9@byu.net>
34098
34099         Add hex float support.
34100         * modules/strtod (Depends-on): Add c-ctype.
34101         (Link): Mention POW_LIB.
34102         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34103         whitespace between 'e' and exponent.
34104         * tests/test-strtod.c (main): Enable hex float tests.
34105         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34106         now provides.
34107
34108         Document various strtod bugs, with some fixes.
34109         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34110         "-0x", "inf", "nan", and hex constants.
34111         * doc/posix-functions/atof.texi (atof): Likewise.
34112         * modules/stdlib (Makefile.am): Support strtod.
34113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34114         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34115         detect additional strtod bugs.
34116         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34117         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34118         bool where appropriate.  Parse 'inf' and 'nan'.
34119         * tests/test-strtod.c: New file.
34120         * modules/strtod (Depends-on): Add stdbool, stdlib.
34121         (configure.ac): Turn on module indicator.
34122         * modules/strtod-tests: New module.
34123
34124 2008-03-29  Eric Blake  <ebb9@byu.net>
34125
34126         Fix ftell on mingw.
34127         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34128         * modules/ftell-tests (Depends-on): Add binary-io.
34129         * modules/ftello-tests (Depends-on): Likewise.
34130         * tests/test-ftell.c (main): Enhance test to cover behavior after
34131         ungetc.  Enforce binary mode.
34132         * tests/test-ftello.c (main): Likewise.
34133
34134         Pass test-freadseek on cygwin.
34135         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34136         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34137         ungetc buffer.
34138
34139         * tests/test-fflush2.c (main): Fix typo.
34140
34141 2008-03-29  Bruno Haible  <bruno@clisp.org>
34142
34143         * tests/test-fflush2.c (main): Temporarily disable the contents of
34144         this test.
34145         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34146         Reported by Eric Blake.
34147
34148 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34149
34150         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34151         (GC_SHA224_DIGEST_SIZE): Add.
34152
34153         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34154         (gc_hash_digest_length): Likewise.
34155         (gc_hash_buffer): Likewise.
34156
34157 2008-03-25  Bruno Haible  <bruno@clisp.org>
34158
34159         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34160         detail which gettext release to use.
34161         Reported by Simon Josefsson.
34162
34163 2008-03-26  Jim Meyering  <meyering@redhat.com>
34164
34165         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34166         * modules/gnumakefile (clean-GNUmakefile): Also, use
34167         test ... && ... || : syntax rather than if-then ... fi.
34168
34169         gnumakefile: Don't double-quote-expand $(VPATH) value.
34170         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34171
34172 2008-03-24  Eric Blake  <ebb9@byu.net>
34173
34174         Alter GNUmakefile to install into top directory.
34175         * modules/maintainer-makefile: Split, and add dependency...
34176         * modules/gnumakefile: to this new module.
34177         * build-aux/GNUmakefile: Move...
34178         * top/GNUmakefile: ...here.
34179         * build-aux/maint.mk: Move...
34180         * top/maint.mk: ...here.
34181         * MODULES.html.sh (Support for maintaining...): Document new
34182         module.
34183
34184 2008-03-23  Bruno Haible  <bruno@clisp.org>
34185
34186         * gnulib-tool: New options --vc-files, --no-vc-files.
34187         (func_usage): Document them.
34188         (vc_files): New variable.
34189         (func_import): Consider vc_files.
34190         (func_create_testdir): Set vc_files to empty.
34191         Suggested by Jim Meyering and Karl Berry.
34192
34193 2008-03-23  Bruno Haible  <bruno@clisp.org>
34194
34195         Fix regex compilation error on HP-UX 11.
34196         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34197         * modules/regex (Files): Add m4/mbstate_t.m4.
34198         Reported by Ton Voon <ton.voon@altinity.com>.
34199
34200 2008-03-23  Bruno Haible  <bruno@clisp.org>
34201
34202         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34203
34204 2008-03-23  Eric Blake  <ebb9@byu.net>
34205             Bruno Haible  <bruno@clisp.org>
34206
34207         Install files from top/ in the destination directory.
34208         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34209         augmentation also for the files from top/.
34210         (func_import, func_create_testdir): Rewrite file names:
34211         top/filename -> filename.
34212
34213 2008-03-23  Bruno Haible  <bruno@clisp.org>
34214
34215         Tweak "gnulib --version" output.
34216         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34217
34218 2008-03-23  Bruno Haible  <bruno@clisp.org>
34219
34220         Tweak "gnulib --version" output.
34221         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34222         rather than contents of ChangeLog, when possible.
34223
34224 2008-03-21  Eric Blake  <ebb9@byu.net>
34225
34226         More --version tweaks.
34227         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34228         date of last ChangeLog entry.
34229
34230 2008-03-21  Jim Meyering  <meyering@redhat.com>
34231
34232         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34233
34234 2008-03-20  Eric Blake  <ebb9@byu.net>
34235
34236         VPATH fix.
34237         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34238
34239 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34240
34241         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34242         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34243
34244 2008-03-20  Eric Blake  <ebb9@byu.net>
34245
34246         Sync GNUmakefile with coreutils.
34247         * build-aux/GNUmakefile (have-Makefile): Rename...
34248         (_have-Makefile): ...to this, for namespace consideration.
34249         (GNUmakefile.cfg): Include, if present.
34250         (_autoreconf): Define a default.
34251         (_is-dist-target): New rule for rebuilds to pick up intra-release
34252         version.
34253         (maint-cfg.mk): Rename...
34254         (cfg.mk): ...to this.
34255
34256 2008-03-18  Jim Meyering  <meyering@redhat.com>
34257
34258         New script and module: mktempd
34259         * MODULES.html.sh (maint+release support): Add mktempd.
34260         * build-aux/mktempd: New file.
34261         * modules/mktempd: New file.
34262
34263 2008-03-15  Jim Meyering  <meyering@redhat.com>
34264
34265         Undo last change.
34266         * lib/sha1.c, lib/md5.c: 63 != ~63.
34267         Reported by Andreas Schwab.
34268
34269         sha1.c, md5.c: Hoist a redundant expression.
34270         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34271         "ctx->buflen" only once, before calling *_process_block.
34272         * lib/md5.c (md5_process_bytes): Likewise.
34273
34274 2008-03-14  Eric Blake  <ebb9@byu.net>
34275
34276         Bump copyright year in files generated by gnulib-tool.
34277         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34278         gnulib-tool, rather than hard-coding it.
34279
34280         Fix 'gnulib-tool --version' output to work with git.
34281         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34282         (startup): ...here.
34283         (func_version): Use it to invoke git-version-gen, rather than
34284         relying on CVS keyword expansion.  Modernize wording.
34285         (cvsdatestamp, last_checkin_date, version): Kill unused
34286         variables.
34287
34288 2008-03-12  Jim Meyering  <meyering@redhat.com>
34289
34290         Recognize optional cast of the argument to free.
34291         * build-aux/useless-if-before-free: Update regexps.
34292
34293         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34294
34295 2008-03-11  Bruno Haible  <bruno@clisp.org>
34296
34297         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34298         by a single package.
34299         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34300         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34301         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34302         Reported by Sam Steingold <sds@gnu.org>.
34303
34304 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34305
34306         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34307         repositories.
34308
34309 2008-03-11  Bruno Haible  <bruno@clisp.org>
34310
34311         Avoid conflicts between local macro definitions.
34312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34313         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34314
34315 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34316             Bruno Haible  <bruno@clisp.org>
34317
34318         Make va_copy work with some version of xlc on AIX 5.1.
34319         * lib/stdarg.in.h: New file.
34320         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34321         On AIX, use a <stdarg.h> file substitute.
34322         * modules/stdarg (Files): Add lib/stdarg.in.h.
34323         (Depends-on): Add include_next.
34324         (Makefile.am): Build a stdarg.h substitute if requested.
34325         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34326
34327 2008-03-10  Bruno Haible  <bruno@clisp.org>
34328
34329         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34330         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34331         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34332
34333 2008-03-10  Bruno Haible  <bruno@clisp.org>
34334
34335         * modules/stdlib (Depends-on): Add include_next, remove
34336         absolute-header.
34337
34338 2008-03-09  Bruno Haible  <bruno@clisp.org>
34339
34340         * lib/freadahead.h (freadahead): Document more precisely.
34341         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34342         the sum of both buffer sizes.
34343         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34344         * NEWS: Document the change.
34345
34346 2008-03-09  Bruno Haible  <bruno@clisp.org>
34347
34348         Extend freadptr to return also the buffer size.
34349         * lib/freadptr.h (freadptr): Add sizep argument.
34350         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34351         (freadptr): Add sizep argument. Determine buffer size like freadahead
34352         does.
34353         * tests/test-freadptr.c: Don't include freadahead.h.
34354         (main): Adapt for new calling convention of freadptr.
34355         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34356         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34357         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34358         tests/test-freadptr2.sh.
34359         (Depends): Remove freadahead.
34360         (TESTS): Add test-freadptr2.sh.
34361         (check_PROGRAMS): Add test-freadptr2.
34362
34363 2008-03-09  Bruno Haible  <bruno@clisp.org>
34364
34365         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34366         Report and solution by Simon Josefsson.
34367
34368 2008-03-06  Bruno Haible  <bruno@clisp.org>
34369
34370         Make fflush after ungetc work on BSD platforms.
34371         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34372         * tests/test-fflush2.c: New file.
34373         * tests/test-fflush2.sh: New file.
34374         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34375         tests/test-fflush2.c.
34376         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34377         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34378
34379 2008-03-06  Eric Blake  <ebb9@byu.net>
34380
34381         Likewise for ftello.
34382         * modules/ftello (Dependencies): Add extensions.
34383         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34384
34385 2008-03-06  Bruno Haible  <bruno@clisp.org>
34386
34387         * modules/fseeko (Dependencies): Add extensions.
34388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34389         Needed on glibc systems.
34390
34391 2008-03-06  Bruno Haible  <bruno@clisp.org>
34392
34393         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34394         email address.
34395         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34396
34397 2008-03-06  Bruno Haible  <bruno@clisp.org>
34398
34399         * users.txt: Add libgnupdf.
34400
34401 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34402
34403         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34404         (Header File Substitutes, Function Substitutes,
34405         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34406         (Build robot for gnulib): Fix typo.
34407
34408 2008-03-06  Bruno Haible  <bruno@clisp.org>
34409
34410         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34411         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34412
34413 2008-03-06  Bruno Haible  <bruno@clisp.org>
34414
34415         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34416         * doc/gnulib.texi: Include it.
34417
34418 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34419
34420         * modules/func (License): Change license to unlimited; there was
34421         no LGPL parts in the module anyway.
34422
34423 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34424
34425         * modules/__func__: Renamed to modules/func.
34426         * modules/__func__-tests: Renamed to modules/func-tests.
34427         * tests/test-__func__.c: Renamed to tests/test-func.c.
34428         * m4/__func__.m4: Renamed to m4/func.m4.
34429         * doc/gnulib.texi (__func__): Section renamed to func.
34430         Suggested by Eric Blake <ebb9@byu.net>.
34431
34432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34433
34434         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34435         about __func__.  Make example self-contained.  Suggested by Eric
34436         Blake <ebb9@byu.net>.
34437
34438         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34439         Suggested by Eric Blake <ebb9@byu.net>.
34440
34441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34442
34443         * modules/__func__: New file.
34444         * modules/__func__-tests: New file.
34445         * tests/test-__func__.c: New file.
34446         * m4/__func__.m4: New file.
34447         * doc/gnulib.texi (__func__): Document __func__ module.
34448
34449 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34450
34451         * modules/byteswap (License): Re-license as LGPLv2+.
34452
34453 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34454
34455         * doc/Makefile: Add pdf target.
34456
34457 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34458
34459         * modules/inline (License): Use 'unlimited', since there are only
34460         *.m4 files in this module.
34461
34462 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34463             Bruno Haible  <bruno@clisp.org>
34464
34465         Add support for HP C 7.1 on OpenVMS 8.3.
34466         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34467
34468 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34469
34470         Update VMS specifics.
34471         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34472
34473 2008-03-02  Jim Meyering  <meyering@redhat.com>
34474
34475         Remove the last dependency on the "free" module.
34476         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34477         Reported by Bob Proulx.
34478
34479         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34480
34481         Remove useless "if" tests before free.  Deprecate "free" module.
34482         * doc/posix-functions/free.texi: Mention that this
34483         module is no longer useful.
34484         * modules/free (Notice): Say this module is obsolete.
34485         * modules/readutmp (Depends-on): Remove free.
34486         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34487         * lib/putenv.c (putenv): Likewise.
34488         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34489         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34490         * tests/test-c-strcasestr.c (main): Likewise.
34491         * tests/test-c-strstr.c (main): Likewise.
34492         * tests/test-mbscasestr1.c (main): Likewise.
34493         * tests/test-mbscasestr2.c (main): Likewise.
34494         * tests/test-mbsstr1.c (main): Likewise.
34495         * tests/test-mbsstr2.c (main): Likewise.
34496         * tests/test-memmem.c (main): Likewise.
34497         * tests/test-strcasestr.c (main): Likewise.
34498         * tests/test-striconv.c (main): Likewise.
34499         * tests/test-striconveh.c (main): Likewise.
34500         * tests/test-striconveha.c (main): Likewise.
34501         * tests/test-strstr.c (main): Likewise.
34502
34503         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34504
34505         bootstrap: sync from coreutils again
34506         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34507
34508 2008-03-01  Jim Meyering  <meyering@redhat.com>
34509
34510         bootstrap: sync from coreutils
34511         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34512         also when the target doesn't exist.
34513
34514 2008-03-01  Eric Blake  <ebb9@byu.net>
34515
34516         Fix bugs in last patch.
34517         * lib/memchr2.c (memchr2): Fix typo.
34518         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34519         extension.
34520         Reported by Bruce Korb.
34521
34522         New module 'memchr2'.
34523         * modules/memchr2: New file.
34524         * modules/memchr2-tests: Likewise.
34525         * lib/memchr2.h: Likewise.
34526         * lib/memchr2.c: Likewise, based on memchr.c.
34527         * tests/test-memchr2.c: New test.
34528         * MODULES.html.sh (String handling): Add memchr2.
34529
34530 2008-02-29  Bruno Haible  <bruno@clisp.org>
34531
34532         * modules/freadseek-tests: New file.
34533         * tests/test-freadseek.sh: New file.
34534         * tests/test-freadseek.c: New file.
34535
34536         New module 'freadseek'.
34537         * modules/freadseek: New file.
34538         * lib/freadseek.h: New file.
34539         * lib/freadseek.c: New file.
34540         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34541
34542 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34543
34544         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34545         wydawca.
34546
34547         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34548         program_invocation_name and program_invocation_short_name are
34549         present.
34550
34551 2008-02-28  Bruno Haible  <bruno@clisp.org>
34552
34553         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34554         * tests/test-freadptr.sh: Also test non-seekable stdin.
34555
34556 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34557
34558         * build-aux/bootstrap (source_base, m4_base)
34559         (doc_base, tests_base): New variables.
34560         (gnulib_tool_options): Do not hardcode base directories, use
34561         the above variables instead.
34562
34563 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34564
34565         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34566
34567 2008-02-28  Bruno Haible  <bruno@clisp.org>
34568
34569         * modules/freadptr-tests: New file.
34570         * tests/test-freadptr.sh: New file.
34571         * tests/test-freadptr.c: New file.
34572
34573         New module 'freadptr'.
34574         * modules/freadptr: New file.
34575         * lib/freadptr.h: New file.
34576         * lib/freadptr.c: New file.
34577         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34578
34579 2008-02-26  Karl Berry  <karl@freefriends.org>
34580
34581         Sync from Libtool:
34582         * libltdl/argz.c (argz_add, argz_count): New functions.
34583         * libltdl/argz.in.h: Declare them.
34584         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34585
34586 2008-02-22  Bruno Haible  <bruno@clisp.org>
34587
34588         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34589         is a pointer type.  Needed for HP-UX 10.
34590         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34591         * doc/posix-functions/gmtime_r.texi: Likewise.
34592         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34593
34594 2008-02-24  Bruno Haible  <bruno@clisp.org>
34595
34596         * modules/environ-tests: New file.
34597         * tests/test-environ.c: New file.
34598
34599         New module 'environ'.
34600         * modules/environ: New file.
34601         * lib/unistd.in.h (environ): New declaration.
34602         * m4/environ.m4: New file.
34603         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34604         after use.
34605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34606         HAVE_DECL_ENVIRON.
34607         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34608         HAVE_DECL_ENVIRON.
34609         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34610         wrong claim that 'environ' is missing on some systems.
34611         * modules/execute (Depends-on): Add environ.
34612         * lib/execute.c (environ): Remove fallback declaration.
34613         * modules/pipe (Depends-on): Add environ.
34614         * lib/pipe.c (environ): Remove fallback declaration.
34615         * modules/setenv (Depends-on): Add environ.
34616         * lib/setenv.c (environ): Remove fallback declaration.
34617         * modules/unsetenv (Depends-on): Add environ.
34618         * lib/unsetenv.c (environ): Remove fallback declaration.
34619         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34620         m4/environ.m4.
34621         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34622         (gl_PREREQ_UNSETENV): Likewise.
34623
34624 2008-02-24  Bruno Haible  <bruno@clisp.org>
34625
34626         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34627
34628 2008-02-20  Bob Proulx  <bob@proulx.com>
34629
34630         Enable use of older two part flavor 'git describe'.
34631         * build-aux/git-version-gen: If using the older two part flavor of
34632         git version then recreate the third part now present in the
34633         newer three part flavor of git describe.
34634
34635 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34636
34637         * lib/fts.c (fts_build): Typo correction to comment.
34638
34639 2008-02-17  Bruno Haible  <bruno@clisp.org>
34640
34641         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34642         generating no-op conflicts.
34643
34644 2008-02-17  Bruno Haible  <bruno@clisp.org>
34645
34646         Speed up by 10%.
34647         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34648         result_entries, rather than an index-based loop.
34649
34650 2008-02-17  Bruno Haible  <bruno@clisp.org>
34651
34652         Speed up by 25%.
34653         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34654         'hashcode_cached'.
34655         (entry_create): New function.
34656         (entry_hashcode): Use the cached hashcode if possible.
34657         (read_changelog_file, try_split_merged_entry): Use entry_create.
34658
34659 2008-02-17  Bruno Haible  <bruno@clisp.org>
34660
34661         Speed up from O(n^2) to O(n) for long ChangeLog files.
34662         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34663         (read_changelog_file): Change implementation of entries_reversed list
34664         to rbtreehash.
34665         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34666
34667 2008-02-17  Bruno Haible  <bruno@clisp.org>
34668
34669         New option --split-merged-entry.
34670         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34671         (find_paragraph_end, try_split_merged_entry): New functions.
34672         (long_options): Add option --split-merged-entry.
34673         (usage): Document option --split-merged-entry.
34674         (main): Implement option --split-merged-entry.
34675         Reported by Eric Blake.
34676
34677 2008-02-17  Bruno Haible  <bruno@clisp.org>
34678
34679         * lib/git-merge-changelog.c: Include c-strstr.h.
34680         (main): Support the "git pull --rebase" situation.
34681         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34682         Reported by Eric Blake.
34683
34684 2008-02-16  Eric Blake  <ebb9@byu.net>
34685
34686         Avoid doubling \ in common case of "c-maybe" quoting style.
34687         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34688         eliding outer quotes.
34689         * lib/quotearg.h: Document this.
34690         * tests/test-quotearg.c (result_strings, inputs, results_g)
34691         (flag_results, locale_results): Test it by adding a new string to
34692         each test group.
34693         (compare_strings): Test new string.
34694
34695 2008-02-13  Eric Blake  <ebb9@byu.net>
34696
34697         Avoid trigraph quoting in default output.
34698         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34699         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34700         unless explicitly requested.
34701         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34702
34703 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34704
34705         Don't rely on signed integer overflowing to negative value.
34706         * lib/getugroups.c (getugroups): Include <limits.h>.
34707         Instead, compare against INT_MAX, and increment only if the test passes.
34708
34709 2008-02-13  Jim Meyering  <meyering@redhat.com>
34710         and Eric Blake  <ebb9@byu.net>
34711
34712         Avoid shadowing warning and compile errors on Linux.
34713         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34714         forwarding macros on Linux.
34715         (dcgettext): Define a stub, for Linux.
34716         (results_g, main): Avoid warnings.
34717
34718 2008-02-12  Eric Blake  <ebb9@byu.net>
34719
34720         Silence warning in last patch.
34721         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34722
34723         Quotearg part 4: add tests, fix c-maybe colon quoting.
34724         * lib/quotearg.h: Improve documentation.
34725         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34726         escapes when adding outer quotes.  When quoting trigraphs, use
34727         valid C notation.  When quoting NUL, omit extra characters if next
34728         character is not digit.  Alter prototype.
34729         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34730         callers.
34731         * modules/quotearg-tests: New module.
34732         * tests/test-quotearg.c: New test.
34733
34734 2008-02-07  Eric Blake  <ebb9@byu.net>
34735
34736         Quotearg part 3: add flag to control outer quote elision.
34737         * lib/quotearg.h (c_maybe_quoting_style): New style.
34738         (enum quoting_flags): Better documentation of flags.
34739         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34740         c-maybe style.
34741         (quotearg_buffer_restyled): Handle new flag to elide outer
34742         quotes.
34743
34744         Quotearg part 2: add flag that can control NUL elision.
34745         * lib/quotearg.h (set_quoting_flags): New prototype.
34746         * lib/quotearg.c (struct quoting_options): Add flag field.
34747         (set_quoting_flags): New function.
34748         (quotearg_buffer_restyled): Add flags parameter.
34749         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34750         (quotearg_n_options): Set the flag, since length cannot be
34751         returned.
34752         (quoting_options_from_style): Default flags correctly.
34753
34754         Quotearg part 1: more wrappers, restore quotearg_char state.
34755         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34756         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34757         (quotearg_colon_mem): New wrappers.
34758         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34759         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34760         functions.
34761         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34762         (quotearg_colon_mem): New functions.
34763
34764 2008-02-11  Bruno Haible  <bruno@clisp.org>
34765
34766         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34767         library in the current directory: it does not work with parallel make.
34768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34769
34770 2008-02-11  Bruno Haible  <bruno@clisp.org>
34771
34772         * .gitattributes: New file.
34773
34774 2008-02-11  Jim Meyering  <meyering@redhat.com>
34775
34776         useless-if-before-free: Fix reversed exit values.
34777         * build-aux/useless-if-before-free: Use correct values
34778         for EXIT_MATCH and EXIT_NO_MATCH.
34779
34780         * build-aux/useless-if-before-free: Close stdout carefully.
34781
34782 2008-02-10  Bruno Haible  <bruno@clisp.org>
34783
34784         New module 'git-merge-changelog'.
34785         * modules/git-merge-changelog: New file.
34786         * lib/git-merge-changelog.c: New file.
34787
34788 2008-02-10  Jim Meyering  <meyering@redhat.com>
34789
34790         useless-if-before-free: New option: --list (-l).
34791
34792         useless-if-before-free: Don't exit immediately upon open failure.
34793         * build-aux/useless-if-before-free: Exit 2 for errors.
34794         Upon failure to open a file, don't exit immediately.
34795         Rather, just warn and continue with any remaining files.
34796
34797 2008-02-10  Bruno Haible  <bruno@clisp.org>
34798
34799         New abstract list operation 'node_set_value'.
34800         * lib/gl_list.h (gl_list_node_set_value): New function.
34801         (struct gl_list_implementation): New field node_set_value.
34802         * lib/gl_list.c (gl_list_node_set_value): New function.
34803         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34804         (gl_array_list_implementation): Update.
34805         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34806         (gl_carray_list_implementation): Update.
34807         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34808         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34809         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34810         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34811         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34812         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34813         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34814         Update.
34815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34816         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34817         (gl_sublist_list_implementation): Update.
34818
34819 2008-02-10  Bruno Haible  <bruno@clisp.org>
34820
34821         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34822         Needed when ELEMENT is #defined to 'some_type *'.
34823
34824 2008-02-10  Jim Meyering  <meyering@redhat.com>
34825
34826         New script and module: useless-if-before-free
34827         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34828         * build-aux/useless-if-before-free: New file.
34829         * modules/useless-if-before-free: New file.
34830
34831         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34832
34833         xstrtol_error: Fix typo.
34834         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34835         s/exit_failure/exit_status/.
34836
34837 2008-02-09  Jim Meyering  <meyering@redhat.com>
34838
34839         New script and module: gitlog-to-changelog
34840         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34841         * modules/gitlog-to-changelog: New file.
34842         * build-aux/gitlog-to-changelog: New file.
34843
34844 2008-02-08  Jim Meyering  <meyering@redhat.com>
34845
34846         Avoid two "parameter unused" warnings.
34847         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34848         Mark "st" as used.
34849
34850         Use "git COMMAND", not "git-COMMAND".
34851         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34852         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34853         * build-aux/git-version-gen: Use "git status", not "git-status".
34854
34855 2008-02-07  Bruno Haible  <bruno@clisp.org>
34856
34857         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34858         Avoids a crash on Windows Vista.
34859         Reported by Adam Strzelecki <ono@java.pl> via
34860         Simon Josefsson <simon@josefsson.org>.
34861
34862 2008-02-06  Bruno Haible  <bruno@clisp.org>
34863
34864         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34865         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34866         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34868         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34870         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34871         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34876         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34879         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34880         left-adjust flag.
34881         * tests/test-snprintf-posix.h (test_function): Likewise.
34882         * tests/test-sprintf-posix.h (test_function): Likewise.
34883         * tests/test-vasprintf-posix.c (test_function): Likewise.
34884         * doc/posix-functions/fprintf.texi: Update.
34885         * doc/posix-functions/printf.texi: Update.
34886         * doc/posix-functions/snprintf.texi: Update.
34887         * doc/posix-functions/sprintf.texi: Update.
34888         * doc/posix-functions/vfprintf.texi: Update.
34889         * doc/posix-functions/vprintf.texi: Update.
34890         * doc/posix-functions/vsnprintf.texi: Update.
34891         * doc/posix-functions/vsprintf.texi: Update.
34892         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34893
34894 2008-02-06  Bruno Haible  <bruno@clisp.org>
34895
34896         Fix bug introduced on 2008-01-26.
34897         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34898
34899 2008-02-06  Bruno Haible  <bruno@clisp.org>
34900
34901         Fix bug introduced on 2007-06-10.
34902         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34903         !NEED_PRINTF_FLAG_ZERO.
34904
34905 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34906
34907         getloadavg: use libperfstat on AIX5
34908         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34909
34910 2008-02-03  Bruno Haible  <bruno@clisp.org>
34911
34912         * lib/diffseq.h: Add comments about required #includes.
34913         Reported by Michael Biggs <gnulib@doubleplum.net>.
34914
34915 2008-02-01  Bruno Haible  <bruno@clisp.org>
34916
34917         * users.txt: Add gnuit.
34918
34919 2008-01-31  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/md4.c (set_uint32): Mark as inline.
34922         * lib/md5.c (set_uint32): Likewise.
34923         * lib/sha1.c (set_uint32): Likewise.
34924         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34925         * m4/md5.m4 (gl_MD5): Likewise.
34926         * m4/sha1.m4 (gl_SHA1): Likewise.
34927
34928 2008-01-31  Jim Meyering  <meyering@redhat.com>
34929
34930         Use "sizeof VAR", rather than a literal "4".
34931         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34932         * lib/md4.c (md4_read_ctx): Likewise.
34933         * lib/sha1.c (sha1_read_ctx): Likewise.
34934
34935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34936
34937         * tests/test-sha1.c: New file, based on test-md5.c.
34938
34939         * modules/crypto/sha1-tests: New file.
34940
34941 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34942
34943         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34944
34945 2008-01-31  Jim Meyering  <meyering@redhat.com>
34946
34947         Prefer "sizeof v" over the equivalent "4".
34948         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34949         * lib/md5.c (set_uint32): Likewise.
34950         * lib/sha1.c (set_uint32): Likewise.
34951
34952 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34953
34954         * lib/sha1.c (set_uint32): Mark function as static.
34955
34956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34957
34958         md2: clarify comments to say that alignment is not required.
34959         * lib/md2.h: Remove warning about alignment in comment.
34960         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34961         never been required.
34962
34963 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34964
34965         md4: adapt alignment constraint fix from sha1.
34966         * lib/md4.c (set_uint32): New function, from sha1.c
34967         (md4_read_ctx): Use it.
34968         (md4_finish_ctx): Doc fix.
34969         * lib/md4.h: Doc fix.
34970
34971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34972
34973         md5: adapt alignment constraint fix from sha1.
34974         * lib/md5.c (set_uint32): New function, from sha1.c
34975         (md5_read_ctx): Use it.
34976         (md5_finish_ctx): Doc fix.
34977         * lib/md5.h: Doc fix.
34978
34979 2008-01-30  Peter Palfrader  <weasel@debian.org>
34980
34981         sha1: remove the result buffer alignment constraint
34982         * lib/sha1.c (set_uint32): New function.
34983         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34984         constraint.
34985         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34986         * lib/sha1.h: Likewise.
34987
34988 2008-01-30  Andreas Schwab  <schwab@suse.de>
34989             Bruno Haible  <bruno@clisp.org>
34990
34991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34992         correct definition of LDBL_MIN_EXP.
34993
34994 2008-01-30  Karl Berry  <karl@gnu.org>
34995
34996         * config/srclist-update: try to preserve x bit on updates.
34997         * config/srclistvars.sh: update for karl.
34998
34999 2008-01-29  Jim Meyering  <meyering@redhat.com>
35000
35001         vasnprintf.c: Avoid warning about unused label
35002         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35003         "overflow" label definition and associated code with the
35004         same cpp condition that guards the sole use of that label.
35005
35006 2008-01-26  Bruno Haible  <bruno@clisp.org>
35007
35008         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35009         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35010         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35011         * lib/isnanl-nolibm.h (isnanl): Likewise.
35012         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35013
35014 2008-01-26  Bruno Haible  <bruno@clisp.org>
35015
35016         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35017         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35018
35019 2008-01-26  Bruno Haible  <bruno@clisp.org>
35020
35021         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35022         GCC >= 4.0 built-in.
35023         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35024
35025 2008-01-26  Bruno Haible  <bruno@clisp.org>
35026
35027         Rename isnan, applicable to 'double' only, to isnand.
35028         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35029         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35030         (configure.ac): Update.
35031         (Include): Replace "isnan.h" with "isnand.h".
35032         * m4/isnand.m4: Renamed from m4/isnan.m4.
35033         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35034         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35035         instead of isnan.c.
35036         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35037         instead of HAVE_ISNAN_IN_LIBC.
35038         (isnand): Renamed from isnan.
35039         * lib/isnand.c: New file.
35040         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35041         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35042         (Makefile.am): Update.
35043         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35044         Include isnand.h instead of isnan.h.
35045         (main): Test isnand instead of isnan.
35046         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35047         isnan-nolibm.
35048         * modules/frexp (Depends-on): Likewise.
35049         * modules/frexp-tests (Depends-on): Likewise.
35050         * modules/frexp-nolibm (Depends-on): Likewise.
35051         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35052         * modules/isfinite (Depends-on): Likewise.
35053         * modules/round-tests (Depends-on): Likewise.
35054         * modules/signbit (Depends-on): Likewise.
35055         * modules/signbit-tests (Depends-on): Likewise.
35056         * modules/snprintf-posix (Depends-on): Likewise.
35057         * modules/sprintf-posix (Depends-on): Likewise.
35058         * modules/trunc-tests (Depends-on): Likewise.
35059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35060         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35062         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35063         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35064         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35066         * modules/vasnprintf-posix (Depends-on): Likewise.
35067         * modules/vasprintf-posix (Depends-on): Likewise.
35068         * modules/vfprintf-posix (Depends-on): Likewise.
35069         * modules/vsnprintf-posix (Depends-on): Likewise.
35070         * modules/vsprintf-posix (Depends-on): Likewise.
35071         * lib/frexp.c: Include isnand.h instead of isnan.h.
35072         (ISNAN): Set to isnand instead of isnan.
35073         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35074         (gl_isfinited): Use isnand instead of isnan.
35075         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35076         (gl_signbitd): Use isnand instead of isnan.
35077         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35078         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35079         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35080         (main): Use isnand instead of isnan.
35081         * tests/test-round1.c: Include isnand.h.
35082         (main): Use isnand instead of isnan.
35083         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35084         (ISNAN): Set to isnand instead of isnan.
35085         * tests/test-trunc1.c: Include isnand.h.
35086         (main): Use isnand instead of isnan.
35087         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35088         (equal): Use isnand instead of isnan.
35089         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35090         isnand-nolibm.
35091         * NEWS: Mention the change.
35092
35093 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35094             Bruno Haible  <bruno@clisp.org>
35095
35096         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35097         the GCC builtins for signbits are present and set
35098         REPLACE_SIGNBIT_USING_GCC if so.
35099         * lib/math.in.h (signbit): Define using GCC builtins if
35100         REPLACE_SIGNBIT_USING_GCC is set.
35101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35102         REPLACE_SIGNBIT_USING_GCC.
35103         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35104
35105 2008-01-25  Jim Meyering  <meyering@redhat.com>
35106
35107         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35108         * lib/poll.c: Include <config.h>, not "config.h".
35109         * tests/test-getaddrinfo.c: Likewise.
35110
35111 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35112
35113         * modules/sockets-tests: New file.
35114
35115 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35116
35117         * modules/sockets: New module, can be used to call WSA_Startup and
35118         WSA_Cleanup when needed.
35119
35120         * lib/sockets.h, lib/sockets.c: New files.
35121
35122         * m4/sockets.m4: New file.
35123
35124         * tests/test-sockets.c: New file.
35125
35126 2008-01-19  Bruno Haible  <bruno@clisp.org>
35127
35128         * doc/posix-headers: Renamed from doc/headers.
35129         * doc/posix-functions: Renamed from doc/functions.
35130         * doc/gnulib.texi: Update.
35131
35132 2008-01-19  Bruno Haible  <bruno@clisp.org>
35133
35134         * doc/glibc-functions/strcasestr.texi: Include contents of
35135         doc/functions/strcasestr.texi, fixing the list of platforms.
35136         * doc/functions/strcasestr.texi: Remove file.
35137
35138 2008-01-19  Bruno Haible  <bruno@clisp.org>
35139
35140         * doc/glibc-functions/memmem.texi: Include contents of
35141         doc/functions/memmem.texi.
35142         * doc/functions/memmem.texi: Remove file.
35143
35144 2008-01-18  Bruno Haible  <bruno@clisp.org>
35145
35146         * doc/glibc-functions/*.texi: New files.
35147         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35148         to use the new files.
35149
35150 2008-01-17  Bruno Haible  <bruno@clisp.org>
35151
35152         * tests/test-gethostname.c (main): Fix printf statement.
35153
35154 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35155
35156         * modules/gethostname-tests: New file.
35157
35158         * tests/test-gethostname.c: New file.
35159
35160 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35161
35162         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35163         used by the UNAME case.  Reported by Bruno Haible
35164         <bruno@clisp.org>.
35165
35166 2008-01-17  Eric Blake  <ebb9@byu.net>
35167
35168         Convert c-strcasestr to be more efficient.
35169         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35170         (Depends-on): Add c-strcase, remove malloca, strnlen.
35171         * tests/test-c-strcasestr.c (main): Enhance test.
35172         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35173
35174 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35175
35176         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35177         Use it in creating po/Makevars.
35178
35179 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35180
35181         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35182         Applications that requires it should initialize libgcrypt
35183         manually.
35184
35185 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35186
35187         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35188
35189 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35190
35191         Fix problem with getdate on mingw32 reported by Simon Josefsson
35192         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35193         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35194         tzname", when deciding whether to declare tzname.
35195         * lib/strftime.c (tzname): Likewise.
35196
35197 2008-01-15  Bruno Haible  <bruno@clisp.org>
35198
35199         Work around a MacOS X 10.5 bug in frexpl().
35200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35201         * doc/functions/frexpl.texi: Document the bug.
35202         Reported by Elias Pipping <pipping@gentoo.org>.
35203
35204 2008-01-14  Eric Blake  <ebb9@byu.net>
35205
35206         Touch up previous patch.
35207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35208         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35209
35210         Convert strcasestr module to use Two-Way algorithm.
35211         * modules/strcasestr-simple: New module, based on the old
35212         strcasestr, but with Two-Way rather than KMP.
35213         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35214         * lib/string.in.h (rpl_strcasestr): Declare.
35215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35216         performance.
35217         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35218         * modules/string (Makefile.am): Support strcasestr.
35219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35220         * modules/strcasestr-tests (Depends-on): Check for alarm.
35221         * tests/test-strcasestr.c: Augment test.
35222         * lib/str-two-way.h: Clean up stray macro.
35223         * NEWS: Document new module.
35224         * MODULES.html.sh (string handling): Likewise.
35225         * doc/functions/strcasestr.texi: New file.
35226         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35227         here, since it is not a POSIX function.
35228
35229 2008-01-14  Colin Watson  <cjwatson@debian.org>
35230             Bruno Haible  <bruno@clisp.org>
35231
35232         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35233         works fine; if not, set REPLACE_STRSIGNAL.
35234         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35236         REPLACE_STRSIGNAL.
35237         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35238         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35239         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35240
35241 2008-01-14  Bruno Haible  <bruno@clisp.org>
35242
35243         * modules/strsignal (Include): Change to <string.h>.
35244
35245 2008-01-14  Colin Watson  <cjwatson@debian.org>
35246
35247         * modules/argp (Notice): Add a notice recommending to change
35248         XGETTEXT_OPTIONS.
35249         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35250
35251 2008-01-13  Colin Watson  <cjwatson@debian.org>
35252
35253         * modules/strsignal-tests: New file.
35254         * tests/test-strsignal.c: New file.
35255
35256         * lib/strsignal.c: New file, from glibc with modifications.
35257         * lib/siglist.h: New file, from glibc with modifications.
35258         * lib/string.in.h (strsignal): New declaration.
35259         * m4/strsignal.m4: New file.
35260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35261         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35262         * modules/strsignal: New file.
35263         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35264         HAVE_DECL_STRSIGNAL.
35265
35266 2008-01-13  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35269         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35270         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35272
35273 2008-01-13  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35276         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35277         * lib/argp.h (__attribute__): Likewise.
35278         * lib/c-stack.c (__attribute__): Likewise.
35279         * lib/error.h (__attribute__): Likewise.
35280         * lib/fts.c (__attribute__): Likewise.
35281         * lib/openat.h (__attribute__): Likewise.
35282         * lib/stdio.in.h (__attribute__): Likewise.
35283         * lib/string.in.h (__attribute__): Likewise.
35284         * lib/utimens.c (__attribute__): Likewise.
35285         * lib/vasnprintf.h (__attribute__): Likewise.
35286         * lib/xalloc.h (__attribute__): Likewise.
35287         * lib/xprintf.h (__attribute__): Likewise.
35288         * lib/xstrtol.h (__attribute__): Likewise.
35289         * lib/xvasprintf.h (__attribute__): Likewise.
35290
35291 2008-01-12  Bruno Haible  <bruno@clisp.org>
35292
35293         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35294         * doc/glibc-headers/a.out.texi: New file.
35295         * doc/glibc-headers/aliases.texi: New file.
35296         * doc/glibc-headers/alloca.texi: New file.
35297         * doc/glibc-headers/ar.texi: New file.
35298         * doc/glibc-headers/argp.texi: New file.
35299         * doc/glibc-headers/argz.texi: New file.
35300         * doc/glibc-headers/byteswap.texi: New file.
35301         * doc/glibc-headers/crypt.texi: New file.
35302         * doc/glibc-headers/endian.texi: New file.
35303         * doc/glibc-headers/envz.texi: New file.
35304         * doc/glibc-headers/err.texi: New file.
35305         * doc/glibc-headers/error.texi: New file.
35306         * doc/glibc-headers/execinfo.texi: New file.
35307         * doc/glibc-headers/fpu_control.texi: New file.
35308         * doc/glibc-headers/fstab.texi: New file.
35309         * doc/glibc-headers/fts.texi: New file.
35310         * doc/glibc-headers/getopt.texi: New file.
35311         * doc/glibc-headers/ieee754.texi: New file.
35312         * doc/glibc-headers/ifaddrs.texi: New file.
35313         * doc/glibc-headers/libintl.texi: New file.
35314         * doc/glibc-headers/mcheck.texi: New file.
35315         * doc/glibc-headers/mntent.texi: New file.
35316         * doc/glibc-headers/obstack.texi: New file.
35317         * doc/glibc-headers/paths.texi: New file.
35318         * doc/glibc-headers/printf.texi: New file.
35319         * doc/glibc-headers/pty.texi: New file.
35320         * doc/glibc-headers/resolv.texi: New file.
35321         * doc/glibc-headers/shadow.texi: New file.
35322         * doc/glibc-headers/sysexits.texi: New file.
35323         * doc/glibc-headers/ttyent.texi: New file.
35324
35325 2008-01-12  Jim Meyering  <meyering@redhat.com>
35326
35327         announce-gen: emit Gnulib's git-based version string.
35328         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35329         New option --gnulib-version=V, where V is expected to be
35330         the output of running git describe in the gnulib directory.
35331         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35332         not useful, and plan to stop publishing an xdelta file with each
35333         coreutils release.
35334
35335         * build-aux/announce-gen: Also check for lzma-compressed files.
35336
35337 2008-01-11  Bruno Haible  <bruno@clisp.org>
35338
35339         * tests/test-memmem.c (main): Increase maximum allowed time.
35340         * tests/test-strstr.c (main): Likewise.
35341
35342 2008-01-11  Bruno Haible  <bruno@clisp.org>
35343
35344         * doc/functions/memmem.texi: Add more precisions about platforms.
35345         * doc/functions/strstr.texi: Likewise.
35346
35347 2008-01-10  Eric Blake  <ebb9@byu.net>
35348
35349         * m4/strstr.m4: Delete cruft from copy-n-paste.
35350         Reported by Bruno Haible.
35351
35352 2008-01-10  Bruno Haible  <bruno@clisp.org>
35353
35354         Make c-strstr rely on strstr.
35355         * lib/c-strstr.c: Don't include str-kmp.h.
35356         (c_strstr): Define in terms of strstr.
35357         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35358         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35359
35360 2008-01-10  Bruno Haible  <bruno@clisp.org>
35361
35362         * doc/gnulib.texi (String Functions in C Locale): New section.
35363         * doc/c-ctype.texi: New file.
35364         * doc/c-strcase.texi: New file.
35365         * doc/c-strcaseeq.texi: New file.
35366         * doc/c-strcasestr.texi: New file.
35367         * doc/c-strstr.texi: New file.
35368         * doc/c-strtod.texi: New file.
35369         * doc/c-strtold.texi: New file.
35370
35371 2008-01-10  Eric Blake  <ebb9@byu.net>
35372
35373         * lib/relocatable.h: Fix a comment.
35374
35375 2008-01-10  Eric Blake  <ebb9@byu.net>
35376
35377         Share two-way algorithm.
35378         * lib/str-two-way.h: New file, merged from...
35379         * lib/memmem.c: ...here...
35380         * lib/strstr.c: ...and here.
35381         * modules/memmem (Files): Use it.
35382         * modules/strstr (Files): Likewise.
35383
35384         Avoid quadratic strstr implementations.
35385         * lib/strstr.c: New file.
35386         * m4/strstr.m4: Likewise.
35387         * modules/strstr: Likewise.
35388         * modules/strstr-tests: Likewise.
35389         * tests/test-strstr.c: Likewise.
35390         * lib/string.in.h (rpl_strstr): Declare.
35391         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35393         * modules/string (Makefile.am): Likewise.
35394         * MODULES.html.sh (string handling): Mention new module.
35395         * doc/functions/strstr.texi (strstr): Document the bug.
35396
35397 2008-01-10  Bruno Haible  <bruno@clisp.org>
35398
35399         * lib/relocatable.h (relocate): State whether result is freshly
35400         allocated or not.
35401         * lib/relocatable.c (relocate): Return a freshly allocated string
35402         instead of a pointer to a privately held string.
35403         Reported by Sylvain Beucler <beuc@gnu.org>.
35404
35405 2008-01-10  Colin Watson  <cjwatson@debian.org>
35406
35407         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35408         s/S_ISNLK/S_ISLNK/.
35409
35410 2008-01-09  Bruno Haible  <bruno@clisp.org>
35411
35412         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35413         and other files.
35414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35415         if it's only a guess.
35416         * modules/memmem: Simplify by depending on memmem-simple.
35417
35418 2008-01-09  Bruno Haible  <bruno@clisp.org>
35419
35420         Work around OpenBSD 4.0 tdelete() bug.
35421         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35422         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35423         macros and don't redefine the enum values.
35424         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35425         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35426         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35427
35428 2008-01-09  Bruno Haible  <bruno@clisp.org>
35429
35430         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35431         (main): Don't perform the tests if setlocale did not install a UTF-8
35432         locale. Needed on OpenBSD 4.0.
35433         * modules/wcwidth-tests (Depends-on): Add localcharset.
35434
35435 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35436
35437         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35438         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35439         * NEWS: announce this.
35440         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35441
35442 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35443         and Eric Blake  <ebb9@byu.net>
35444
35445         Add memmem-simple module.
35446         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35447         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35448         * modules/memmem-simple: New file.
35449         * modules/memmem (Description): Tweak.
35450         * MODULES.html.sh (string handling): Mention new module.
35451         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35452         addressed by memmem-simple.
35453         * NEWS: Document the difference.
35454
35455 2008-01-09  Eric Blake  <ebb9@byu.net>
35456
35457         Give gcc some memmem optimization hints.
35458         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35459         (strcasestr): Declare as pure.
35460         * modules/memmem (Maintainer): Claim my implementation.
35461
35462 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35463
35464         Support AIX 6.1 and higher.
35465         * build-aux/config.libpath: Likewise.
35466         * build-aux/config.rpath: Likewise.
35467
35468 2008-01-08  Jim Meyering  <meyering@redhat.com>
35469             Bruno Haible  <bruno@clisp.org>
35470
35471         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35472         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35473         Reported by Peter Fales in
35474         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35475
35476 2008-01-08  Bruno Haible  <bruno@clisp.org>
35477
35478         * modules/unictype/category-of (Depends-on): Add
35479         unictype/category-none.
35480         * modules/unictype/category-and-tests (Depends-on): Add
35481         unictype/category-{L,N,Lu,Nd}.
35482         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35483         * modules/unictype/category-or-tests (Depends-on): Add
35484         unictype/category-{L,N}.
35485         * modules/unictype/category-name-tests (Depends-on): Add
35486         unictype/category-{Z,Nl}.
35487         Reported by Simon Josefsson.
35488
35489 2008-01-08  Bruno Haible  <bruno@clisp.org>
35490
35491         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35492         convention better.
35493         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35494         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35495         Reported by Peter Miller <millerp@canb.auug.org.au>.
35496
35497 2008-01-08  Eric Blake  <ebb9@byu.net>
35498
35499         Rewrite memmem to guarantee linear complexity without malloc.
35500         * lib/memmem.c (memmem): Use Two-Way rather than
35501         Knuth-Morris-Pratt, to allow O(1) space usage.
35502         (critical_factorization, two_way_short_needle)
35503         (two_way_long_needle): New functions.
35504         (knuth_morris_pratt): Delete.
35505         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35506         Add stdint.
35507         * tests/test-memmem.c (main): Add tests for periodic needle and
35508         sublinear performance.
35509         * doc/functions/memmem.texi (memmem): Document other deficiencies
35510         in cygwin and older glibc.
35511
35512 2008-01-08  Bruno Haible  <bruno@clisp.org>
35513
35514         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35515         augmentation.
35516
35517 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35518
35519         Add a configure time option: --disable-acl.
35520         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35521         AC_ARG_ENABLE(acl).
35522
35523 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35524
35525         * tests/test-localename.c: Don't include obsolete "setenv.h".
35526
35527         * modules/localename-tests (Depends-on): Need unsetenv.
35528
35529 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35530
35531         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35532
35533 2008-01-06  Colin Watson  <cjwatson@debian.org>
35534
35535         * users.txt: Add man-db.
35536
35537 2008-01-07  Bruno Haible  <bruno@clisp.org>
35538
35539         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35540         previous section name.
35541
35542 2008-01-07  Bruno Haible  <bruno@clisp.org>
35543
35544         * lib/progname.c (set_program_name): Don't strip off a leading
35545         "lt-" prefix outside a .libs directory.
35546         Suggested by Paul Eggert.
35547
35548 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35549             Bruno Haible  <bruno@clisp.org>
35550
35551         Improve memory cleanup in 'relocatable' module.
35552         * lib/relocatable.h (compute_curr_prefix): Change return type to
35553         'char *'.
35554         * lib/relocatable.c (compute_curr_prefix): Change return type to
35555         'char *'. Free curr_installdir after use.
35556         (relocate): Free curr_prefix_better after use.
35557         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35558
35559 2008-01-01  Bruno Haible  <bruno@clisp.org>
35560
35561         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35562         failure on older glibc systems.
35563         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35564
35565 2008-01-05  Eric Blake  <ebb9@byu.net>
35566
35567         Avoid quadratic system memmem.
35568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35569         Reported by Ralf Wildenhues.
35570
35571         Fix memmem test for mingw.
35572         * modules/memmem-tests (configure.ac): Check for alarm.
35573         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35574         it.
35575         * doc/functions/memmem.texi: New file.
35576         * doc/gnulib.texi (Function Substitutes): Add memmem.
35577         Reported by Bruno Haible.
35578
35579 2008-01-04  Bruno Haible  <bruno@clisp.org>
35580
35581         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35582         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35583         gl_HEADER_STRING_H_DEFAULTS.
35584
35585 2008-01-04  Eric Blake  <ebb9@byu.net>
35586
35587         Shorten duration of memmem test.
35588         * tests/test-memmem.c (main): Use alarm to declare failure if test
35589         is taking too long.
35590         Reported by Ralf Wildenhues.
35591
35592 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35593
35594         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35595         string, needed by strerror.
35596
35597 2008-01-03  Colin Watson  <cjwatson@debian.org>
35598             Bruno Haible  <bruno@clisp.org>
35599
35600         * doc/gnulib-tool.texi (Localization): New section.
35601
35602 2008-01-02  Bruno Haible  <bruno@clisp.org>
35603
35604         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35605         variables to 'unsigned char *' type.
35606         Reported by Paul Eggert.
35607
35608 2008-01-02  Jim Meyering  <jim@meyering.net>
35609
35610         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35611
35612 2007-12-31  Jim Meyering  <jim@meyering.net>
35613
35614         Avoid use of private FTS type name.
35615         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35616
35617 2007-12-30  Karl Berry  <karl@gnu.org>
35618
35619         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35620         work around defect in Texinfo and/or the standalone Info browser.
35621
35622 2007-12-30  Bruno Haible  <bruno@clisp.org>
35623
35624         Unify 5 copies of the KMP code.
35625         * lib/str-kmp.h: New file.
35626         * lib/c-strcasestr.c: Include str-kmp.h.
35627         (knuth_morris_pratt): Remove function.
35628         (c_strcasestr): Update.
35629         * lib/c-strstr.c: Include str-kmp.h.
35630         (knuth_morris_pratt): Remove function.
35631         (c_strcasestr): Update.
35632         * lib/mbscasestr.c: Include str-kmp.h.
35633         (knuth_morris_pratt_unibyte): Remove function.
35634         * lib/mbsstr.c: Include str-kmp.h.
35635         (knuth_morris_pratt_unibyte): Remove function.
35636         * lib/strcasestr.c: Include str-kmp.h.
35637         (knuth_morris_pratt): Remove function.
35638         (strcasestr): Update.
35639         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35640         * modules/c-strstr (Files): Likewise.
35641         * modules/mbscasestr (Files): Likewise.
35642         * modules/mbsstr (Files): Likewise.
35643         * modules/strcasestr (Files): Likewise.
35644         Suggested by Paul Eggert.
35645
35646 2007-12-30  Bruno Haible  <bruno@clisp.org>
35647
35648         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35649         defined.
35650
35651 2007-12-30  Bruno Haible  <bruno@clisp.org>
35652
35653         * lib/xmalloca.h: Include xalloc.h.
35654         (xnmalloca): New macro.
35655
35656 2007-12-30  Bruno Haible  <bruno@clisp.org>
35657
35658         * lib/malloca.h (nmalloca): New macro.
35659         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35660         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35661         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35662         knuth_morris_pratt_multibyte): Likewise.
35663         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35664         knuth_morris_pratt_multibyte): Likewise.
35665         * lib/memmem.c (knuth_morris_pratt): Likewise.
35666         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35667
35668 2007-12-25  Bruno Haible  <bruno@clisp.org>
35669
35670         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35671         * lib/glob.c: Don't include openat.h.
35672         (link_exists2_p): Add back the code that deals with the
35673         !GLOB_ALTDIRFUNC case.
35674         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35675         let it do the filename concatenation.
35676         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35677         * modules/glob (Depends-on): Remove openat.
35678
35679 2007-12-31  Bruno Haible  <bruno@clisp.org>
35680
35681         * modules/dirfd (License): Change to LGPLv2+.
35682         Approved by Jim Meyering.
35683
35684 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35685
35686         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35687         when multiplying M by sizeof (size_t).
35688
35689 2007-12-10  Martin Lambers  <marlam@marlam.de>
35690
35691         Override getpagesize on mingw.
35692         * lib/getpagesize.c: New file.
35693         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35694         * modules/getpagesize (Files): Add lib/getpagesize.c.
35695         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35697         REPLACE_GETPAGESIZE.
35698         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35699
35700 2007-12-25  Bruno Haible  <bruno@clisp.org>
35701
35702         * modules/localcharset (Notice): New field.
35703         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35704         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35705
35706 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35707             Bruno Haible  <bruno@clisp.org>
35708
35709         Avoid using the syntax symbol() in formatted documentation.
35710         * MODULES.html.sh (func_module): When replacing symbol() with a
35711         hyperlink, remove the parentheses. Show an error if some remain.
35712         Recognize and render the '...' syntax.
35713         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35714         Rework. Add paragraph about GCC's inlining.
35715         * doc/alloca.texi: Likewise.
35716         * doc/error.texi: Remove parentheses from symbol reference.
35717         * doc/gnulib-intro.texi: Likewise.
35718         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35719         * modules/fnmatch (Description): Reword to say "the ... function".
35720         * modules/full-read (Description): Likewise.
35721         * modules/full-write (Description): Likewise.
35722         * modules/safe-read (Description): Likewise.
35723         * modules/safe-write (Description): Likewise.
35724         * modules/strchrnul (Description): Likewise.
35725         * modules/trim (Description): Likewise.
35726         * modules/error (Description): Remove parentheses from symbol
35727         references.
35728         * modules/verror (Description): Likewise.
35729         Reported by Karl Berry.
35730
35731 2007-12-25  Bruno Haible  <bruno@clisp.org>
35732
35733         Fixup after 2007-10-16 commit.
35734         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35735
35736 2007-12-24  Bruno Haible  <bruno@clisp.org>
35737
35738         Make --enable-relocatable work with DESTDIR.
35739         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35740         to compute installdir from destprog.
35741         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35742         also set the RELOC_DESTDIR variable.
35743         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35744
35745 2007-12-24  Bruno Haible  <bruno@clisp.org>
35746
35747         Fix link error due to xalloc_die().
35748         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35749         of xreadlink.
35750         * lib/relocwrapper.c: Update comments.
35751         * build-aux/install-reloc: Remove xreadlink.c from file list.
35752         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35753         xreadlink.c.
35754         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35755
35756 2007-12-24  Bruno Haible  <bruno@clisp.org>
35757
35758         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35759         * lib/setenv.h: Remove file.
35760         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35761         lib/setenv.h.
35762         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35763         (Depends-on): Add stdlib.
35764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35765         gl_FUNC_UNSETENV.
35766         (Include): Replace setenv.h with <stdlib.h>.
35767         * modules/unsetenv: New file.
35768         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35769         * lib/unsetenv.c: Include <stdlib.h> first.
35770         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35771         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35772         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35773         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35774         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35775         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35777         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35778         * doc/functions/unsetenv.texi: Update.
35779         * modules/xsetenv (Depends-on): Add unsetenv.
35780         * modules/getdate (Depends-on): Likewise.
35781         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35782         * lib/xsetenv.c: Don't include setenv.h.
35783         * lib/getdate.y: Likewise.
35784         * lib/relocwrapper.c: Likewise.
35785         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35786         (Depends-on): Add stdlib.
35787         * NEWS: Mention the changes.
35788         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35789
35790 2007-12-23  Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35793         indentation.
35794
35795 2007-12-23  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/c-strcasestr.c: Add more comments.
35798         * lib/c-strstr.c: Likewise.
35799         * lib/mbscasestr.c: Likewise.
35800         * lib/mbsstr.c: Likewise.
35801         * lib/strcasestr.c: Likewise.
35802         * lib/memmem.c: Likewise.
35803
35804 2007-12-23  Bruno Haible  <bruno@clisp.org>
35805
35806         * tests/test-memmem.c: Include <string.h> first.
35807
35808 2007-12-22  Bruno Haible  <bruno@clisp.org>
35809
35810         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35811         the contents of $testsbase.
35812         Reported by Ralf Wildenhues.
35813
35814 2007-12-22  Bruno Haible  <bruno@clisp.org>
35815
35816         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35817         two variables local_ldadd_before, local_ldadd_last.
35818
35819 2007-12-20  Eric Blake  <ebb9@byu.net>
35820
35821         Work around circular library issue when cross-compiling.
35822         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35823         that progname.o does not need to pull in rpl_memcmp.
35824
35825 2007-12-19  Eric Blake  <ebb9@byu.net>
35826
35827         Fix memmem to avoid O(n^2) worst-case complexity.
35828         * lib/memmem.c (knuth_morris_pratt): New function.
35829         (memmem): Use it if first few naive iterations fail.
35830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35831         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35832         * modules/memchr (License): Likewise.
35833         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35834         malloca.
35835         * tests/test-memmem.c: Rewrite, borrowing ideas from
35836         test-mbsstr1.c; the old version wouldn't even compile!
35837         * modules/memmem-tests: New file.
35838         * lib/string.in.h (rpl_memmem): Add declaration.
35839         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35841         REPLACE_MEMMEM.
35842
35843 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35844
35845         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35846         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35847         before any system include files, and undef after them all.  This
35848         should fix a problem on VMS reported by John E. Malmberg in
35849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35850
35851 2007-12-17  Eric Blake  <ebb9@byu.net>
35852
35853         Revert addition of verify, for BSD/OS.
35854         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35855         can't handle large files, for the sake of obsolete platforms.
35856         * modules/fseeko (Depends-on): Remove verify.
35857         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35858         * doc/functions/ftello.texi (ftello): Likewise.
35859         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35860         Reported by Larry Jones.
35861
35862 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35863
35864         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35865         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35866
35867 2007-12-17  Jim Meyering  <meyering@redhat.com>
35868
35869         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35870         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35871         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35872         * modules/getcwd (Depends-on): Add openat.
35873         Reported by Petr Salinger.
35874
35875 2007-12-17  Bruno Haible  <bruno@clisp.org>
35876
35877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35878         avoid a segmentation fault of the configure test on x86_64 systems.
35879
35880 2007-12-15  Jim Meyering  <meyering@redhat.com>
35881
35882         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35883
35884 2007-12-13  Eric Blake  <ebb9@byu.net>
35885
35886         Another fseek test.
35887         * tests/test-fseek.c (main): Also test ungetc handling.
35888         * tests/test-fseeko.c (main): Likewise.
35889         * modules/fseeko (Depends-on): Add verify.
35890         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35891         large.
35892         Reported by Larry Jones.
35893
35894         Fix fseeko on mingw.
35895         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35896         seek.
35897
35898         Beef up fseek tests.
35899         * tests/test-fseek.c (main): Also test eof handling.
35900         * tests/test-fseeko.c (main): Likewise.
35901         Reported by Larry Jones.
35902
35903 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35904
35905         Fix fseeko on BSD-based platforms.
35906         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35907         successful seek.
35908
35909 2007-12-12  Eric Blake  <ebb9@byu.net>
35910
35911         Allow circular dependency of separate libtests.a
35912         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35913         when use_libtests.
35914
35915 2007-12-11  Eric Blake  <ebb9@byu.net>
35916
35917         Fix bug with -0.0L in previous patch.
35918         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35919         * tests/test-isnan.c (main): Also test on zeroes.
35920         * tests/test-isnanf.c (main): Likewise.
35921         * tests/test-isnanl.h (main): Likewise.
35922
35923         Detect pseudo-denormals on x86 even when cross-compiling.
35924         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35925         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35926         invalid bit patterns that happen to satisfy ==.
35927
35928         Avoid link failures with separate libtests.a.
35929         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35930         last, to satisfy circular dependencies.
35931
35932 2007-12-11  Eric Blake  <ebb9@byu.net>
35933         and Bruno Haible  <bruno@clisp.org>
35934
35935         Fix OpenBSD 4.0 <float.h> handling of long double.
35936         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35937         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35938         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35939
35940 2007-12-11  Jim Meyering  <meyering@redhat.com>
35941
35942         * users.txt: Add libvirt.
35943
35944         Support versions of autoconf prior to 2.59c.
35945         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35946         if it is not already defined.
35947
35948 2007-12-09  Bruno Haible  <bruno@clisp.org>
35949
35950         Let 'gnulib-tool --import' collect sources needed for the tests in
35951         tests/ rather than in lib/.
35952         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35953         argument. If true, add rules to generate libtests.a, and put libtests.a
35954         into $(LDADD). Consider source files in subdirectories and set
35955         uses_subdirs.
35956         (func_emit_initmacro_start, func_emit_initmacro_end,
35957         func_emit_initmacro_done): Pass all arguments explicitly.
35958         (func_import): Determine two module lists main_modules,
35959         testsrelated_modules. Determine use_libtests. Determine two variables
35960         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35961         instead of just sed_transform_lib_file. Determine two variables
35962         main_files and testsrelated_files. Compute 'files' as the union of
35963         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35964         func_add_or_update. In the generated gnulib-comp.m4, collect the
35965         object files for tests/ in different variables than those for lib/.
35966         Substitute LIBTESTS_LIBDEPS.
35967         (func_create_testdir): Combine the uses_subdirs results from
35968         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35969
35970 2007-12-09  Bruno Haible  <bruno@clisp.org>
35971
35972         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35973         the build-aux directory.
35974
35975 2007-12-09  Bruno Haible  <bruno@clisp.org>
35976
35977         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35978         introduced on 2006-09-09.
35979
35980 2007-12-07  Jim Meyering  <meyering@redhat.com>
35981
35982         Let these macros work also with autoconf-2.59.
35983         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35984         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35985         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35986
35987 2007-12-06  Jim Meyering  <meyering@redhat.com>
35988
35989         Avoid a configure-time syntax error in gl_FUNC_ACL.
35990         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35991         function in each branch, before testing the cache variable.
35992
35993 2007-12-04  Eric Blake  <ebb9@byu.net>
35994
35995         Make scripts executable.
35996         * build-aux/config.guess: Add execute permissions.
35997         * build-aux/config.sub: Likewise.
35998         * build-aux/gendocs.sh: Likewise.
35999
36000         Fix frexp on mingw.
36001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36002         cross-compiling.
36003         * doc/functions/frexp.texi (frexp): Document the bug.
36004
36005         Make cygwin fseeko check more reliable.
36006         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36007         version numbers, rather than unrelated feature check.
36008         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36009         * doc/functions/ftello.texi (ftello): Likewise.
36010         Reported by Bruno Haible.
36011
36012         * m4/strerror.m4: Bump version number.
36013
36014 2007-12-03  Bruno Haible  <bruno@clisp.org>
36015
36016         * doc/functions/mprotect.texi: Mention the mingw problem.
36017
36018 2007-12-03  Eric Blake  <ebb9@byu.net>
36019
36020         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36021         REPLACE_STRERROR is initialized before this macro.
36022
36023 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36024
36025         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36026         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36027         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36028         put -lsec in even for programs other than 'ls'.  This fixes a problem
36029         for gettext reported by Bruno Haible in
36030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36031         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36032         Add support for Solaris 10.  This isn't efficient, but should get the
36033         job done for now.
36034
36035 2007-12-03  James Youngman  <jay@gnu.org>
36036
36037         * doc/regexprops-generic.texi: change "an close-group" to "a
36038         close-group" and "illegal" to "not allowed".
36039
36040 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36041
36042         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36043         pr_byname.h. Needed for the rare case when the maintainer has done
36044         "make maintainer-clean" in the source directory and then attempts a
36045         build outside the source directory.
36046         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36047         scripts_byname.h.
36048
36049 2007-12-02  Martin Lambers <marlam@marlam.de>
36050             Bruno Haible  <bruno@clisp.org>
36051
36052         * lib/getpagesize.h: Remove file.
36053         * lib/unistd.in.h: Include declaration of getpagesize here.
36054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36055         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36056         HAVE_SYS_PARAM_H.
36057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36058         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36059         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36060         (Depends-on): Add unistd.
36061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36062         (Include): Use <unistd.h> instead of getpagesize.h.
36063         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36064         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36065         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36066         gl_GETPAGESIZE invocation, already handled by module dependency.
36067         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36068
36069 2007-12-02  Bruno Haible  <bruno@clisp.org>
36070
36071         * modules/strings-tests: New file.
36072         * tests/test-strings.c: New file.
36073
36074         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36075         * lib/strings.in.h: New file.
36076         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36077         * m4/strings_h.m4: New file.
36078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36079         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36080         * modules/strings: New file.
36081         * modules/string (Makefile.am): Update.
36082         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36083         Reported by Karl Berry.
36084
36085 2007-12-01  Eric Blake  <ebb9@byu.net>
36086
36087         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36088         accomodate fix in cygwin 1.5.25.
36089
36090 2007-12-01  Jim Meyering  <meyering@redhat.com>
36091
36092         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36093         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36094         that would inhibit utf8-optimization of a regexp containing line-
36095         or buffer-anchors, e.g., `^', `$'.
36096
36097 2007-11-30  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36100         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36101         glthread_recursive_lock_init.
36102         * lib/lock.c (glthread_recursive_lock_init)
36103         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36104         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36105
36106 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36107
36108         New function qset_acl, like set_acl but with syscall semantics.
36109         * lib/acl.h (qset_acl): New decl.
36110         * lib/acl.c (qset_acl): New function.
36111         (set_acl): Use new function.  Use more-consistent diagnostics.
36112
36113 2007-11-28  Jim Meyering  <meyering@redhat.com>
36114
36115         * modules/physmem (License): Change from GPL to LGPLv2+.
36116
36117 2007-11-26  Bruno Haible  <bruno@clisp.org>
36118
36119         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36120         'long double' type has excess precision.
36121         Reported by Jim Meyering in
36122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36123
36124 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36125
36126         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36127         Sync from <http://gnu.org/licenses>.
36128         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36129         with license text from same location.
36130         * doc/maintain.texi, doc/standards.texi:  Sync from
36131         <http://savannah.gnu.org/projects/gnustandards>.
36132
36133 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36134         and Jim Meyering  <meyering@redhat.com>
36135
36136         Adjust getdate' grammar to accept a slightly more regular language.
36137         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36138         Before, the former was rejected.
36139         * lib/getdate.y (digits_to_date_time): New function, factored
36140         out of ...
36141         (number): ...here.  Just call digits_to_date_time.
36142         (hybrid): New non-terminal to handle an <unsigned number,
36143         signed relative offset> sequence consistently.
36144
36145 2007-11-18  Jim Meyering  <meyering@redhat.com>
36146
36147         Pull my changes from coreutils:
36148         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36149         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36150         use of $gnulib_tool_option_extras, so that it's separated from the
36151         preceding argument.
36152
36153         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36154         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36155         parent destination directories before copying a file into place.
36156
36157 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36158
36159         bootstrap: work also with 4-argument variant of AC_INIT
36160         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36161
36162 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36163
36164         Port test-getaddrinfo to Solaris.
36165         Problem reported by Bruno Haible in
36166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36167         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36168         explanation of setting 'hints'.
36169         Don't reject an implementation merely because it returns EAI_SERVICE.
36170         (EAI_SERVICE): Define to 0 if not defined.
36171
36172 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36173
36174         The license of gnu-make and posix-shell is now "GPLed build tool".
36175         * modules/gnu-make (License): Likewise.
36176         * modules/posix-shell (License): Likewise.
36177
36178         New module posix-shell, for determining a POSIX shell
36179         or perhaps something that is close enough to a POSIX shell.
36180         * m4/posix-shell.m4: New file.
36181         * modules/posix-shell: New file.
36182
36183         * MODULES.html.sh: Mention new module.
36184
36185         New module gnu-make, for determining whether we're using GNU Make.
36186         * m4/gnu-make.m4: New file.
36187         * modules/gnu-make: New file.
36188         * MODULES.html.sh: Mention new module.
36189
36190 2007-11-14  Jim Meyering  <meyering@redhat.com>
36191
36192         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36193         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36194         use this macro to create a function _definition_.
36195         Remove useless "#undef ARGMATCH_DIE".
36196
36197 2007-11-14  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/config.charset: Update for OpenBSD 4.1.
36200         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36201
36202 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36203
36204         Document 64-bit #if problems in stdint.texi.
36205         * doc/headers/stdint.texi (stdint.h): Mention problems with
36206         64-bit-#if, and how to work around them.
36207
36208         Don't insist on 'long long int' support in the preprocessor.  It
36209         breaks too many things.  For example, PRIdMAX still uses a 'long
36210         long int' format with the latest Sun compiler, even though
36211         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36212         preprocessor problem.  This causes the latest coreutils to dump
36213         core on Solaris 10 sparc with the Sun C compiler.
36214         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36215         the troublesome expressions at configure-time, not at #if-time.
36216         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36217         preprocessor.
36218         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36219         compile-time C checks, done at 'configure'-time.
36220         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36221         * modules/inttypes (Makefile): Substitute the new symbols that
36222         gl_INTTYPES_H now generates.
36223         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36224
36225 2007-11-12  Bruno Haible  <bruno@clisp.org>
36226
36227         Tests for Unicode character classification functions.
36228
36229         * modules/unictype/bidicategory-byname-tests: New file.
36230         * modules/unictype/bidicategory-name-tests: New file.
36231         * modules/unictype/bidicategory-of-tests: New file.
36232         * modules/unictype/bidicategory-test-tests: New file.
36233         * modules/unictype/block-list-tests: New file.
36234         * modules/unictype/block-of-tests: New file.
36235         * modules/unictype/block-test-tests: New file.
36236         * modules/unictype/category-C-tests: New file.
36237         * modules/unictype/category-Cc-tests: New file.
36238         * modules/unictype/category-Cf-tests: New file.
36239         * modules/unictype/category-Cn-tests: New file.
36240         * modules/unictype/category-Co-tests: New file.
36241         * modules/unictype/category-Cs-tests: New file.
36242         * modules/unictype/category-L-tests: New file.
36243         * modules/unictype/category-Ll-tests: New file.
36244         * modules/unictype/category-Lm-tests: New file.
36245         * modules/unictype/category-Lo-tests: New file.
36246         * modules/unictype/category-Lt-tests: New file.
36247         * modules/unictype/category-Lu-tests: New file.
36248         * modules/unictype/category-M-tests: New file.
36249         * modules/unictype/category-Mc-tests: New file.
36250         * modules/unictype/category-Me-tests: New file.
36251         * modules/unictype/category-Mn-tests: New file.
36252         * modules/unictype/category-N-tests: New file.
36253         * modules/unictype/category-Nd-tests: New file.
36254         * modules/unictype/category-Nl-tests: New file.
36255         * modules/unictype/category-No-tests: New file.
36256         * modules/unictype/category-P-tests: New file.
36257         * modules/unictype/category-Pc-tests: New file.
36258         * modules/unictype/category-Pd-tests: New file.
36259         * modules/unictype/category-Pe-tests: New file.
36260         * modules/unictype/category-Pf-tests: New file.
36261         * modules/unictype/category-Pi-tests: New file.
36262         * modules/unictype/category-Po-tests: New file.
36263         * modules/unictype/category-Ps-tests: New file.
36264         * modules/unictype/category-S-tests: New file.
36265         * modules/unictype/category-Sc-tests: New file.
36266         * modules/unictype/category-Sk-tests: New file.
36267         * modules/unictype/category-Sm-tests: New file.
36268         * modules/unictype/category-So-tests: New file.
36269         * modules/unictype/category-Z-tests: New file.
36270         * modules/unictype/category-Zl-tests: New file.
36271         * modules/unictype/category-Zp-tests: New file.
36272         * modules/unictype/category-Zs-tests: New file.
36273         * modules/unictype/category-and-not-tests: New file.
36274         * modules/unictype/category-and-tests: New file.
36275         * modules/unictype/category-byname-tests: New file.
36276         * modules/unictype/category-name-tests: New file.
36277         * modules/unictype/category-none-tests: New file.
36278         * modules/unictype/category-of-tests: New file.
36279         * modules/unictype/category-or-tests: New file.
36280         * modules/unictype/category-test-withtable-tests: New file.
36281         * modules/unictype/combining-class-tests: New file.
36282         * modules/unictype/ctype-alnum-tests: New file.
36283         * modules/unictype/ctype-alpha-tests: New file.
36284         * modules/unictype/ctype-blank-tests: New file.
36285         * modules/unictype/ctype-cntrl-tests: New file.
36286         * modules/unictype/ctype-digit-tests: New file.
36287         * modules/unictype/ctype-graph-tests: New file.
36288         * modules/unictype/ctype-lower-tests: New file.
36289         * modules/unictype/ctype-print-tests: New file.
36290         * modules/unictype/ctype-punct-tests: New file.
36291         * modules/unictype/ctype-space-tests: New file.
36292         * modules/unictype/ctype-upper-tests: New file.
36293         * modules/unictype/ctype-xdigit-tests: New file.
36294         * modules/unictype/decimal-digit-tests: New file.
36295         * modules/unictype/digit-tests: New file.
36296         * modules/unictype/mirror-tests: New file.
36297         * modules/unictype/numeric-tests: New file.
36298         * modules/unictype/property-alphabetic-tests: New file.
36299         * modules/unictype/property-ascii-hex-digit-tests: New file.
36300         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36301         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36302         * modules/unictype/property-bidi-block-separator-tests: New file.
36303         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36304         * modules/unictype/property-bidi-common-separator-tests: New file.
36305         * modules/unictype/property-bidi-control-tests: New file.
36306         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36307         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36308         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36309         * modules/unictype/property-bidi-european-digit-tests: New file.
36310         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36311         * modules/unictype/property-bidi-left-to-right-tests: New file.
36312         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36313         * modules/unictype/property-bidi-other-neutral-tests: New file.
36314         * modules/unictype/property-bidi-pdf-tests: New file.
36315         * modules/unictype/property-bidi-segment-separator-tests: New file.
36316         * modules/unictype/property-bidi-whitespace-tests: New file.
36317         * modules/unictype/property-byname-tests: New file.
36318         * modules/unictype/property-combining-tests: New file.
36319         * modules/unictype/property-composite-tests: New file.
36320         * modules/unictype/property-currency-symbol-tests: New file.
36321         * modules/unictype/property-dash-tests: New file.
36322         * modules/unictype/property-decimal-digit-tests: New file.
36323         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36324         * modules/unictype/property-deprecated-tests: New file.
36325         * modules/unictype/property-diacritic-tests: New file.
36326         * modules/unictype/property-extender-tests: New file.
36327         * modules/unictype/property-format-control-tests: New file.
36328         * modules/unictype/property-grapheme-base-tests: New file.
36329         * modules/unictype/property-grapheme-extend-tests: New file.
36330         * modules/unictype/property-grapheme-link-tests: New file.
36331         * modules/unictype/property-hex-digit-tests: New file.
36332         * modules/unictype/property-hyphen-tests: New file.
36333         * modules/unictype/property-id-continue-tests: New file.
36334         * modules/unictype/property-id-start-tests: New file.
36335         * modules/unictype/property-ideographic-tests: New file.
36336         * modules/unictype/property-ids-binary-operator-tests: New file.
36337         * modules/unictype/property-ids-trinary-operator-tests: New file.
36338         * modules/unictype/property-ignorable-control-tests: New file.
36339         * modules/unictype/property-iso-control-tests: New file.
36340         * modules/unictype/property-join-control-tests: New file.
36341         * modules/unictype/property-left-of-pair-tests: New file.
36342         * modules/unictype/property-line-separator-tests: New file.
36343         * modules/unictype/property-logical-order-exception-tests: New file.
36344         * modules/unictype/property-lowercase-tests: New file.
36345         * modules/unictype/property-math-tests: New file.
36346         * modules/unictype/property-non-break-tests: New file.
36347         * modules/unictype/property-not-a-character-tests: New file.
36348         * modules/unictype/property-numeric-tests: New file.
36349         * modules/unictype/property-other-alphabetic-tests: New file.
36350         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36351         * modules/unictype/property-other-grapheme-extend-tests: New file.
36352         * modules/unictype/property-other-id-continue-tests: New file.
36353         * modules/unictype/property-other-id-start-tests: New file.
36354         * modules/unictype/property-other-lowercase-tests: New file.
36355         * modules/unictype/property-other-math-tests: New file.
36356         * modules/unictype/property-other-uppercase-tests: New file.
36357         * modules/unictype/property-paired-punctuation-tests: New file.
36358         * modules/unictype/property-paragraph-separator-tests: New file.
36359         * modules/unictype/property-pattern-syntax-tests: New file.
36360         * modules/unictype/property-pattern-white-space-tests: New file.
36361         * modules/unictype/property-private-use-tests: New file.
36362         * modules/unictype/property-punctuation-tests: New file.
36363         * modules/unictype/property-quotation-mark-tests: New file.
36364         * modules/unictype/property-radical-tests: New file.
36365         * modules/unictype/property-sentence-terminal-tests: New file.
36366         * modules/unictype/property-soft-dotted-tests: New file.
36367         * modules/unictype/property-space-tests: New file.
36368         * modules/unictype/property-terminal-punctuation-tests: New file.
36369         * modules/unictype/property-test-tests: New file.
36370         * modules/unictype/property-titlecase-tests: New file.
36371         * modules/unictype/property-unassigned-code-value-tests: New file.
36372         * modules/unictype/property-unified-ideograph-tests: New file.
36373         * modules/unictype/property-uppercase-tests: New file.
36374         * modules/unictype/property-variation-selector-tests: New file.
36375         * modules/unictype/property-white-space-tests: New file.
36376         * modules/unictype/property-xid-continue-tests: New file.
36377         * modules/unictype/property-xid-start-tests: New file.
36378         * modules/unictype/property-zero-width-tests: New file.
36379         * modules/unictype/scripts-tests: New file.
36380         * modules/unictype/syntax-c-ident-tests: New file.
36381         * modules/unictype/syntax-c-whitespace-tests: New file.
36382         * modules/unictype/syntax-java-ident-tests: New file.
36383         * modules/unictype/syntax-java-whitespace-tests: New file.
36384         * tests/unictype/test-bidi_byname.c: New file.
36385         * tests/unictype/test-bidi_name.c: New file.
36386         * tests/unictype/test-bidi_of.c: New file.
36387         * tests/unictype/test-bidi_test.c: New file.
36388         * tests/unictype/test-block_list.c: New file.
36389         * tests/unictype/test-block_of.c: New file.
36390         * tests/unictype/test-block_test.c: New file.
36391         * tests/unictype/test-categ_and.c: New file.
36392         * tests/unictype/test-categ_and_not.c: New file.
36393         * tests/unictype/test-categ_byname.c: New file.
36394         * tests/unictype/test-categ_name.c: New file.
36395         * tests/unictype/test-categ_none.c: New file.
36396         * tests/unictype/test-categ_of.c: New file.
36397         * tests/unictype/test-categ_or.c: New file.
36398         * tests/unictype/test-categ_test_withtable.c: New file.
36399         * tests/unictype/test-combining.c: New file.
36400         * tests/unictype/test-decdigit.c: New file.
36401         * tests/unictype/test-digit.c: New file.
36402         * tests/unictype/test-mirror.c: New file.
36403         * tests/unictype/test-numeric.c: New file.
36404         * tests/unictype/test-pr_byname.c: New file.
36405         * tests/unictype/test-pr_test.c: New file.
36406         * tests/unictype/test-predicate-part1.h: New file.
36407         * tests/unictype/test-predicate-part2.h: New file.
36408         * tests/unictype/test-scripts.c: New file.
36409         * tests/unictype/test-sy_c_ident.c: New file.
36410         * tests/unictype/test-sy_java_ident.c: New file.
36411
36412         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36413         for Unicode 5.0.0.
36414         * tests/unictype/test-categ_Cc.c: Likewise.
36415         * tests/unictype/test-categ_Cf.c: Likewise.
36416         * tests/unictype/test-categ_Cn.c: Likewise.
36417         * tests/unictype/test-categ_Co.c: Likewise.
36418         * tests/unictype/test-categ_Cs.c: Likewise.
36419         * tests/unictype/test-categ_L.c: Likewise.
36420         * tests/unictype/test-categ_Ll.c: Likewise.
36421         * tests/unictype/test-categ_Lm.c: Likewise.
36422         * tests/unictype/test-categ_Lo.c: Likewise.
36423         * tests/unictype/test-categ_Lt.c: Likewise.
36424         * tests/unictype/test-categ_Lu.c: Likewise.
36425         * tests/unictype/test-categ_M.c: Likewise.
36426         * tests/unictype/test-categ_Mc.c: Likewise.
36427         * tests/unictype/test-categ_Me.c: Likewise.
36428         * tests/unictype/test-categ_Mn.c: Likewise.
36429         * tests/unictype/test-categ_N.c: Likewise.
36430         * tests/unictype/test-categ_Nd.c: Likewise.
36431         * tests/unictype/test-categ_Nl.c: Likewise.
36432         * tests/unictype/test-categ_No.c: Likewise.
36433         * tests/unictype/test-categ_P.c: Likewise.
36434         * tests/unictype/test-categ_Pc.c: Likewise.
36435         * tests/unictype/test-categ_Pd.c: Likewise.
36436         * tests/unictype/test-categ_Pe.c: Likewise.
36437         * tests/unictype/test-categ_Pf.c: Likewise.
36438         * tests/unictype/test-categ_Pi.c: Likewise.
36439         * tests/unictype/test-categ_Po.c: Likewise.
36440         * tests/unictype/test-categ_Ps.c: Likewise.
36441         * tests/unictype/test-categ_S.c: Likewise.
36442         * tests/unictype/test-categ_Sc.c: Likewise.
36443         * tests/unictype/test-categ_Sk.c: Likewise.
36444         * tests/unictype/test-categ_Sm.c: Likewise.
36445         * tests/unictype/test-categ_So.c: Likewise.
36446         * tests/unictype/test-categ_Z.c: Likewise.
36447         * tests/unictype/test-categ_Zl.c: Likewise.
36448         * tests/unictype/test-categ_Zp.c: Likewise.
36449         * tests/unictype/test-categ_Zs.c: Likewise.
36450         * tests/unictype/test-ctype_alnum.c: Likewise.
36451         * tests/unictype/test-ctype_alpha.c: Likewise.
36452         * tests/unictype/test-ctype_blank.c: Likewise.
36453         * tests/unictype/test-ctype_cntrl.c: Likewise.
36454         * tests/unictype/test-ctype_digit.c: Likewise.
36455         * tests/unictype/test-ctype_graph.c: Likewise.
36456         * tests/unictype/test-ctype_lower.c: Likewise.
36457         * tests/unictype/test-ctype_print.c: Likewise.
36458         * tests/unictype/test-ctype_punct.c: Likewise.
36459         * tests/unictype/test-ctype_space.c: Likewise.
36460         * tests/unictype/test-ctype_upper.c: Likewise.
36461         * tests/unictype/test-ctype_xdigit.c: Likewise.
36462         * tests/unictype/test-decdigit.h: Likewise.
36463         * tests/unictype/test-digit.h: Likewise.
36464         * tests/unictype/test-numeric.h: Likewise.
36465         * tests/unictype/test-pr_alphabetic.c: Likewise.
36466         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36467         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36468         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36469         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36470         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36471         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36472         * tests/unictype/test-pr_bidi_control.c: Likewise.
36473         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36474         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36475         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36476         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36477         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36478         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36479         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36480         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36481         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36482         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36483         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36484         * tests/unictype/test-pr_combining.c: Likewise.
36485         * tests/unictype/test-pr_composite.c: Likewise.
36486         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36487         * tests/unictype/test-pr_dash.c: Likewise.
36488         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36489         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36490         * tests/unictype/test-pr_deprecated.c: Likewise.
36491         * tests/unictype/test-pr_diacritic.c: Likewise.
36492         * tests/unictype/test-pr_extender.c: Likewise.
36493         * tests/unictype/test-pr_format_control.c: Likewise.
36494         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36495         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36496         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36497         * tests/unictype/test-pr_hex_digit.c: Likewise.
36498         * tests/unictype/test-pr_hyphen.c: Likewise.
36499         * tests/unictype/test-pr_id_continue.c: Likewise.
36500         * tests/unictype/test-pr_id_start.c: Likewise.
36501         * tests/unictype/test-pr_ideographic.c: Likewise.
36502         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36503         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36504         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36505         * tests/unictype/test-pr_iso_control.c: Likewise.
36506         * tests/unictype/test-pr_join_control.c: Likewise.
36507         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36508         * tests/unictype/test-pr_line_separator.c: Likewise.
36509         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36510         * tests/unictype/test-pr_lowercase.c: Likewise.
36511         * tests/unictype/test-pr_math.c: Likewise.
36512         * tests/unictype/test-pr_non_break.c: Likewise.
36513         * tests/unictype/test-pr_not_a_character.c: Likewise.
36514         * tests/unictype/test-pr_numeric.c: Likewise.
36515         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36516         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36517         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36518         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36519         * tests/unictype/test-pr_other_id_start.c: Likewise.
36520         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36521         * tests/unictype/test-pr_other_math.c: Likewise.
36522         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36523         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36524         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36525         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36526         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36527         * tests/unictype/test-pr_private_use.c: Likewise.
36528         * tests/unictype/test-pr_punctuation.c: Likewise.
36529         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36530         * tests/unictype/test-pr_radical.c: Likewise.
36531         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36532         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36533         * tests/unictype/test-pr_space.c: Likewise.
36534         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36535         * tests/unictype/test-pr_titlecase.c: Likewise.
36536         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36537         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36538         * tests/unictype/test-pr_uppercase.c: Likewise.
36539         * tests/unictype/test-pr_variation_selector.c: Likewise.
36540         * tests/unictype/test-pr_white_space.c: Likewise.
36541         * tests/unictype/test-pr_xid_continue.c: Likewise.
36542         * tests/unictype/test-pr_xid_start.c: Likewise.
36543         * tests/unictype/test-pr_zero_width.c: Likewise.
36544         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36545         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36546
36547 2007-11-12  Bruno Haible  <bruno@clisp.org>
36548
36549         Unicode character classification functions.
36550         * lib/unictype.h: New file.
36551         * modules/unictype/base: New file.
36552         * modules/unictype/category-L: New file.
36553         * modules/unictype/category-Lu: New file.
36554         * modules/unictype/category-Ll: New file.
36555         * modules/unictype/category-Lt: New file.
36556         * modules/unictype/category-Lm: New file.
36557         * modules/unictype/category-Lo: New file.
36558         * modules/unictype/category-M: New file.
36559         * modules/unictype/category-Mn: New file.
36560         * modules/unictype/category-Mc: New file.
36561         * modules/unictype/category-Me: New file.
36562         * modules/unictype/category-N: New file.
36563         * modules/unictype/category-Nd: New file.
36564         * modules/unictype/category-Nl: New file.
36565         * modules/unictype/category-No: New file.
36566         * modules/unictype/category-P: New file.
36567         * modules/unictype/category-Pc: New file.
36568         * modules/unictype/category-Pd: New file.
36569         * modules/unictype/category-Ps: New file.
36570         * modules/unictype/category-Pe: New file.
36571         * modules/unictype/category-Pi: New file.
36572         * modules/unictype/category-Pf: New file.
36573         * modules/unictype/category-Po: New file.
36574         * modules/unictype/category-S: New file.
36575         * modules/unictype/category-Sm: New file.
36576         * modules/unictype/category-Sc: New file.
36577         * modules/unictype/category-Sk: New file.
36578         * modules/unictype/category-So: New file.
36579         * modules/unictype/category-Z: New file.
36580         * modules/unictype/category-Zs: New file.
36581         * modules/unictype/category-Zl: New file.
36582         * modules/unictype/category-Zp: New file.
36583         * modules/unictype/category-C: New file.
36584         * modules/unictype/category-Cc: New file.
36585         * modules/unictype/category-Cf: New file.
36586         * modules/unictype/category-Cs: New file.
36587         * modules/unictype/category-Co: New file.
36588         * modules/unictype/category-Cn: New file.
36589         * modules/unictype/category-or: New file.
36590         * modules/unictype/category-of: New file.
36591         * modules/unictype/category-test: New file.
36592         * modules/unictype/category-test-withtable: New file.
36593         * modules/unictype/category-byname: New file.
36594         * modules/unictype/category-none: New file.
36595         * modules/unictype/category-and: New file.
36596         * modules/unictype/category-and-not: New file.
36597         * modules/unictype/category-name: New file.
36598         * modules/unictype/combining-class: New file.
36599         * modules/unictype/category-all: New file.
36600         * modules/unictype/bidicategory-all: New file.
36601         * modules/unictype/bidicategory-byname: New file.
36602         * modules/unictype/bidicategory-name: New file.
36603         * modules/unictype/bidicategory-of: New file.
36604         * modules/unictype/bidicategory-test: New file.
36605         * modules/unictype/decimal-digit: New file.
36606         * modules/unictype/digit: New file.
36607         * modules/unictype/numeric: New file.
36608         * modules/unictype/mirror: New file.
36609         * modules/unictype/property-white-space: New file.
36610         * modules/unictype/property-alphabetic: New file.
36611         * modules/unictype/property-other-alphabetic: New file.
36612         * modules/unictype/property-not-a-character: New file.
36613         * modules/unictype/property-default-ignorable-code-point: New file.
36614         * modules/unictype/property-other-default-ignorable-code-point: New
36615         file.
36616         * modules/unictype/property-deprecated: New file.
36617         * modules/unictype/property-logical-order-exception: New file.
36618         * modules/unictype/property-variation-selector: New file.
36619         * modules/unictype/property-private-use: New file.
36620         * modules/unictype/property-unassigned-code-value: New file.
36621         * modules/unictype/property-uppercase: New file.
36622         * modules/unictype/property-other-uppercase: New file.
36623         * modules/unictype/property-lowercase: New file.
36624         * modules/unictype/property-other-lowercase: New file.
36625         * modules/unictype/property-titlecase: New file.
36626         * modules/unictype/property-soft-dotted: New file.
36627         * modules/unictype/property-id-start: New file.
36628         * modules/unictype/property-other-id-start: New file.
36629         * modules/unictype/property-id-continue: New file.
36630         * modules/unictype/property-other-id-continue: New file.
36631         * modules/unictype/property-xid-start: New file.
36632         * modules/unictype/property-xid-continue: New file.
36633         * modules/unictype/property-pattern-white-space: New file.
36634         * modules/unictype/property-pattern-syntax: New file.
36635         * modules/unictype/property-join-control: New file.
36636         * modules/unictype/property-grapheme-base: New file.
36637         * modules/unictype/property-grapheme-extend: New file.
36638         * modules/unictype/property-other-grapheme-extend: New file.
36639         * modules/unictype/property-grapheme-link: New file.
36640         * modules/unictype/property-bidi-control: New file.
36641         * modules/unictype/property-bidi-left-to-right: New file.
36642         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36643         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36644         * modules/unictype/property-bidi-european-digit: New file.
36645         * modules/unictype/property-bidi-eur-num-separator: New file.
36646         * modules/unictype/property-bidi-eur-num-terminator: New file.
36647         * modules/unictype/property-bidi-arabic-digit: New file.
36648         * modules/unictype/property-bidi-common-separator: New file.
36649         * modules/unictype/property-bidi-block-separator: New file.
36650         * modules/unictype/property-bidi-segment-separator: New file.
36651         * modules/unictype/property-bidi-whitespace: New file.
36652         * modules/unictype/property-bidi-non-spacing-mark: New file.
36653         * modules/unictype/property-bidi-boundary-neutral: New file.
36654         * modules/unictype/property-bidi-pdf: New file.
36655         * modules/unictype/property-bidi-embedding-or-override: New file.
36656         * modules/unictype/property-bidi-other-neutral: New file.
36657         * modules/unictype/property-hex-digit: New file.
36658         * modules/unictype/property-ascii-hex-digit: New file.
36659         * modules/unictype/property-ideographic: New file.
36660         * modules/unictype/property-unified-ideograph: New file.
36661         * modules/unictype/property-radical: New file.
36662         * modules/unictype/property-ids-binary-operator: New file.
36663         * modules/unictype/property-ids-trinary-operator: New file.
36664         * modules/unictype/property-zero-width: New file.
36665         * modules/unictype/property-space: New file.
36666         * modules/unictype/property-non-break: New file.
36667         * modules/unictype/property-iso-control: New file.
36668         * modules/unictype/property-format-control: New file.
36669         * modules/unictype/property-dash: New file.
36670         * modules/unictype/property-hyphen: New file.
36671         * modules/unictype/property-punctuation: New file.
36672         * modules/unictype/property-line-separator: New file.
36673         * modules/unictype/property-paragraph-separator: New file.
36674         * modules/unictype/property-quotation-mark: New file.
36675         * modules/unictype/property-sentence-terminal: New file.
36676         * modules/unictype/property-terminal-punctuation: New file.
36677         * modules/unictype/property-currency-symbol: New file.
36678         * modules/unictype/property-math: New file.
36679         * modules/unictype/property-other-math: New file.
36680         * modules/unictype/property-paired-punctuation: New file.
36681         * modules/unictype/property-left-of-pair: New file.
36682         * modules/unictype/property-combining: New file.
36683         * modules/unictype/property-composite: New file.
36684         * modules/unictype/property-decimal-digit: New file.
36685         * modules/unictype/property-numeric: New file.
36686         * modules/unictype/property-diacritic: New file.
36687         * modules/unictype/property-extender: New file.
36688         * modules/unictype/property-ignorable-control: New file.
36689         * modules/unictype/property-test: New file.
36690         * modules/unictype/property-byname: New file.
36691         * modules/unictype/property-all: New file.
36692         * modules/unictype/scripts: New file.
36693         * modules/unictype/scripts-all: New file.
36694         * modules/unictype/block-of: New file.
36695         * modules/unictype/block-test: New file.
36696         * modules/unictype/block-list: New file.
36697         * modules/unictype/block-all: New file.
36698         * modules/unictype/syntax-c-whitespace: New file.
36699         * modules/unictype/syntax-java-whitespace: New file.
36700         * modules/unictype/syntax-c-ident: New file.
36701         * modules/unictype/syntax-java-ident: New file.
36702         * modules/unictype/ctype-alnum: New file.
36703         * modules/unictype/ctype-alpha: New file.
36704         * modules/unictype/ctype-cntrl: New file.
36705         * modules/unictype/ctype-digit: New file.
36706         * modules/unictype/ctype-graph: New file.
36707         * modules/unictype/ctype-lower: New file.
36708         * modules/unictype/ctype-print: New file.
36709         * modules/unictype/ctype-punct: New file.
36710         * modules/unictype/ctype-space: New file.
36711         * modules/unictype/ctype-upper: New file.
36712         * modules/unictype/ctype-xdigit: New file.
36713         * modules/unictype/ctype-blank: New file.
36714         * lib/unictype/bidi_byname.c: New file.
36715         * lib/unictype/bidi_name.c: New file.
36716         * lib/unictype/bidi_of.c: New file.
36717         * lib/unictype/bidi_test.c: New file.
36718         * lib/unictype/bitmap.h: New file.
36719         * lib/unictype/block_test.c: New file.
36720         * lib/unictype/blocks.c: New file.
36721         * lib/unictype/categ_C.c: New file.
36722         * lib/unictype/categ_Cc.c: New file.
36723         * lib/unictype/categ_Cf.c: New file.
36724         * lib/unictype/categ_Cn.c: New file.
36725         * lib/unictype/categ_Co.c: New file.
36726         * lib/unictype/categ_Cs.c: New file.
36727         * lib/unictype/categ_L.c: New file.
36728         * lib/unictype/categ_Ll.c: New file.
36729         * lib/unictype/categ_Lm.c: New file.
36730         * lib/unictype/categ_Lo.c: New file.
36731         * lib/unictype/categ_Lt.c: New file.
36732         * lib/unictype/categ_Lu.c: New file.
36733         * lib/unictype/categ_M.c: New file.
36734         * lib/unictype/categ_Mc.c: New file.
36735         * lib/unictype/categ_Me.c: New file.
36736         * lib/unictype/categ_Mn.c: New file.
36737         * lib/unictype/categ_N.c: New file.
36738         * lib/unictype/categ_Nd.c: New file.
36739         * lib/unictype/categ_Nl.c: New file.
36740         * lib/unictype/categ_No.c: New file.
36741         * lib/unictype/categ_P.c: New file.
36742         * lib/unictype/categ_Pc.c: New file.
36743         * lib/unictype/categ_Pd.c: New file.
36744         * lib/unictype/categ_Pe.c: New file.
36745         * lib/unictype/categ_Pf.c: New file.
36746         * lib/unictype/categ_Pi.c: New file.
36747         * lib/unictype/categ_Po.c: New file.
36748         * lib/unictype/categ_Ps.c: New file.
36749         * lib/unictype/categ_S.c: New file.
36750         * lib/unictype/categ_Sc.c: New file.
36751         * lib/unictype/categ_Sk.c: New file.
36752         * lib/unictype/categ_Sm.c: New file.
36753         * lib/unictype/categ_So.c: New file.
36754         * lib/unictype/categ_Z.c: New file.
36755         * lib/unictype/categ_Zl.c: New file.
36756         * lib/unictype/categ_Zp.c: New file.
36757         * lib/unictype/categ_Zs.c: New file.
36758         * lib/unictype/categ_and.c: New file.
36759         * lib/unictype/categ_and_not.c: New file.
36760         * lib/unictype/categ_byname.c: New file.
36761         * lib/unictype/categ_name.c: New file.
36762         * lib/unictype/categ_none.c: New file.
36763         * lib/unictype/categ_of.c: New file.
36764         * lib/unictype/categ_or.c: New file.
36765         * lib/unictype/categ_test.c: New file.
36766         * lib/unictype/combining.c: New file.
36767         * lib/unictype/ctype_alnum.c: New file.
36768         * lib/unictype/ctype_alpha.c: New file.
36769         * lib/unictype/ctype_blank.c: New file.
36770         * lib/unictype/ctype_cntrl.c: New file.
36771         * lib/unictype/ctype_digit.c: New file.
36772         * lib/unictype/ctype_graph.c: New file.
36773         * lib/unictype/ctype_lower.c: New file.
36774         * lib/unictype/ctype_print.c: New file.
36775         * lib/unictype/ctype_punct.c: New file.
36776         * lib/unictype/ctype_space.c: New file.
36777         * lib/unictype/ctype_upper.c: New file.
36778         * lib/unictype/ctype_xdigit.c: New file.
36779         * lib/unictype/decdigit.c: New file.
36780         * lib/unictype/digit.c: New file.
36781         * lib/unictype/identsyntaxmap.h: New file.
36782         * lib/unictype/mirror.c: New file.
36783         * lib/unictype/numeric.c: New file.
36784         * lib/unictype/pr_alphabetic.c: New file.
36785         * lib/unictype/pr_ascii_hex_digit.c: New file.
36786         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36787         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36788         * lib/unictype/pr_bidi_block_separator.c: New file.
36789         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36790         * lib/unictype/pr_bidi_common_separator.c: New file.
36791         * lib/unictype/pr_bidi_control.c: New file.
36792         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36793         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36794         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36795         * lib/unictype/pr_bidi_european_digit.c: New file.
36796         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36797         * lib/unictype/pr_bidi_left_to_right.c: New file.
36798         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36799         * lib/unictype/pr_bidi_other_neutral.c: New file.
36800         * lib/unictype/pr_bidi_pdf.c: New file.
36801         * lib/unictype/pr_bidi_segment_separator.c: New file.
36802         * lib/unictype/pr_bidi_whitespace.c: New file.
36803         * lib/unictype/pr_byname.c: New file.
36804         * lib/unictype/pr_byname.gperf: New file.
36805         * lib/unictype/pr_combining.c: New file.
36806         * lib/unictype/pr_composite.c: New file.
36807         * lib/unictype/pr_currency_symbol.c: New file.
36808         * lib/unictype/pr_dash.c: New file.
36809         * lib/unictype/pr_decimal_digit.c: New file.
36810         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36811         * lib/unictype/pr_deprecated.c: New file.
36812         * lib/unictype/pr_diacritic.c: New file.
36813         * lib/unictype/pr_extender.c: New file.
36814         * lib/unictype/pr_format_control.c: New file.
36815         * lib/unictype/pr_grapheme_base.c: New file.
36816         * lib/unictype/pr_grapheme_extend.c: New file.
36817         * lib/unictype/pr_grapheme_link.c: New file.
36818         * lib/unictype/pr_hex_digit.c: New file.
36819         * lib/unictype/pr_hyphen.c: New file.
36820         * lib/unictype/pr_id_continue.c: New file.
36821         * lib/unictype/pr_id_start.c: New file.
36822         * lib/unictype/pr_ideographic.c: New file.
36823         * lib/unictype/pr_ids_binary_operator.c: New file.
36824         * lib/unictype/pr_ids_trinary_operator.c: New file.
36825         * lib/unictype/pr_ignorable_control.c: New file.
36826         * lib/unictype/pr_iso_control.c: New file.
36827         * lib/unictype/pr_join_control.c: New file.
36828         * lib/unictype/pr_left_of_pair.c: New file.
36829         * lib/unictype/pr_line_separator.c: New file.
36830         * lib/unictype/pr_logical_order_exception.c: New file.
36831         * lib/unictype/pr_lowercase.c: New file.
36832         * lib/unictype/pr_math.c: New file.
36833         * lib/unictype/pr_non_break.c: New file.
36834         * lib/unictype/pr_not_a_character.c: New file.
36835         * lib/unictype/pr_numeric.c: New file.
36836         * lib/unictype/pr_other_alphabetic.c: New file.
36837         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36838         * lib/unictype/pr_other_grapheme_extend.c: New file.
36839         * lib/unictype/pr_other_id_continue.c: New file.
36840         * lib/unictype/pr_other_id_start.c: New file.
36841         * lib/unictype/pr_other_lowercase.c: New file.
36842         * lib/unictype/pr_other_math.c: New file.
36843         * lib/unictype/pr_other_uppercase.c: New file.
36844         * lib/unictype/pr_paired_punctuation.c: New file.
36845         * lib/unictype/pr_paragraph_separator.c: New file.
36846         * lib/unictype/pr_pattern_syntax.c: New file.
36847         * lib/unictype/pr_pattern_white_space.c: New file.
36848         * lib/unictype/pr_private_use.c: New file.
36849         * lib/unictype/pr_punctuation.c: New file.
36850         * lib/unictype/pr_quotation_mark.c: New file.
36851         * lib/unictype/pr_radical.c: New file.
36852         * lib/unictype/pr_sentence_terminal.c: New file.
36853         * lib/unictype/pr_soft_dotted.c: New file.
36854         * lib/unictype/pr_space.c: New file.
36855         * lib/unictype/pr_terminal_punctuation.c: New file.
36856         * lib/unictype/pr_test.c: New file.
36857         * lib/unictype/pr_titlecase.c: New file.
36858         * lib/unictype/pr_unassigned_code_value.c: New file.
36859         * lib/unictype/pr_unified_ideograph.c: New file.
36860         * lib/unictype/pr_uppercase.c: New file.
36861         * lib/unictype/pr_variation_selector.c: New file.
36862         * lib/unictype/pr_white_space.c: New file.
36863         * lib/unictype/pr_xid_continue.c: New file.
36864         * lib/unictype/pr_xid_start.c: New file.
36865         * lib/unictype/pr_zero_width.c: New file.
36866         * lib/unictype/scripts.c: New file.
36867         * lib/unictype/sy_c_ident.c: New file.
36868         * lib/unictype/sy_c_whitespace.c: New file.
36869         * lib/unictype/sy_java_ident.c: New file.
36870         * lib/unictype/sy_java_whitespace.c: New file.
36871
36872         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36873         Unicode 5.0.0.
36874         * lib/unictype/blocks.h: Likewise.
36875         * lib/unictype/categ_C.h: Likewise.
36876         * lib/unictype/categ_Cc.h: Likewise.
36877         * lib/unictype/categ_Cf.h: Likewise.
36878         * lib/unictype/categ_Cn.h: Likewise.
36879         * lib/unictype/categ_Co.h: Likewise.
36880         * lib/unictype/categ_Cs.h: Likewise.
36881         * lib/unictype/categ_L.h: Likewise.
36882         * lib/unictype/categ_Ll.h: Likewise.
36883         * lib/unictype/categ_Lm.h: Likewise.
36884         * lib/unictype/categ_Lo.h: Likewise.
36885         * lib/unictype/categ_Lt.h: Likewise.
36886         * lib/unictype/categ_Lu.h: Likewise.
36887         * lib/unictype/categ_M.h: Likewise.
36888         * lib/unictype/categ_Mc.h: Likewise.
36889         * lib/unictype/categ_Me.h: Likewise.
36890         * lib/unictype/categ_Mn.h: Likewise.
36891         * lib/unictype/categ_N.h: Likewise.
36892         * lib/unictype/categ_Nd.h: Likewise.
36893         * lib/unictype/categ_Nl.h: Likewise.
36894         * lib/unictype/categ_No.h: Likewise.
36895         * lib/unictype/categ_P.h: Likewise.
36896         * lib/unictype/categ_Pc.h: Likewise.
36897         * lib/unictype/categ_Pd.h: Likewise.
36898         * lib/unictype/categ_Pe.h: Likewise.
36899         * lib/unictype/categ_Pf.h: Likewise.
36900         * lib/unictype/categ_Pi.h: Likewise.
36901         * lib/unictype/categ_Po.h: Likewise.
36902         * lib/unictype/categ_Ps.h: Likewise.
36903         * lib/unictype/categ_S.h: Likewise.
36904         * lib/unictype/categ_Sc.h: Likewise.
36905         * lib/unictype/categ_Sk.h: Likewise.
36906         * lib/unictype/categ_Sm.h: Likewise.
36907         * lib/unictype/categ_So.h: Likewise.
36908         * lib/unictype/categ_Z.h: Likewise.
36909         * lib/unictype/categ_Zl.h: Likewise.
36910         * lib/unictype/categ_Zp.h: Likewise.
36911         * lib/unictype/categ_Zs.h: Likewise.
36912         * lib/unictype/categ_of.h: Likewise.
36913         * lib/unictype/combining.h: Likewise.
36914         * lib/unictype/ctype_alnum.h: Likewise.
36915         * lib/unictype/ctype_alpha.h: Likewise.
36916         * lib/unictype/ctype_blank.h: Likewise.
36917         * lib/unictype/ctype_cntrl.h: Likewise.
36918         * lib/unictype/ctype_digit.h: Likewise.
36919         * lib/unictype/ctype_graph.h: Likewise.
36920         * lib/unictype/ctype_lower.h: Likewise.
36921         * lib/unictype/ctype_print.h: Likewise.
36922         * lib/unictype/ctype_punct.h: Likewise.
36923         * lib/unictype/ctype_space.h: Likewise.
36924         * lib/unictype/ctype_upper.h: Likewise.
36925         * lib/unictype/ctype_xdigit.h: Likewise.
36926         * lib/unictype/decdigit.h: Likewise.
36927         * lib/unictype/digit.h: Likewise.
36928         * lib/unictype/mirror.h: Likewise.
36929         * lib/unictype/numeric.h: Likewise.
36930         * lib/unictype/pr_alphabetic.h: Likewise.
36931         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36932         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36933         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36934         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36935         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36936         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36937         * lib/unictype/pr_bidi_control.h: Likewise.
36938         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36939         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36940         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36941         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36942         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36943         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36944         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36945         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36946         * lib/unictype/pr_bidi_pdf.h: Likewise.
36947         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36948         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36949         * lib/unictype/pr_combining.h: Likewise.
36950         * lib/unictype/pr_composite.h: Likewise.
36951         * lib/unictype/pr_currency_symbol.h: Likewise.
36952         * lib/unictype/pr_dash.h: Likewise.
36953         * lib/unictype/pr_decimal_digit.h: Likewise.
36954         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36955         * lib/unictype/pr_deprecated.h: Likewise.
36956         * lib/unictype/pr_diacritic.h: Likewise.
36957         * lib/unictype/pr_extender.h: Likewise.
36958         * lib/unictype/pr_format_control.h: Likewise.
36959         * lib/unictype/pr_grapheme_base.h: Likewise.
36960         * lib/unictype/pr_grapheme_extend.h: Likewise.
36961         * lib/unictype/pr_grapheme_link.h: Likewise.
36962         * lib/unictype/pr_hex_digit.h: Likewise.
36963         * lib/unictype/pr_hyphen.h: Likewise.
36964         * lib/unictype/pr_id_continue.h: Likewise.
36965         * lib/unictype/pr_id_start.h: Likewise.
36966         * lib/unictype/pr_ideographic.h: Likewise.
36967         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36968         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36969         * lib/unictype/pr_ignorable_control.h: Likewise.
36970         * lib/unictype/pr_iso_control.h: Likewise.
36971         * lib/unictype/pr_join_control.h: Likewise.
36972         * lib/unictype/pr_left_of_pair.h: Likewise.
36973         * lib/unictype/pr_line_separator.h: Likewise.
36974         * lib/unictype/pr_logical_order_exception.h: Likewise.
36975         * lib/unictype/pr_lowercase.h: Likewise.
36976         * lib/unictype/pr_math.h: Likewise.
36977         * lib/unictype/pr_non_break.h: Likewise.
36978         * lib/unictype/pr_not_a_character.h: Likewise.
36979         * lib/unictype/pr_numeric.h: Likewise.
36980         * lib/unictype/pr_other_alphabetic.h: Likewise.
36981         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36982         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36983         * lib/unictype/pr_other_id_continue.h: Likewise.
36984         * lib/unictype/pr_other_id_start.h: Likewise.
36985         * lib/unictype/pr_other_lowercase.h: Likewise.
36986         * lib/unictype/pr_other_math.h: Likewise.
36987         * lib/unictype/pr_other_uppercase.h: Likewise.
36988         * lib/unictype/pr_paired_punctuation.h: Likewise.
36989         * lib/unictype/pr_paragraph_separator.h: Likewise.
36990         * lib/unictype/pr_pattern_syntax.h: Likewise.
36991         * lib/unictype/pr_pattern_white_space.h: Likewise.
36992         * lib/unictype/pr_private_use.h: Likewise.
36993         * lib/unictype/pr_punctuation.h: Likewise.
36994         * lib/unictype/pr_quotation_mark.h: Likewise.
36995         * lib/unictype/pr_radical.h: Likewise.
36996         * lib/unictype/pr_sentence_terminal.h: Likewise.
36997         * lib/unictype/pr_soft_dotted.h: Likewise.
36998         * lib/unictype/pr_space.h: Likewise.
36999         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37000         * lib/unictype/pr_titlecase.h: Likewise.
37001         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37002         * lib/unictype/pr_unified_ideograph.h: Likewise.
37003         * lib/unictype/pr_uppercase.h: Likewise.
37004         * lib/unictype/pr_variation_selector.h: Likewise.
37005         * lib/unictype/pr_white_space.h: Likewise.
37006         * lib/unictype/pr_xid_continue.h: Likewise.
37007         * lib/unictype/pr_xid_start.h: Likewise.
37008         * lib/unictype/pr_zero_width.h: Likewise.
37009         * lib/unictype/scripts.h: Likewise.
37010         * lib/unictype/scripts_byname.gperf: Likewise.
37011         * lib/unictype/sy_c_ident.h: Likewise.
37012         * lib/unictype/sy_c_whitespace.h: Likewise.
37013         * lib/unictype/sy_java_ident.h: Likewise.
37014         * lib/unictype/sy_java_whitespace.h: Likewise.
37015
37016         * lib/unictype/Makefile: New file.
37017         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37018         glibc.
37019         * lib/unictype/3level.h: New file, copied from glibc.
37020         * lib/unictype/3levelbit.h: New file.
37021
37022 2007-11-11  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/gperf: New file.
37025         * modules/iconv_open (Depends-on): Add it.
37026         (Makefile.am): Remove the GPERF definition.
37027
37028 2007-11-11  Bruno Haible  <bruno@clisp.org>
37029
37030         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37031         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37032
37033 2007-11-11  Bruno Haible  <bruno@clisp.org>
37034
37035         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37036         (usage): Remove function.
37037
37038 2007-11-11  Bruno Haible  <bruno@clisp.org>
37039
37040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37041         gl_FUNC_CEILF_LIBS.
37042         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37043         gl_FUNC_CEIL_LIBS.
37044         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37045         gl_FUNC_CEILL_LIBS.
37046         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37047         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37048         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37049
37050 2007-11-11  Bruno Haible  <bruno@clisp.org>
37051
37052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37053         roundf were declared but do not exist on functions.
37054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37055         roundl were declared but do not exist on functions.
37056         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37057         HAVE_FLOORL_AND_CEILL, respectively.
37058         Needed for Sun C on Solaris 10.
37059
37060 2007-11-11  Bruno Haible  <bruno@clisp.org>
37061
37062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37063         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37064         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37065         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37067         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37068         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37069         HAVE_DECL_ROUNDF.
37070         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37071         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37073         of HAVE_DECL_ROUND*.
37074         * modules/math (Makefile.am): Update.
37075
37076 2007-11-10  Bruno Haible  <bruno@clisp.org>
37077
37078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37079         ptrdiff_t as m4/intl.m4.
37080
37081 2007-11-10  Jim Meyering  <meyering@redhat.com>
37082
37083         Avoid link failure for the argmatch test.
37084         * tests/test-argmatch.c (usage): Define function to avoid a link
37085         failure: argmatch_die requires a usage function.
37086
37087 2007-11-09  Bruno Haible  <bruno@clisp.org>
37088
37089         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37090         * doc/functions/vsnprintf.texi: Likewise.
37091         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37092         with a size argument < 2.
37093
37094 2007-11-09  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37097         buffer. Fixes an inefficiency introduced on 2007-11-03.
37098
37099 2007-11-09  Bruno Haible  <bruno@clisp.org>
37100
37101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37102         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37103
37104 2007-11-08  Jim Meyering  <meyering@redhat.com>
37105
37106         Change cache variable name prefix "jm_" to "gl_" everywhere.
37107         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37108         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37109         * m4/uptime.m4: s/gl_/jm_/
37110
37111 2007-11-07  Bruno Haible  <bruno@clisp.org>
37112
37113         Update to GNU gettext 0.17.
37114         * m4/intl.m4: Update to GNU gettext 0.17.
37115         * m4/po.m4: Likewise.
37116         * modules/gettext (Files): Remove m4/ulonglong.m4.
37117         (configure.ac): Require gettext infrastructure from version 0.17.
37118
37119 2007-11-06  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37122         symbolic values are not defined in a public header.
37123         * lib/freadable.c (freadable) [QNX]: Likewise.
37124         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37125         * lib/freading.c (freading) [QNX]: Likewise.
37126         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37127         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37128         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37129         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37130         Reported by Alain Magloire.
37131
37132         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37133
37134 2007-11-05  Bruno Haible  <bruno@clisp.org>
37135
37136         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37137         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37138         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37139         Reported by Eric Blake.
37140
37141 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37142             Bruno Haible  <bruno@clisp.org>
37143
37144         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37145         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37146         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37147         (malloc): Undefine also before including <stdlib.h>.
37148         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37149         Needed on OSF/1 4.0.
37150
37151 2007-11-05  Jim Meyering  <meyering@redhat.com>
37152
37153         git-version-gen: sync from coreutils.
37154         * build-aux/git-version-gen: Add comments.
37155         Change the first '-' to '.' in the snapshot version string,
37156         e.g., 6.9-377-08144 -> 6.9.377-08144
37157         Remove first parameter.
37158         Don't declare a version "-dirty" merely because a time
37159         stamp has changed.
37160
37161 2007-11-04  Bruno Haible  <bruno@clisp.org>
37162
37163         * lib/lock.h: Protect all macro definitions containing an 'if'
37164         statement through a "do { ... } while (0)".
37165         * lib/tls.h: Likewise.
37166
37167 2007-11-04  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37170
37171 2007-11-04  Bruno Haible  <bruno@clisp.org>
37172
37173         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37174         * modules/fprintf-posix (Depends-on): Add nocrash.
37175         * modules/snprintf-posix (Depends-on): Likewise.
37176         * modules/sprintf-posix (Depends-on): Likewise.
37177         * modules/vasnprintf-posix (Depends-on): Likewise.
37178         * modules/vasprintf-posix (Depends-on): Likewise.
37179         * modules/vfprintf-posix (Depends-on): Likewise.
37180         * modules/vsnprintf-posix (Depends-on): Likewise.
37181         * modules/vsprintf-posix (Depends-on): Likewise.
37182         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37183         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37184         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37185         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37186         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37187         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37189
37190 2007-11-04  Bruno Haible  <bruno@clisp.org>
37191
37192         * modules/nocrash: New file.
37193         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37194         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37195
37196 2007-11-04  Bruno Haible  <bruno@clisp.org>
37197
37198         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37199         precision handling.
37200         * tests/test-vasprintf-posix.c (test_function): Likewise.
37201         * tests/test-snprintf-posix.h (test_function): Likewise.
37202         * tests/test-sprintf-posix.h (test_function): Likewise.
37203
37204         Fix *printf behaviour for large precisions on mingw and BeOS.
37205         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37206         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37208         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37210         gl_PRINTF_PRECISION and test its result. Invoke
37211         gl_PREREQ_VASNPRINTF_PRECISION.
37212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37219         * doc/functions/fprintf.texi: Update.
37220         * doc/functions/printf.texi: Update.
37221         * doc/functions/snprintf.texi: Update.
37222         * doc/functions/sprintf.texi: Update.
37223         * doc/functions/vfprintf.texi: Update.
37224         * doc/functions/vprintf.texi: Update.
37225         * doc/functions/vsnprintf.texi: Update.
37226         * doc/functions/vsprintf.texi: Update.
37227
37228 2007-11-04  Bruno Haible  <bruno@clisp.org>
37229
37230         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37231
37232 2007-11-04  Bruno Haible  <bruno@clisp.org>
37233
37234         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37235         Reported by Sylvain Beucler <beuc@gnu.org>.
37236
37237 2007-11-03  Bruno Haible  <bruno@clisp.org>
37238
37239         * tests/test-fprintf-posix2.sh: New file.
37240         * tests/test-fprintf-posix2.c: New file.
37241         * modules/fprintf-posix-tests (Files): Add them.
37242         (TESTS): Add test-fprintf-posix2.sh.
37243         (configure.ac): Check for getrlimit and setrlimit.
37244         (check_PROGRAMS): Add test-fprintf-posix2.
37245
37246         * tests/test-printf-posix2.sh: New file.
37247         * tests/test-printf-posix2.c: New file.
37248         * modules/printf-posix-tests (Files): Add them.
37249         (TESTS): Add test-printf-posix2.sh.
37250         (configure.ac): Check for getrlimit and setrlimit.
37251         (check_PROGRAMS): Add test-printf-posix2.
37252
37253         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37254         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37255         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37256         (decode_double): New function, copied from decode_long_double.
37257         (scale10_round_decimal_decoded): New function, extracted from
37258         scale10_round_decimal_long_double.
37259         (scale10_round_decimal_long_double): Use it.
37260         (scale10_round_decimal_double): New function.
37261         (floorlog10): New function.
37262         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37264         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37266         gl_PRINTF_ENOMEM and test its result. Invoke
37267         gl_PREREQ_VASNPRINTF_ENOMEM.
37268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37275         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37276         * modules/snprintf-posix (Depends-on): Likewise.
37277         * modules/sprintf-posix (Depends-on): Likewise.
37278         * modules/vasnprintf-posix (Depends-on): Likewise.
37279         * modules/vasprintf-posix (Depends-on): Likewise.
37280         * modules/vfprintf-posix (Depends-on): Likewise.
37281         * modules/vsnprintf-posix (Depends-on): Likewise.
37282         * modules/vsprintf-posix (Depends-on): Likewise.
37283         * doc/functions/fprintf.texi: Update.
37284         * doc/functions/printf.texi: Update.
37285         * doc/functions/snprintf.texi: Update.
37286         * doc/functions/sprintf.texi: Update.
37287         * doc/functions/vfprintf.texi: Update.
37288         * doc/functions/vprintf.texi: Update.
37289         * doc/functions/vsnprintf.texi: Update.
37290         * doc/functions/vsprintf.texi: Update.
37291
37292 2007-11-03  Bruno Haible  <bruno@clisp.org>
37293
37294         * modules/frexp-nolibm-tests: New file.
37295
37296         * modules/frexp-nolibm: New file.
37297         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37298
37299 2007-11-03  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37302         value is C99 compliant.
37303         Needed for OSF/1 5.1.
37304
37305 2007-11-03  Bruno Haible  <bruno@clisp.org>
37306
37307         Fix out-of-memory handling of vasnprintf.
37308         * lib/printf-parse.c: Include <errno.h>.
37309         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37310         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37311         is already set.
37312
37313 2007-11-02  Eric Blake  <ebb9@byu.net>
37314
37315         Fix tests on cygwin.
37316         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37317
37318 2007-11-01  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37321         warning.
37322         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37323         needed for POSIX compatibility.
37324
37325 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37326
37327         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37328         for compatibility with GNU.
37329
37330 2007-11-01  Bruno Haible  <bruno@clisp.org>
37331
37332         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37333         (putenv): Renamed from rpl_putenv. Change argument type from
37334         'const char *' to 'char *'.
37335         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37336         of defining putenv in config.h, just set REPLACE_PUTENV.
37337         * modules/putenv (Depends-on): Add stdlib.
37338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37339         (Include): Use <stdlib.h>.
37340         * lib/stdlib.in.h (putenv): New declaration.
37341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37342         REPLACE_PUTENV.
37343         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37344         REPLACE_PUTENV.
37345         Needed for MacOS X 10.5.0.
37346         Reported by Peter O'Gorman <peter@pogma.com>.
37347
37348 2007-11-01  Jim Meyering  <meyering@redhat.com>
37349
37350         Treat an empty date string exactly like "0".
37351         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37352         if the remaining date string (to be parsed) is empty, use "0".
37353         Reported by Mischa Molhoek and discussed in this thread:
37354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37355
37356 2007-10-31  Bruno Haible  <bruno@clisp.org>
37357
37358         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37359         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37360         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37361         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37362         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37363         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37364
37365 2007-10-31  Bruno Haible  <bruno@clisp.org>
37366
37367         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37368         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37369         (AC_TYPE_LONG_LONG_INT): Use it.
37370         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37371         it as well.
37372         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37373         to m4/longlong.m4.
37374         * modules/stdint (Files): Remove m4/ulonglong.m4.
37375         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37376         m4/ulonglong.m4.
37377         * modules/strtoumax (Files): Likewise.
37378
37379 2007-10-30  Bruno Haible  <bruno@clisp.org>
37380
37381         * modules/xvasprintf-posix: New file.
37382         Suggested by Eric Blake.
37383
37384 2007-10-30  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/xprintf-posix-tests: New file.
37387         * tests/test-xprintf-posix.sh: New file.
37388         * tests/test-xprintf-posix.c: New file.
37389         * tests/test-xfprintf-posix.c: New file.
37390
37391         * modules/xprintf-posix: New file.
37392
37393 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37394
37395         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37396         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37397         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37398
37399 2007-10-29  Bruno Haible  <bruno@clisp.org>
37400
37401         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37402         contain the special marker '_cv_'.
37403         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37404         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37405         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37406         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37407         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37408         Reported by Ralf Wildenhues.
37409
37410 2007-10-29  Bruno Haible  <bruno@clisp.org>
37411
37412         * gnulib-tool (func_import): When --lgpl is not specified, set
37413         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37414         GPLv3.
37415         Reported by Simon Josefsson.
37416
37417 2007-10-28  Bruno Haible  <bruno@clisp.org>
37418
37419         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37420         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37421         HAVE_DECL_ISFINITE.
37422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37423         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37424         HAVE_DECL_ISFINITE.
37425
37426 2007-10-28  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37429         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37430
37431 2007-10-28  Bruno Haible  <bruno@clisp.org>
37432
37433         Fix link errors with Sun C 5.0 on Solaris 10.
37434         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37435         function is declared but not present in the compiler's libm.
37436         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37437         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37438         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37439         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37440         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37441         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37442         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37444         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37445         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37446         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37447         HAVE_DECL_FLOORL.
37448
37449 2007-10-28  Bruno Haible  <bruno@clisp.org>
37450
37451         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37452         gl_FUNC_FLOORL. Cache the result.
37453         (gl_FUNC_FLOORL): Use it.
37454         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37455         gl_FUNC_CEILL. Cache the result.
37456         (gl_FUNC_CEILL): Use it.
37457
37458         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37459         gl_FUNC_FLOOR. Cache the result.
37460         (gl_FUNC_FLOOR): Use it.
37461         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37462         gl_FUNC_CEIL. Cache the result.
37463         (gl_FUNC_CEIL): Use it.
37464
37465         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37466         gl_FUNC_FLOORF. Cache the result.
37467         (gl_FUNC_FLOORF): Use it.
37468         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37469         gl_FUNC_CEILF. Cache the result.
37470         (gl_FUNC_CEILF): Use it.
37471
37472 2007-10-28  Bruno Haible  <bruno@clisp.org>
37473
37474         * gnulib-tool: Allow specifying the LGPL version number through
37475         --lgpl=2 or --lgpl=3.
37476         (func_usage): Document --lgpl with argument.
37477         Handle --lgpl=... arguments.
37478         (func_import): Recognize also gl_LGPL calls with an argument. When
37479         --lgpl=2 is used and the module's license is just LGPL, report an
37480         error. Set sed_transform_lib_file according to the lgpl variable. In
37481         the generated files, use --lgpl or gl_LGPL invocations with argument,
37482         if necessary.
37483         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37484         an LGPv2+ license.
37485         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37486         gl_LGPL macro.
37487
37488 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37489             Bruno Haible  <bruno@clisp.org>
37490
37491         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37492         (u16_uctomb_aux): Likewise.
37493         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37494         !HAVE_INLINE.
37495         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37496
37497 2007-10-28  Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37500         Invoke AM_GETTEXT_OPTION if it exists.
37501         * modules/vasprintf: Likewise.
37502         * modules/verror: Likewise.
37503         * modules/xprintf: Likewise.
37504         * modules/xvasprintf: Likewise.
37505
37506 2007-10-27  Ben Pfaff  <blp@gnu.org>
37507
37508         * lib/math.in.h: Define isfinite macro and prototypes for
37509         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37510         implementations.
37511         * m4/math_h.m4: New substitutions for isfinite module.
37512         * lib/isfinite.c: New file.
37513         * m4/isfinite.m4: New file.
37514         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37515         * modules/isfinite: New file.
37516         * modules/isfinite-tests: New file.
37517         * tests/tests-isfinite.c: New file.
37518         * doc/functions/isfinite.texi: Mention isfinite module.
37519         * MODULES.html.sh: Mention new module.
37520
37521 2007-10-27  Ben Pfaff  <blp@gnu.org>
37522
37523         Ralf Wildenhues reported that Tru64 4.0D declares the round
37524         functions but does not have definitions.
37525         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37526         cannot be found in any library, set the output variable to
37527         "missing" instead of "".
37528         * m4/round.m4: Also use our substitute if we cannot find round in
37529         any library, even if it is declared.
37530         * m4/roundf.m4: Likewise for roundf.
37531         * m4/roundl.m4: Likewise for roundl.
37532         * lib/math.in.h: Undefine roundf, round, roundl before defining
37533         their replacements, to allow for hypothetical systems where these
37534         may be defined as macros but not available in libraries.
37535
37536 2007-10-27  Bruno Haible  <bruno@clisp.org>
37537
37538         * doc/gnulib.texi: Invoke @firstparagraphindent.
37539         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37540         changes in gnulib.
37541         (Source changes): New section.
37542
37543 2007-10-26  Bruno Haible  <bruno@clisp.org>
37544
37545         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37546         borrowed from autoconf.
37547
37548 2007-10-26  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37551         strerror returned the empty string. Needed on HP-UX 11.00.
37552
37553 2007-10-24  Micah Cowan  <micah@cowan.name>
37554
37555         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37556         * build-aux/bootstrap: Remove support for now-unnecessary option,
37557         --cvs-user, and envvars CVS_USER, CVS_RSH.
37558
37559 2007-10-24  Jim Meyering  <meyering@redhat.com>
37560
37561         Avoid diagnostics from sha1sum when there is no cached checksum.
37562         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37563         if the po.s1 file hasn't been created yet.
37564
37565         * build-aux/bootstrap: Sync from coreutils:
37566         2007-10-24  Jim Meyering  <meyering@redhat.com>
37567         Get gnulib from the git repository, not from an obsolete cvs one.
37568         * build-aux/bootstrap: Suggestion from Micah Cowan.
37569         2007-10-04  Jim Meyering  <jim@meyering.net>
37570         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37571         (update_po_files): Work also when there are no .po files in po/.
37572
37573 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37574
37575         * README: Append ".git" to git and cg examples.
37576         Problem reported by Benoit Sigoure.
37577
37578 2007-10-23  Micah Cowan  <micah@cowan.name>
37579
37580         * users.txt: Add wget.
37581
37582 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37583
37584         Fix linking of some unistdio tests on FreeBSD.
37585         * modules/unistdio/u16-vsnprintf-tests
37586         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37587         * modules/unistdio/u16-vsprintf-tests
37588         (test_u16_vsnprintf1_LDADD): Likewise.
37589         * modules/unistdio/u32-vsnprintf-tests
37590         (test_u32_vsnprintf1_LDADD): Likewise.
37591         * modules/unistdio/u32-vsprintf-tests
37592         (test_u32_vsprintf1_LDADD): Likewise.
37593         * modules/unistdio/u8-vsnprintf-tests
37594         (test_u8_vsnprintf1_LDADD): Likewise.
37595         * modules/unistdio/u8-vsprintf-tests
37596         (test_u8_vsprintf1_LDADD): Likewise.
37597         * modules/unistdio/ulc-vsnprintf-tests
37598         (test_ulc_vsnprintf1_LDADD): Likewise.
37599         * modules/unistdio/ulc-vsprintf-tests
37600         (test_ulc_vsprintf1_LDADD): Likewise.
37601
37602         Fix linking of some uniconv tests on FreeBSD.
37603         * modules/uniconv/u16-conv-from-enc-tests
37604         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37605         * modules/uniconv/u16-conv-to-enc-tests
37606         (test_u16_conv_to_enc_LDADD): Likewise.
37607         * modules/uniconv/u16-strconv-from-enc-tests
37608         (test_u16_strconv_from_enc_LDADD): Likewise.
37609         * modules/uniconv/u16-strconv-to-enc-tests
37610         (test_u16_strconv_to_enc_LDADD): Likewise.
37611         * modules/uniconv/u32-conv-from-enc-tests
37612         (test_u32_conv_from_enc_LDADD): Likewise.
37613         * modules/uniconv/u32-conv-to-enc-tests
37614         (test_u32_conv_to_enc_LDADD): Likewise.
37615         * modules/uniconv/u32-strconv-from-enc-tests
37616         (test_u32_strconv_from_enc_LDADD): Likewise.
37617         * modules/uniconv/u32-strconv-to-enc-tests
37618         (test_u32_strconv_to_enc_LDADD): Likewise.
37619         * modules/uniconv/u8-conv-from-enc-tests
37620         (test_u8_conv_from_enc_LDADD): Likewise.
37621         * modules/uniconv/u8-conv-to-enc-tests
37622         (test_u8_conv_to_enc_LDADD): Likewise.
37623         * modules/uniconv/u8-strconv-from-enc-tests
37624         (test_u8_strconv_from_enc_LDADD): Likewise.
37625         * modules/uniconv/u8-strconv-to-enc-tests
37626         (test_u8_strconv_to_enc_LDADD): Likewise.
37627
37628 2007-10-22  Bruno Haible  <bruno@clisp.org>
37629
37630         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37631         size.
37632
37633 2007-10-22  Eric Blake  <ebb9@byu.net>
37634
37635         Tweak x*printf documentation.
37636         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37637         variable name and comments.
37638         Suggested by Bruno Haible.
37639
37640 2007-10-22  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/acl.c (copy_acl): Fix file name in comment.
37643
37644 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37645
37646         Fix Tru64 problem with stdbool.h.
37647         * lib/stdbool.in.h (false, true):
37648         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37649         Don't declare as an enum in this situation; it runs afoul of Tru64.
37650         Problem reported by Steven M. Schweda in
37651         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37652
37653 2007-10-22  Eric Blake  <ebb9@byu.net>
37654
37655         Also wrap vf?printf.
37656         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37657         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37658         (xvprintf, xvfprintf): New functions.
37659
37660 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37661
37662         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37663         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37664
37665         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37666         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37667
37668 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37669
37670         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37671         by Bruno Haible.
37672
37673 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37674
37675         * lib/getloadavg.c
37676         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37677         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37678
37679         * tests/test-i-ring.c: Work for C89.
37680
37681 2007-10-22  Bruno Haible  <bruno@clisp.org>
37682
37683         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37684         -1u, in preprocessor expression, so that we don't test for the bug
37685         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37687
37688 2007-10-22  Eric Blake  <ebb9@byu.net>
37689
37690         * tests/test-yesno.sh: Silence stderr during test.
37691
37692 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37693
37694         * modules/crypto/gc-camellia: New file.
37695
37696         * m4/gc-camellia.m4: New file.
37697
37698         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37699
37700         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37701
37702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37703
37704         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37705         --help to stdout.  Reported by sms@antinode.org (Steven
37706         M. Schweda).
37707
37708 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37709
37710         * users.txt: Fix link to libksba.
37711
37712 2007-10-21  Ben Pfaff  <blp@gnu.org>
37713
37714         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37715         round.c roundf implementation that depends on floorf and ceilf to
37716         be tested unconditionally.
37717
37718 2007-10-21  Ben Pfaff  <blp@gnu.org>
37719
37720         * m4/check-libm-func.m4: Removed.
37721         * m4/check-math-lib.m4: New file.
37722         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37723         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37724         definition and lack of AC_LIBOBJ([roundf]).
37725         * m4/roundl.m4: Ditto, and similarly for roundl.
37726         * modules/round: Reference new m4 file.
37727         * modules/roundf: Ditto.
37728         * modules/roundl: Ditto.
37729         * tests/test-round2.c (main): Use ROUND instead of round.
37730         Bug report from Bruno Haible.
37731
37732 2007-10-21  Bruno Haible  <bruno@clisp.org>
37733
37734         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37735         context.
37736
37737 2007-10-21  Bruno Haible  <bruno@clisp.org>
37738
37739         * tests/test-wcwidth.c (main): Allow negative result for some control
37740         characters.
37741
37742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37743         Needed on OSF/1 5.1.
37744
37745 2007-10-21  Bruno Haible  <bruno@clisp.org>
37746
37747         * tests/test-floorf1.c: Include isnanf.h.
37748         (main): Use isnanf() instead of isnan().
37749         * tests/test-ceilf1.c: Include isnanf.h.
37750         (main): Use isnanf() instead of isnan().
37751         * tests/test-truncf1.c: Include isnanf.h.
37752         (main): Use isnanf() instead of isnan().
37753         * tests/test-roundf1.c: Include isnanf.h.
37754         (main): Use isnanf() instead of isnan().
37755
37756 2007-10-21  Eric Blake  <ebb9@byu.net>
37757
37758         * users.txt: Update URL for m4.
37759
37760 2007-10-21  Bruno Haible  <bruno@clisp.org>
37761
37762         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37763
37764 2007-10-21  Bruno Haible  <bruno@clisp.org>
37765
37766         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37767         Git's management files if the CVS files are not present.
37768
37769 2007-10-20  Bruno Haible  <bruno@clisp.org>
37770
37771         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37772         gcc-3.4.x.
37773
37774 2007-10-20  Ben Pfaff  <blp@gnu.org>
37775
37776         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37777         implementations.
37778         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37779         * lib/round.c: New file.
37780         * lib/roundf.c: New file.
37781         * lib/roundl.c: New file.
37782         * m4/round.m4: New file.
37783         * m4/roundf.m4: New file.
37784         * m4/roundl.m4: New file.
37785         * m4/check-libm-func-m4: New file.
37786         * modules/math: Replace round, roundf, roundl related @VARS@ in
37787         math.in.h.
37788         * modules/round: New file.
37789         * modules/round-tests: New file.
37790         * modules/roundf: New file.
37791         * modules/roundf-tests: New file.
37792         * modules/roundl: New file.
37793         * modules/roundl-tests: New file.
37794         * tests/test-round1.c: New file.
37795         * tests/test-round2.c: New file.
37796         * tests/test-roundf1.c: New file.
37797         * tests/test-roundf2.c: New file.
37798         * tests/test-roundl.c: New file.
37799         * doc/functions/round.texi: Mention round module.
37800         * doc/functions/roundf.texi: Mention roundf module.
37801         * doc/functions/roundl.texi: Mention roundl module.
37802         * MODULES.html.sh: Mention new modules.
37803         Thanks to Bruno Haible for suggestions.
37804
37805 2007-10-20  Jim Meyering  <meyering@redhat.com>
37806
37807         * lib/xprintf.c: Include <config.h> unconditionally.
37808
37809         Change xprintf's license to GPL.
37810         * modules/xprintf (License): s/LGPL/GPL/, since this module
37811         depends on modules (exit and exitfail) which are GPL.
37812         Suggestion from Bruno Haible.
37813
37814         xprintf fixes.
37815         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37816         Use a clearer diagnostic.
37817         Patch from Bruno Haible.
37818
37819 2007-10-20  Bruno Haible  <bruno@clisp.org>
37820
37821         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37822         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37824
37825 2007-10-20  Bruno Haible  <bruno@clisp.org>
37826
37827         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37828         precision in the comparison result > x - 1 or similar.
37829         * tests/test-ceilf2.c (correct_result_p): Likewise.
37830         * tests/test-truncf2.c (correct_result_p): Likewise.
37831         * tests/test-trunc2.c (correct_result_p): Likewise.
37832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37833
37834 2007-10-20  Bruno Haible  <bruno@clisp.org>
37835
37836         * modules/ceil: New file.
37837         * m4/ceil.m4: New file.
37838         * doc/functions/ceil.texi: Mention the 'ceil' module.
37839
37840 2007-10-20  Bruno Haible  <bruno@clisp.org>
37841
37842         * modules/floor: New file.
37843         * m4/floor.m4: New file.
37844         * doc/functions/floor.texi: Mention the 'floor' module.
37845
37846 2007-10-20  Bruno Haible  <bruno@clisp.org>
37847
37848         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37849         of %a.
37850         * modules/floorf-tests (Depends-on): Likewise.
37851         * modules/truncf-tests (Depends-on): Likewise.
37852         * modules/trunc-tests (Depends-on): Likewise.
37853         Reported by Ben Pfaff.
37854
37855 2007-10-19  Jim Meyering  <meyering@redhat.com>
37856
37857         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37858         Don't bother testing specific errno values.  Just test ferror.
37859
37860         New module: xprintf
37861         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37862
37863 2007-10-19  Bruno Haible  <bruno@clisp.org>
37864
37865         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37866         syntax.
37867         * modules/javaexec (Makefile.am): Likewise.
37868         * modules/relocatable-prog (Makefile.am): Likewise.
37869         Suggested by Jim Meyering.
37870
37871 2007-10-18  Bruno Haible  <bruno@clisp.org>
37872
37873         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37874         Reported by Jim Meyering.
37875
37876 2007-10-18  Eric Blake  <ebb9@byu.net>
37877
37878         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37879
37880 2007-10-18  Bruno Haible  <bruno@clisp.org>
37881
37882         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37883         the format string into writable memory. Needed in Fortify conditions.
37884
37885 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37886             Bruno Haible  <bruno@clisp.org>
37887
37888         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37889         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37890         * modules/trim (Depends-on): Add mbchar.
37891         (configure.ac): Add gl_FUNC_MBRTOWC.
37892         (Makefile.am): Augment lib_SOURCES.
37893
37894 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37895
37896         Modify glob.c to use fstatat and dirfd, to simplify it.
37897         Suggested by Eric Blake.
37898         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37899         Don't include <stdbool.h>; not used.
37900         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37901         (link_exists_p): Simplify implementation, since we can now assume
37902         dirfd and fstatat.
37903         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37904
37905 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37906
37907         * gnulib-tool (func_get_dependencies): Fix sed script to
37908         match only tests.
37909
37910 2007-10-17  Bruno Haible  <bruno@clisp.org>
37911
37912         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37913         allow locale names without encoding suffix.
37914         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37915         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37916
37917 2007-10-16  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37920         * lib/getgroups.c (getgroups): Likewise.
37921         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37922
37923 2007-10-16  Bruno Haible  <bruno@clisp.org>
37924
37925         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37926         * modules/malloc-posix (License): Likewise.
37927         * modules/realloc-posix (License): Likewise.
37928         * modules/calloc-posix (License): Likewise.
37929         * modules/intprops (License): Change from GPL to LGPL, with
37930         Paul Eggert's approval.
37931
37932 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37933
37934         Merge glibc changes into lib/glob.c.
37935
37936         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37937         2007-10-15 04:59:03 UTC.  Here are the changes:
37938
37939         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37940
37941         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37942
37943         * lib/glob.c: Add some branch prediction throughout.
37944
37945         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37946
37947         [BZ #5103]
37948         * lib/glob.c (glob): Recognize patterns starting \/.
37949
37950         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37951
37952         [BZ #3996]
37953         * lib/glob.c (attribute_hidden): Define if not defined.
37954         (glob): Unescape dirname, filename or username when needed and not
37955         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37956         is NULL.  Handle unescaped [ in pattern without closing ].
37957         Don't pass GLOB_CHECK down to recursive glob for directories.
37958         (__glob_pattern_type): New function.
37959         (__glob_pattern_p): Implement using __glob_pattern_type.
37960         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37961         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37962         Remove unreachable code.
37963
37964         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37965
37966         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37967         explain why there are no leaks.
37968
37969         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37970
37971         [BZ #3253]
37972         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37973         time, rather allocate increasingly bigger arrays of pointers, if
37974         possible with alloca, if too large with malloc.
37975
37976 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37977
37978         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37979         Problem reported by H.Merijn Brand in
37980         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37981         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37982         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37983
37984 2007-10-15  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37987         with explicit rpl_ prefix.
37988         * lib/fopen.c (fopen): Likewise.
37989         * lib/freopen.c (freopen): Likewise.
37990         * lib/iconv.c (iconv): Likewise.
37991         * lib/iconv_close.c (iconv_close): Likewise.
37992
37993 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37994
37995         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37996
37997 2007-10-15  Bruno Haible  <bruno@clisp.org>
37998
37999         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38000         <stddef.h> instead of <stdlib.h> since we only need NULL.
38001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38002
38003 2007-10-15  Bruno Haible  <bruno@clisp.org>
38004
38005         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38006         Replace paragraph talking about LIBOBJS.
38007         Reported by Colin Watson <cjwatson@debian.org>.
38008
38009 2007-10-15  Bruno Haible  <bruno@clisp.org>
38010
38011         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38012         <stdlib.h> before using NULL.
38013
38014 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38015
38016         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38017         Reported by Albert Chin <china@thewrittenword.com>.
38018
38019 2007-10-14  Bruno Haible  <bruno@clisp.org>
38020
38021         * modules/iconv_open-utf-tests: New file.
38022         * tests/test-iconv-utf.c: New file.
38023
38024         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38025         * modules/iconv_open-utf: New file.
38026         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38027         (iconv, iconv_close): New declarations.
38028         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38029         be defined.
38030         (iconv_open): Add special handling of conversion between UTF-8 and
38031         UTF-{16,32}{BE,LE}.
38032         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38033         * lib/iconv_close.c: New file.
38034         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38035         gl_FUNC_ICONV_OPEN.
38036         (gl_FUNC_ICONV_OPEN): Use it.
38037         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38038         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38039         and REPLACE_ICONV_UTF.
38040         * modules/iconv_open (Depends-on): Add c-strcase.
38041         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38042         ICONV_CONST.
38043         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38044
38045 2007-10-13  Albert Chin  <china@thewrittenword.com>
38046             Bruno Haible  <bruno@clisp.org>
38047
38048         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38049         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38050
38051 2007-10-13  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38054         defined, use the ISO C99 inline semantics.
38055         * lib/argp.h (ARGP_EI): Likewise.
38056
38057 2007-10-13  Bruno Haible  <bruno@clisp.org>
38058
38059         Handle 'inline' change in gcc 4.3.0.
38060         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38061         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38062         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38063         argp_fmtstream_point): Disable 'extern' declaration if the function
38064         definition is going to be provided inline.
38065         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38066         semantics, not the ISO C99 inline semantics.
38067         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38068         'extern' declaration if the function definition is going to be provided
38069         inline.
38070         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38071         the GNU C inline semantics, not the ISO C99 inline semantics. With
38072         GCC 4.2, avoid a warning.
38073
38074 2007-10-13  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/freading.h (freading): Enable the use of __freading for
38077         glibc >= 2.7.
38078         * lib/freading.c (freading): Likewise.
38079
38080 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38081
38082         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38083         "warning: C99 inline functions are not supported; using GNU89".
38084
38085 2007-10-12  Bruno Haible  <bruno@clisp.org>
38086
38087         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38088         of 2.
38089         * tests/test-ceilf2.c: New file.
38090         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38091
38092         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38093         * modules/ceilf-tests: Update.
38094
38095 2007-10-12  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38098         of 2.
38099         * tests/test-floorf2.c: New file.
38100         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38101
38102         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38103         * modules/floorf-tests: Update.
38104
38105 2007-10-12  Bruno Haible  <bruno@clisp.org>
38106
38107         * tests/test-trunc2.c: New file.
38108         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38109
38110         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38111         * modules/trunc-tests: Update.
38112
38113 2007-10-12  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38116         of 2.
38117         * tests/test-truncf2.c: New file.
38118         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38119
38120         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38121         * modules/truncf-tests: Update.
38122
38123 2007-10-11  Eric Blake  <ebb9@byu.net>
38124
38125         Don't claim strerror is broken on Interix.
38126         * doc/functions/strerror.texi (strerror): Known broken systems are
38127         now Solaris 8, and not Interix.
38128         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38129         Interix on cross-compile.
38130         Reported by Martin Koeppe in
38131         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38132
38133 2007-10-11  Bruno Haible  <bruno@clisp.org>
38134
38135         * modules/i-ring-tests: New file.
38136         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38137         instead of assert.
38138
38139 2007-10-11  Bruno Haible  <bruno@clisp.org>
38140
38141         * modules/filenamecat-tests: New file.
38142         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38143         * lib/filenamecat.c: Remove test code.
38144
38145 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38146
38147         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38148
38149         * lib/strerror.c: Include <string.h> always, to test interface,
38150         and to remove the need for the dummy.
38151         Include intprops.h to compute width instead of doing it ourselves
38152         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38153         (strerror): Define it to return NULL if there's no system strerror.
38154         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38155         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38156         ancient pre-strerror Unix systems well any more.  Saying "unknown
38157         system error" is enough.
38158         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38159         simpler strerror.c implementation.
38160         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38161         Simplify the tests to reflect the simpler strerror implementation.
38162         * modules/strerror (Depends-on): Add intprops.
38163
38164 2007-10-09  Eric Blake  <ebb9@byu.net>
38165
38166         Silence test-fpending.
38167         * modules/fpending-tests (Files): Add wrapper script.
38168         * tests/test-fpending.sh: New file.
38169
38170 2007-10-09  Bruno Haible  <bruno@clisp.org>
38171
38172         * MODULES.html.sh (func_module): Don't create a hyperlink for
38173         function names like 'printf_frexp'.
38174         (Misc): Add crc, memxor.
38175         (Characteristics of floating types): New section.
38176         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38177         isnanf-nolibm, signbit, trunc, truncf, truncl.
38178         (Enhancements for ISO C 99 functions): New subsection Input/output.
38179         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38180         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38181         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38182         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38183         (Enhancements for POSIX:2001 functions): Add chdir-long.
38184         (File system functions): Add areadlink, chdir-safer, read-file.
38185         Remove cycle-check.
38186         (File system as inode set): New section.
38187         (Date and time): Add gethrxtime.
38188         (Multithreading): Add openmp.
38189         (Internationalization functions): Add localename.
38190         (Unicode string functions): Add unistr/u*-mbsnlen.
38191         (Support for maintaining and releasing projects): Add git-version-gen.
38192         (Lone files): Remove directories.
38193
38194 2007-10-08  Ben Pfaff  <blp@gnu.org>
38195
38196         * lib/xmalloca.h: Fix typo in comment.
38197
38198 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38199
38200         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38201         when avoiding problems with integer overflow.  Use a portable test
38202         instead.
38203
38204 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38205
38206         * modules/dummy (License): Change to LGPLv2+.
38207         * modules/float (License): Likewise
38208         * modules/realloc (License): Likewise
38209         * modules/stdlib (License): Likewise
38210
38211 2007-10-07  Bruno Haible  <bruno@clisp.org>
38212
38213         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38214         * floor.c (TWO_MANT_DIG): Likewise.
38215         * ceil.c (TWO_MANT_DIG): Likewise.
38216         Reported by Ben Pfaff.
38217
38218 2007-10-07  Bruno Haible  <bruno@clisp.org>
38219
38220         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38221         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38222         * lib/frexp.c (FUNC): Likewise.
38223         * lib/printf-frexp.h (printf_frexp): Likewise.
38224         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38225         * lib/printf-frexp.c (FUNC): Likewise.
38226         Suggested by Jim Meyering.
38227
38228 2007-10-07  Jim Meyering  <meyering@redhat.com>
38229
38230         Make xnanosleep's integer overflow test more robust.
38231         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38232         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38233
38234 2007-10-07  Bruno Haible  <bruno@clisp.org>
38235
38236         * NEWS: Mention the license change.
38237
38238         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38239         abbreviations in the modules files.
38240
38241         Change copyright notice from GPLv2+ to GPLv3+.
38242         * README: Change copyright notice.
38243         * MODULES.html.sh: Likewise.
38244         * build-aux/bootstrap.conf: Likewise.
38245         * build-aux/config.libpath: Likewise.
38246         * build-aux/csharpcomp.sh.in: Likewise.
38247         * build-aux/csharpexec.sh.in: Likewise.
38248         * build-aux/install-reloc: Likewise.
38249         * build-aux/javacomp.sh.in: Likewise.
38250         * build-aux/javaexec.sh.in: Likewise.
38251         * build-aux/ldd.sh.in: Likewise.
38252         * build-aux/reloc-ldflags: Likewise.
38253         * build-aux/relocatable.sh.in: Likewise.
38254         * build-aux/x-to-1.in: Likewise.
38255         * check-module: Likewise.
38256         * config/srclistvars.sh: Likewise.
38257         * gnulib-tool: Likewise.
38258         * lib/acl-internal.h: Likewise.
38259         * lib/acl.c: Likewise.
38260         * lib/acl.h: Likewise.
38261         * lib/acl_entries.c: Likewise.
38262         * lib/areadlink-with-size.c: Likewise.
38263         * lib/areadlink.c: Likewise.
38264         * lib/areadlink.h: Likewise.
38265         * lib/argmatch.c: Likewise.
38266         * lib/argmatch.h: Likewise.
38267         * lib/argp-ba.c: Likewise.
38268         * lib/argp-eexst.c: Likewise.
38269         * lib/argp-fmtstream.c: Likewise.
38270         * lib/argp-fmtstream.h: Likewise.
38271         * lib/argp-fs-xinl.c: Likewise.
38272         * lib/argp-help.c: Likewise.
38273         * lib/argp-namefrob.h: Likewise.
38274         * lib/argp-parse.c: Likewise.
38275         * lib/argp-pin.c: Likewise.
38276         * lib/argp-pv.c: Likewise.
38277         * lib/argp-pvh.c: Likewise.
38278         * lib/argp-xinl.c: Likewise.
38279         * lib/argp.h: Likewise.
38280         * lib/at-func.c: Likewise.
38281         * lib/atanl.c: Likewise.
38282         * lib/backupfile.c: Likewise.
38283         * lib/backupfile.h: Likewise.
38284         * lib/basename.c: Likewise.
38285         * lib/binary-io.h: Likewise.
38286         * lib/byteswap.in.h: Likewise.
38287         * lib/c-stack.c: Likewise.
38288         * lib/c-stack.h: Likewise.
38289         * lib/c-strcasestr.c: Likewise.
38290         * lib/c-strcasestr.h: Likewise.
38291         * lib/c-strstr.c: Likewise.
38292         * lib/c-strstr.h: Likewise.
38293         * lib/c-strtod.c: Likewise.
38294         * lib/calloc.c: Likewise.
38295         * lib/canon-host.c: Likewise.
38296         * lib/canon-host.h: Likewise.
38297         * lib/canonicalize-lgpl.c: Likewise.
38298         * lib/canonicalize.c: Likewise.
38299         * lib/canonicalize.h: Likewise.
38300         * lib/ceil.c: Likewise.
38301         * lib/ceilf.c: Likewise.
38302         * lib/ceill.c: Likewise.
38303         * lib/chdir-long.c: Likewise.
38304         * lib/chdir-long.h: Likewise.
38305         * lib/chdir-safer.c: Likewise.
38306         * lib/chdir-safer.h: Likewise.
38307         * lib/chown.c: Likewise.
38308         * lib/classpath.c: Likewise.
38309         * lib/classpath.h: Likewise.
38310         * lib/clean-temp.c: Likewise.
38311         * lib/clean-temp.h: Likewise.
38312         * lib/cloexec.c: Likewise.
38313         * lib/close-stream.c: Likewise.
38314         * lib/closein.c: Likewise.
38315         * lib/closein.h: Likewise.
38316         * lib/closeout.c: Likewise.
38317         * lib/closeout.h: Likewise.
38318         * lib/concat-filename.c: Likewise.
38319         * lib/copy-file.c: Likewise.
38320         * lib/copy-file.h: Likewise.
38321         * lib/count-one-bits.h: Likewise.
38322         * lib/crc.c: Likewise.
38323         * lib/crc.h: Likewise.
38324         * lib/creat-safer.c: Likewise.
38325         * lib/csharpcomp.c: Likewise.
38326         * lib/csharpcomp.h: Likewise.
38327         * lib/csharpexec.c: Likewise.
38328         * lib/csharpexec.h: Likewise.
38329         * lib/cycle-check.c: Likewise.
38330         * lib/cycle-check.h: Likewise.
38331         * lib/diacrit.c: Likewise.
38332         * lib/diacrit.h: Likewise.
38333         * lib/diffseq.h: Likewise.
38334         * lib/dirchownmod.c: Likewise.
38335         * lib/dirent.in.h: Likewise.
38336         * lib/dirfd.c: Likewise.
38337         * lib/dirfd.h: Likewise.
38338         * lib/dirname.c: Likewise.
38339         * lib/dirname.h: Likewise.
38340         * lib/dummy.c: Likewise.
38341         * lib/dup-safer.c: Likewise.
38342         * lib/dup2.c: Likewise.
38343         * lib/eealloc.h: Likewise.
38344         * lib/error.c: Likewise.
38345         * lib/error.h: Likewise.
38346         * lib/euidaccess.c: Likewise.
38347         * lib/exclude.c: Likewise.
38348         * lib/exclude.h: Likewise.
38349         * lib/execute.c: Likewise.
38350         * lib/execute.h: Likewise.
38351         * lib/exitfail.c: Likewise.
38352         * lib/exitfail.h: Likewise.
38353         * lib/expl.c: Likewise.
38354         * lib/fatal-signal.c: Likewise.
38355         * lib/fatal-signal.h: Likewise.
38356         * lib/fbufmode.c: Likewise.
38357         * lib/fbufmode.h: Likewise.
38358         * lib/fchdir.c: Likewise.
38359         * lib/fchmodat.c: Likewise.
38360         * lib/fchownat.c: Likewise.
38361         * lib/fcntl--.h: Likewise.
38362         * lib/fcntl-safer.h: Likewise.
38363         * lib/fcntl.in.h: Likewise.
38364         * lib/fd-safer.c: Likewise.
38365         * lib/fflush.c: Likewise.
38366         * lib/file-has-acl.c: Likewise.
38367         * lib/file-set.c: Likewise.
38368         * lib/file-type.c: Likewise.
38369         * lib/file-type.h: Likewise.
38370         * lib/fileblocks.c: Likewise.
38371         * lib/filemode.c: Likewise.
38372         * lib/filemode.h: Likewise.
38373         * lib/filename.h: Likewise.
38374         * lib/filenamecat.c: Likewise.
38375         * lib/filenamecat.h: Likewise.
38376         * lib/findprog.c: Likewise.
38377         * lib/findprog.h: Likewise.
38378         * lib/float.in.h: Likewise.
38379         * lib/floor.c: Likewise.
38380         * lib/floorf.c: Likewise.
38381         * lib/floorl.c: Likewise.
38382         * lib/fopen-safer.c: Likewise.
38383         * lib/fopen.c: Likewise.
38384         * lib/fpending.c: Likewise.
38385         * lib/fpending.h: Likewise.
38386         * lib/fprintf.c: Likewise.
38387         * lib/fprintftime.h: Likewise.
38388         * lib/fpucw.h: Likewise.
38389         * lib/fpurge.c: Likewise.
38390         * lib/fpurge.h: Likewise.
38391         * lib/freadable.c: Likewise.
38392         * lib/freadable.h: Likewise.
38393         * lib/freadahead.c: Likewise.
38394         * lib/freadahead.h: Likewise.
38395         * lib/freading.c: Likewise.
38396         * lib/freading.h: Likewise.
38397         * lib/free.c: Likewise.
38398         * lib/freopen.c: Likewise.
38399         * lib/frexp.c: Likewise.
38400         * lib/frexpl.c: Likewise.
38401         * lib/fseek.c: Likewise.
38402         * lib/fseterr.c: Likewise.
38403         * lib/fseterr.h: Likewise.
38404         * lib/fstatat.c: Likewise.
38405         * lib/fstrcmp.c: Likewise.
38406         * lib/fstrcmp.h: Likewise.
38407         * lib/fsusage.c: Likewise.
38408         * lib/fsusage.h: Likewise.
38409         * lib/ftell.c: Likewise.
38410         * lib/ftello.c: Likewise.
38411         * lib/fts-cycle.c: Likewise.
38412         * lib/fts.c: Likewise.
38413         * lib/fts_.h: Likewise.
38414         * lib/full-read.c: Likewise.
38415         * lib/full-read.h: Likewise.
38416         * lib/full-write.c: Likewise.
38417         * lib/full-write.h: Likewise.
38418         * lib/fwritable.c: Likewise.
38419         * lib/fwritable.h: Likewise.
38420         * lib/fwriteerror.c: Likewise.
38421         * lib/fwriteerror.h: Likewise.
38422         * lib/fwriting.c: Likewise.
38423         * lib/fwriting.h: Likewise.
38424         * lib/gcd.c: Likewise.
38425         * lib/gcd.h: Likewise.
38426         * lib/getcwd.c: Likewise.
38427         * lib/getdate.h: Likewise.
38428         * lib/getdate.y: Likewise.
38429         * lib/getdomainname.c: Likewise.
38430         * lib/getdomainname.h: Likewise.
38431         * lib/getgroups.c: Likewise.
38432         * lib/gethostname.c: Likewise.
38433         * lib/gethrxtime.c: Likewise.
38434         * lib/gethrxtime.h: Likewise.
38435         * lib/getloadavg.c: Likewise.
38436         * lib/getndelim2.c: Likewise.
38437         * lib/getndelim2.h: Likewise.
38438         * lib/getnline.c: Likewise.
38439         * lib/getnline.h: Likewise.
38440         * lib/getopt.c: Likewise.
38441         * lib/getopt.in.h: Likewise.
38442         * lib/getopt1.c: Likewise.
38443         * lib/getopt_int.h: Likewise.
38444         * lib/getpagesize.h: Likewise.
38445         * lib/getsubopt.c: Likewise.
38446         * lib/gettime.c: Likewise.
38447         * lib/getugroups.c: Likewise.
38448         * lib/getugroups.h: Likewise.
38449         * lib/getusershell.c: Likewise.
38450         * lib/gl_anyavltree_list1.h: Likewise.
38451         * lib/gl_anyavltree_list2.h: Likewise.
38452         * lib/gl_anyhash_list1.h: Likewise.
38453         * lib/gl_anyhash_list2.h: Likewise.
38454         * lib/gl_anylinked_list1.h: Likewise.
38455         * lib/gl_anylinked_list2.h: Likewise.
38456         * lib/gl_anyrbtree_list1.h: Likewise.
38457         * lib/gl_anyrbtree_list2.h: Likewise.
38458         * lib/gl_anytree_list1.h: Likewise.
38459         * lib/gl_anytree_list2.h: Likewise.
38460         * lib/gl_anytree_oset.h: Likewise.
38461         * lib/gl_anytreehash_list1.h: Likewise.
38462         * lib/gl_anytreehash_list2.h: Likewise.
38463         * lib/gl_array_list.c: Likewise.
38464         * lib/gl_array_list.h: Likewise.
38465         * lib/gl_array_oset.c: Likewise.
38466         * lib/gl_array_oset.h: Likewise.
38467         * lib/gl_avltree_list.c: Likewise.
38468         * lib/gl_avltree_list.h: Likewise.
38469         * lib/gl_avltree_oset.c: Likewise.
38470         * lib/gl_avltree_oset.h: Likewise.
38471         * lib/gl_avltreehash_list.c: Likewise.
38472         * lib/gl_avltreehash_list.h: Likewise.
38473         * lib/gl_carray_list.c: Likewise.
38474         * lib/gl_carray_list.h: Likewise.
38475         * lib/gl_linked_list.c: Likewise.
38476         * lib/gl_linked_list.h: Likewise.
38477         * lib/gl_linkedhash_list.c: Likewise.
38478         * lib/gl_linkedhash_list.h: Likewise.
38479         * lib/gl_list.c: Likewise.
38480         * lib/gl_list.h: Likewise.
38481         * lib/gl_oset.c: Likewise.
38482         * lib/gl_oset.h: Likewise.
38483         * lib/gl_rbtree_list.c: Likewise.
38484         * lib/gl_rbtree_list.h: Likewise.
38485         * lib/gl_rbtree_oset.c: Likewise.
38486         * lib/gl_rbtree_oset.h: Likewise.
38487         * lib/gl_rbtreehash_list.c: Likewise.
38488         * lib/gl_rbtreehash_list.h: Likewise.
38489         * lib/gl_sublist.c: Likewise.
38490         * lib/gl_sublist.h: Likewise.
38491         * lib/group-member.c: Likewise.
38492         * lib/group-member.h: Likewise.
38493         * lib/hard-locale.c: Likewise.
38494         * lib/hard-locale.h: Likewise.
38495         * lib/hash-pjw.c: Likewise.
38496         * lib/hash-pjw.h: Likewise.
38497         * lib/hash-triple.c: Likewise.
38498         * lib/hash.c: Likewise.
38499         * lib/hash.h: Likewise.
38500         * lib/human.c: Likewise.
38501         * lib/human.h: Likewise.
38502         * lib/i-ring.c: Likewise.
38503         * lib/i-ring.h: Likewise.
38504         * lib/idcache.c: Likewise.
38505         * lib/imaxabs.c: Likewise.
38506         * lib/imaxdiv.c: Likewise.
38507         * lib/inet_pton.c: Likewise.
38508         * lib/inet_pton.h: Likewise.
38509         * lib/intprops.h: Likewise.
38510         * lib/inttostr.c: Likewise.
38511         * lib/inttostr.h: Likewise.
38512         * lib/inttypes.in.h: Likewise.
38513         * lib/isapipe.c: Likewise.
38514         * lib/isdir.c: Likewise.
38515         * lib/isnan.c: Likewise.
38516         * lib/isnan.h: Likewise.
38517         * lib/isnanf.c: Likewise.
38518         * lib/isnanf.h: Likewise.
38519         * lib/isnanl-nolibm.h: Likewise.
38520         * lib/isnanl.c: Likewise.
38521         * lib/isnanl.h: Likewise.
38522         * lib/javacomp.c: Likewise.
38523         * lib/javacomp.h: Likewise.
38524         * lib/javaexec.c: Likewise.
38525         * lib/javaexec.h: Likewise.
38526         * lib/javaversion.c: Likewise.
38527         * lib/javaversion.h: Likewise.
38528         * lib/javaversion.java: Likewise.
38529         * lib/lbrkprop.h: Likewise.
38530         * lib/lchmod.h: Likewise.
38531         * lib/lchown.c: Likewise.
38532         * lib/ldexpl.c: Likewise.
38533         * lib/linebreak.c: Likewise.
38534         * lib/linebreak.h: Likewise.
38535         * lib/linebuffer.c: Likewise.
38536         * lib/linebuffer.h: Likewise.
38537         * lib/locale.in.h: Likewise.
38538         * lib/logl.c: Likewise.
38539         * lib/long-options.c: Likewise.
38540         * lib/long-options.h: Likewise.
38541         * lib/lstat.c: Likewise.
38542         * lib/lstat.h: Likewise.
38543         * lib/math.in.h: Likewise.
38544         * lib/mbchar.c: Likewise.
38545         * lib/mbchar.h: Likewise.
38546         * lib/mbfile.h: Likewise.
38547         * lib/mbiter.h: Likewise.
38548         * lib/mbscasecmp.c: Likewise.
38549         * lib/mbscasestr.c: Likewise.
38550         * lib/mbschr.c: Likewise.
38551         * lib/mbscspn.c: Likewise.
38552         * lib/mbslen.c: Likewise.
38553         * lib/mbsncasecmp.c: Likewise.
38554         * lib/mbsnlen.c: Likewise.
38555         * lib/mbspbrk.c: Likewise.
38556         * lib/mbspcasecmp.c: Likewise.
38557         * lib/mbsrchr.c: Likewise.
38558         * lib/mbssep.c: Likewise.
38559         * lib/mbsspn.c: Likewise.
38560         * lib/mbsstr.c: Likewise.
38561         * lib/mbstok_r.c: Likewise.
38562         * lib/mbswidth.c: Likewise.
38563         * lib/mbswidth.h: Likewise.
38564         * lib/mbuiter.h: Likewise.
38565         * lib/memcasecmp.c: Likewise.
38566         * lib/memcasecmp.h: Likewise.
38567         * lib/memchr.c: Likewise.
38568         * lib/memcmp.c: Likewise.
38569         * lib/memcoll.c: Likewise.
38570         * lib/memcoll.h: Likewise.
38571         * lib/memcpy.c: Likewise.
38572         * lib/memrchr.c: Likewise.
38573         * lib/mkancesdirs.c: Likewise.
38574         * lib/mkdir-p.c: Likewise.
38575         * lib/mkdir-p.h: Likewise.
38576         * lib/mkdir.c: Likewise.
38577         * lib/mkdirat.c: Likewise.
38578         * lib/mkdtemp.c: Likewise.
38579         * lib/mkstemp-safer.c: Likewise.
38580         * lib/mkstemp.c: Likewise.
38581         * lib/modechange.c: Likewise.
38582         * lib/modechange.h: Likewise.
38583         * lib/mountlist.c: Likewise.
38584         * lib/mountlist.h: Likewise.
38585         * lib/mpsort.c: Likewise.
38586         * lib/nanosleep.c: Likewise.
38587         * lib/obstack.c: Likewise.
38588         * lib/obstack.h: Likewise.
38589         * lib/open-safer.c: Likewise.
38590         * lib/open.c: Likewise.
38591         * lib/openat-die.c: Likewise.
38592         * lib/openat-priv.h: Likewise.
38593         * lib/openat-proc.c: Likewise.
38594         * lib/openat.c: Likewise.
38595         * lib/openat.h: Likewise.
38596         * lib/pagealign_alloc.c: Likewise.
38597         * lib/pagealign_alloc.h: Likewise.
38598         * lib/physmem.c: Likewise.
38599         * lib/physmem.h: Likewise.
38600         * lib/pipe-safer.c: Likewise.
38601         * lib/pipe.c: Likewise.
38602         * lib/pipe.h: Likewise.
38603         * lib/posixtm.c: Likewise.
38604         * lib/posixtm.h: Likewise.
38605         * lib/posixver.c: Likewise.
38606         * lib/printf-frexp.c: Likewise.
38607         * lib/printf-frexp.h: Likewise.
38608         * lib/printf-frexpl.c: Likewise.
38609         * lib/printf-frexpl.h: Likewise.
38610         * lib/printf.c: Likewise.
38611         * lib/progname.c: Likewise.
38612         * lib/progname.h: Likewise.
38613         * lib/progreloc.c: Likewise.
38614         * lib/putenv.c: Likewise.
38615         * lib/quote.c: Likewise.
38616         * lib/quote.h: Likewise.
38617         * lib/quotearg.c: Likewise.
38618         * lib/quotearg.h: Likewise.
38619         * lib/raise.c: Likewise.
38620         * lib/readline.c: Likewise.
38621         * lib/readline.h: Likewise.
38622         * lib/readlink.c: Likewise.
38623         * lib/readtokens.c: Likewise.
38624         * lib/readtokens.h: Likewise.
38625         * lib/readtokens0.c: Likewise.
38626         * lib/readtokens0.h: Likewise.
38627         * lib/readutmp.c: Likewise.
38628         * lib/readutmp.h: Likewise.
38629         * lib/realloc.c: Likewise.
38630         * lib/relocwrapper.c: Likewise.
38631         * lib/rename-dest-slash.c: Likewise.
38632         * lib/rename.c: Likewise.
38633         * lib/rmdir.c: Likewise.
38634         * lib/rpmatch.c: Likewise.
38635         * lib/safe-read.c: Likewise.
38636         * lib/safe-read.h: Likewise.
38637         * lib/safe-write.c: Likewise.
38638         * lib/safe-write.h: Likewise.
38639         * lib/same-inode.h: Likewise.
38640         * lib/same.c: Likewise.
38641         * lib/same.h: Likewise.
38642         * lib/save-cwd.c: Likewise.
38643         * lib/save-cwd.h: Likewise.
38644         * lib/savedir.c: Likewise.
38645         * lib/savedir.h: Likewise.
38646         * lib/savewd.c: Likewise.
38647         * lib/savewd.h: Likewise.
38648         * lib/search.in.h: Likewise.
38649         * lib/setenv.c: Likewise.
38650         * lib/setenv.h: Likewise.
38651         * lib/settime.c: Likewise.
38652         * lib/sh-quote.c: Likewise.
38653         * lib/sh-quote.h: Likewise.
38654         * lib/sig2str.c: Likewise.
38655         * lib/sig2str.h: Likewise.
38656         * lib/signal.in.h: Likewise.
38657         * lib/signbitd.c: Likewise.
38658         * lib/signbitf.c: Likewise.
38659         * lib/signbitl.c: Likewise.
38660         * lib/sigprocmask.c: Likewise.
38661         * lib/sincosl.c: Likewise.
38662         * lib/sleep.c: Likewise.
38663         * lib/sprintf.c: Likewise.
38664         * lib/sqrtl.c: Likewise.
38665         * lib/stat-time.h: Likewise.
38666         * lib/stdio--.h: Likewise.
38667         * lib/stdio-safer.h: Likewise.
38668         * lib/stdlib--.h: Likewise.
38669         * lib/stdlib-safer.h: Likewise.
38670         * lib/stdlib.in.h: Likewise.
38671         * lib/stpcpy.c: Likewise.
38672         * lib/stpncpy.c: Likewise.
38673         * lib/strchrnul.c: Likewise.
38674         * lib/strcspn.c: Likewise.
38675         * lib/strerror.c: Likewise.
38676         * lib/strftime.c: Likewise.
38677         * lib/strftime.h: Likewise.
38678         * lib/striconveh.c: Likewise.
38679         * lib/striconveh.h: Likewise.
38680         * lib/striconveha.c: Likewise.
38681         * lib/striconveha.h: Likewise.
38682         * lib/stripslash.c: Likewise.
38683         * lib/strnlen1.c: Likewise.
38684         * lib/strnlen1.h: Likewise.
38685         * lib/strtod.c: Likewise.
38686         * lib/strtoimax.c: Likewise.
38687         * lib/strtok_r.c: Likewise.
38688         * lib/strtol.c: Likewise.
38689         * lib/strtoll.c: Likewise.
38690         * lib/strtoul.c: Likewise.
38691         * lib/strtoull.c: Likewise.
38692         * lib/sysexits.in.h: Likewise.
38693         * lib/tempname.c: Likewise.
38694         * lib/tempname.h: Likewise.
38695         * lib/timespec.h: Likewise.
38696         * lib/tls.c: Likewise.
38697         * lib/tls.h: Likewise.
38698         * lib/tmpdir.c: Likewise.
38699         * lib/tmpdir.h: Likewise.
38700         * lib/tmpfile-safer.c: Likewise.
38701         * lib/tmpfile.c: Likewise.
38702         * lib/trigl.c: Likewise.
38703         * lib/trigl.h: Likewise.
38704         * lib/trim.c: Likewise.
38705         * lib/trim.h: Likewise.
38706         * lib/trunc.c: Likewise.
38707         * lib/truncf.c: Likewise.
38708         * lib/truncl.c: Likewise.
38709         * lib/tsearch.c: Likewise.
38710         * lib/unicodeio.c: Likewise.
38711         * lib/unicodeio.h: Likewise.
38712         * lib/unistd--.h: Likewise.
38713         * lib/unistd-safer.h: Likewise.
38714         * lib/unistdio/ulc-fprintf.c: Likewise.
38715         * lib/unistdio/ulc-vfprintf.c: Likewise.
38716         * lib/unlinkdir.c: Likewise.
38717         * lib/unlinkdir.h: Likewise.
38718         * lib/unlocked-io.h: Likewise.
38719         * lib/unsetenv.c: Likewise.
38720         * lib/userspec.c: Likewise.
38721         * lib/utime.c: Likewise.
38722         * lib/utimecmp.c: Likewise.
38723         * lib/utimecmp.h: Likewise.
38724         * lib/utimens.c: Likewise.
38725         * lib/verify.h: Likewise.
38726         * lib/verror.c: Likewise.
38727         * lib/verror.h: Likewise.
38728         * lib/version-etc-fsf.c: Likewise.
38729         * lib/version-etc.c: Likewise.
38730         * lib/version-etc.h: Likewise.
38731         * lib/vfprintf.c: Likewise.
38732         * lib/vprintf.c: Likewise.
38733         * lib/vsprintf.c: Likewise.
38734         * lib/w32spawn.h: Likewise.
38735         * lib/wait-process.c: Likewise.
38736         * lib/wait-process.h: Likewise.
38737         * lib/wcwidth.c: Likewise.
38738         * lib/write-any-file.c: Likewise.
38739         * lib/xalloc-die.c: Likewise.
38740         * lib/xalloc.h: Likewise.
38741         * lib/xasprintf.c: Likewise.
38742         * lib/xgetcwd.c: Likewise.
38743         * lib/xgetcwd.h: Likewise.
38744         * lib/xgetdomainname.c: Likewise.
38745         * lib/xgetdomainname.h: Likewise.
38746         * lib/xgethostname.c: Likewise.
38747         * lib/xmalloc.c: Likewise.
38748         * lib/xmalloca.c: Likewise.
38749         * lib/xmalloca.h: Likewise.
38750         * lib/xmemcoll.c: Likewise.
38751         * lib/xnanosleep.c: Likewise.
38752         * lib/xreadlink.c: Likewise.
38753         * lib/xreadlink.h: Likewise.
38754         * lib/xsetenv.c: Likewise.
38755         * lib/xsetenv.h: Likewise.
38756         * lib/xstriconv.c: Likewise.
38757         * lib/xstriconv.h: Likewise.
38758         * lib/xstrndup.c: Likewise.
38759         * lib/xstrndup.h: Likewise.
38760         * lib/xstrtod.c: Likewise.
38761         * lib/xstrtod.h: Likewise.
38762         * lib/xstrtol-error.c: Likewise.
38763         * lib/xstrtol.c: Likewise.
38764         * lib/xstrtol.h: Likewise.
38765         * lib/xtime.h: Likewise.
38766         * lib/xvasprintf.c: Likewise.
38767         * lib/xvasprintf.h: Likewise.
38768         * lib/yesno.c: Likewise.
38769         * lib/yesno.h: Likewise.
38770         * posix-modules: Likewise.
38771         * tests/test-alloca-opt.c: Likewise.
38772         * tests/test-arcfour.c: Likewise.
38773         * tests/test-arctwo.c: Likewise.
38774         * tests/test-argmatch.c: Likewise.
38775         * tests/test-argp-2.sh: Likewise.
38776         * tests/test-argp.c: Likewise.
38777         * tests/test-arpa_inet.c: Likewise.
38778         * tests/test-array_list.c: Likewise.
38779         * tests/test-array_oset.c: Likewise.
38780         * tests/test-atexit.c: Likewise.
38781         * tests/test-avltree_list.c: Likewise.
38782         * tests/test-avltree_oset.c: Likewise.
38783         * tests/test-avltreehash_list.c: Likewise.
38784         * tests/test-base64.c: Likewise.
38785         * tests/test-binary-io.c: Likewise.
38786         * tests/test-byteswap.c: Likewise.
38787         * tests/test-c-ctype.c: Likewise.
38788         * tests/test-c-strcasecmp.c: Likewise.
38789         * tests/test-c-strcasestr.c: Likewise.
38790         * tests/test-c-strncasecmp.c: Likewise.
38791         * tests/test-c-strstr.c: Likewise.
38792         * tests/test-canonicalize-lgpl.c: Likewise.
38793         * tests/test-canonicalize.c: Likewise.
38794         * tests/test-carray_list.c: Likewise.
38795         * tests/test-ceilf.c: Likewise.
38796         * tests/test-ceill.c: Likewise.
38797         * tests/test-count-one-bits.c: Likewise.
38798         * tests/test-crc.c: Likewise.
38799         * tests/test-dirname.c: Likewise.
38800         * tests/test-fbufmode.c: Likewise.
38801         * tests/test-fcntl.c: Likewise.
38802         * tests/test-fflush.c: Likewise.
38803         * tests/test-floorf.c: Likewise.
38804         * tests/test-floorl.c: Likewise.
38805         * tests/test-fopen.c: Likewise.
38806         * tests/test-fprintf-posix.c: Likewise.
38807         * tests/test-fprintf-posix.h: Likewise.
38808         * tests/test-fpurge.c: Likewise.
38809         * tests/test-freadable.c: Likewise.
38810         * tests/test-freadahead.c: Likewise.
38811         * tests/test-freading.c: Likewise.
38812         * tests/test-freopen.c: Likewise.
38813         * tests/test-frexp.c: Likewise.
38814         * tests/test-frexpl.c: Likewise.
38815         * tests/test-fseek.c: Likewise.
38816         * tests/test-fseeko.c: Likewise.
38817         * tests/test-fseterr.c: Likewise.
38818         * tests/test-fstrcmp.c: Likewise.
38819         * tests/test-ftell.c: Likewise.
38820         * tests/test-ftello.c: Likewise.
38821         * tests/test-fwritable.c: Likewise.
38822         * tests/test-fwriting.c: Likewise.
38823         * tests/test-getaddrinfo.c: Likewise.
38824         * tests/test-getpass.c: Likewise.
38825         * tests/test-gettimeofday.c: Likewise.
38826         * tests/test-hmac-md5.c: Likewise.
38827         * tests/test-hmac-sha1.c: Likewise.
38828         * tests/test-iconv.c: Likewise.
38829         * tests/test-iconvme.c: Likewise.
38830         * tests/test-inttypes.c: Likewise.
38831         * tests/test-isnan.c: Likewise.
38832         * tests/test-isnanf.c: Likewise.
38833         * tests/test-isnanl-nolibm.c: Likewise.
38834         * tests/test-isnanl.c: Likewise.
38835         * tests/test-isnanl.h: Likewise.
38836         * tests/test-ldexpl.c: Likewise.
38837         * tests/test-linked_list.c: Likewise.
38838         * tests/test-linkedhash_list.c: Likewise.
38839         * tests/test-locale.c: Likewise.
38840         * tests/test-localename.c: Likewise.
38841         * tests/test-lock.c: Likewise.
38842         * tests/test-lseek.c: Likewise.
38843         * tests/test-malloca.c: Likewise.
38844         * tests/test-math.c: Likewise.
38845         * tests/test-mbscasecmp.c: Likewise.
38846         * tests/test-mbscasestr1.c: Likewise.
38847         * tests/test-mbscasestr2.c: Likewise.
38848         * tests/test-mbscasestr3.c: Likewise.
38849         * tests/test-mbscasestr4.c: Likewise.
38850         * tests/test-mbschr.c: Likewise.
38851         * tests/test-mbscspn.c: Likewise.
38852         * tests/test-mbsncasecmp.c: Likewise.
38853         * tests/test-mbspbrk.c: Likewise.
38854         * tests/test-mbspcasecmp.c: Likewise.
38855         * tests/test-mbsrchr.c: Likewise.
38856         * tests/test-mbsspn.c: Likewise.
38857         * tests/test-mbsstr1.c: Likewise.
38858         * tests/test-mbsstr2.c: Likewise.
38859         * tests/test-mbsstr3.c: Likewise.
38860         * tests/test-md5.c: Likewise.
38861         * tests/test-memmem.c: Likewise.
38862         * tests/test-netinet_in.c: Likewise.
38863         * tests/test-open.c: Likewise.
38864         * tests/test-printf-frexp.c: Likewise.
38865         * tests/test-printf-frexpl.c: Likewise.
38866         * tests/test-printf-posix.c: Likewise.
38867         * tests/test-printf-posix.h: Likewise.
38868         * tests/test-rbtree_list.c: Likewise.
38869         * tests/test-rbtree_oset.c: Likewise.
38870         * tests/test-rbtreehash_list.c: Likewise.
38871         * tests/test-read-file.c: Likewise.
38872         * tests/test-rijndael.c: Likewise.
38873         * tests/test-search.c: Likewise.
38874         * tests/test-signbit.c: Likewise.
38875         * tests/test-sleep.c: Likewise.
38876         * tests/test-snprintf-posix.c: Likewise.
38877         * tests/test-snprintf-posix.h: Likewise.
38878         * tests/test-snprintf.c: Likewise.
38879         * tests/test-sprintf-posix.c: Likewise.
38880         * tests/test-sprintf-posix.h: Likewise.
38881         * tests/test-stat-time.c: Likewise.
38882         * tests/test-stdbool.c: Likewise.
38883         * tests/test-stdint.c: Likewise.
38884         * tests/test-stdio.c: Likewise.
38885         * tests/test-stdlib.c: Likewise.
38886         * tests/test-stpncpy.c: Likewise.
38887         * tests/test-strcasestr.c: Likewise.
38888         * tests/test-striconv.c: Likewise.
38889         * tests/test-striconveh.c: Likewise.
38890         * tests/test-striconveha.c: Likewise.
38891         * tests/test-string.c: Likewise.
38892         * tests/test-sys_select.c: Likewise.
38893         * tests/test-sys_socket.c: Likewise.
38894         * tests/test-sys_stat.c: Likewise.
38895         * tests/test-sys_time.c: Likewise.
38896         * tests/test-sysexits.c: Likewise.
38897         * tests/test-time.c: Likewise.
38898         * tests/test-tls.c: Likewise.
38899         * tests/test-trunc.c: Likewise.
38900         * tests/test-truncf.c: Likewise.
38901         * tests/test-truncl.c: Likewise.
38902         * tests/test-unistd.c: Likewise.
38903         * tests/test-vasnprintf-posix.c: Likewise.
38904         * tests/test-vasnprintf-posix2.c: Likewise.
38905         * tests/test-vasnprintf.c: Likewise.
38906         * tests/test-vasprintf-posix.c: Likewise.
38907         * tests/test-vasprintf.c: Likewise.
38908         * tests/test-verify.c: Likewise.
38909         * tests/test-vfprintf-posix.c: Likewise.
38910         * tests/test-vprintf-posix.c: Likewise.
38911         * tests/test-vsnprintf-posix.c: Likewise.
38912         * tests/test-vsnprintf.c: Likewise.
38913         * tests/test-vsprintf-posix.c: Likewise.
38914         * tests/test-wchar.c: Likewise.
38915         * tests/test-wctype.c: Likewise.
38916         * tests/test-wcwidth.c: Likewise.
38917         * tests/test-xstrtol.c: Likewise.
38918         * tests/test-xvasprintf.c: Likewise.
38919         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38920         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38921         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38922         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38923         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38924         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38925         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38926         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38927         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38928         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38929         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38930         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38931         * tests/uniname/test-uninames.c: Likewise.
38932         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38933         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38934         * tests/unistdio/test-u16-printf1.h: Likewise.
38935         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38936         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38937         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38938         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38939         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38940         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38941         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38942         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38943         * tests/unistdio/test-u32-printf1.h: Likewise.
38944         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38945         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38946         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38947         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38948         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38949         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38950         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38951         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38952         * tests/unistdio/test-u8-printf1.h: Likewise.
38953         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38954         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38955         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38956         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38957         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38958         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38959         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38960         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38961         * tests/unistdio/test-ulc-printf1.h: Likewise.
38962         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38963         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38964         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38965         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38966         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38967         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38968         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38969         * tests/uniwidth/test-u16-width.c: Likewise.
38970         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38971         * tests/uniwidth/test-u32-width.c: Likewise.
38972         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38973         * tests/uniwidth/test-u8-width.c: Likewise.
38974         * tests/uniwidth/test-uc_width.c: Likewise.
38975         * config/srclist-update: Likewise.
38976         (fixlicense): Update to GPLv3+.
38977
38978         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38979         * tests/test-tsearch.c: Change copyright notice.
38980
38981         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38982         * lib/c-strcaseeq.h: Change copyright notice.
38983         * lib/streq.h: Likewise.
38984         * lib/uniconv.h: Likewise.
38985         * lib/uniconv/u-conv-from-enc.h: Likewise.
38986         * lib/uniconv/u-conv-to-enc.h: Likewise.
38987         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38988         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38989         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38990         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38991         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38992         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38993         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38994         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38995         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38996         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38997         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38998         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38999         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39000         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39001         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39002         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39003         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39004         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39005         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39006         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39007         * lib/uniname.h: Likewise.
39008         * lib/uniname/uniname.c: Likewise.
39009         * lib/unistdio.h: Likewise.
39010         * lib/unistdio/u-asnprintf.h: Likewise.
39011         * lib/unistdio/u-asprintf.h: Likewise.
39012         * lib/unistdio/u-printf-args.c: Likewise.
39013         * lib/unistdio/u-printf-args.h: Likewise.
39014         * lib/unistdio/u-printf-parse.h: Likewise.
39015         * lib/unistdio/u-snprintf.h: Likewise.
39016         * lib/unistdio/u-sprintf.h: Likewise.
39017         * lib/unistdio/u-vasprintf.h: Likewise.
39018         * lib/unistdio/u-vsnprintf.h: Likewise.
39019         * lib/unistdio/u-vsprintf.h: Likewise.
39020         * lib/unistdio/u16-asnprintf.c: Likewise.
39021         * lib/unistdio/u16-asprintf.c: Likewise.
39022         * lib/unistdio/u16-printf-parse.c: Likewise.
39023         * lib/unistdio/u16-snprintf.c: Likewise.
39024         * lib/unistdio/u16-sprintf.c: Likewise.
39025         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39026         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39027         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39028         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39029         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39030         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39031         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39032         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39033         * lib/unistdio/u16-vasnprintf.c: Likewise.
39034         * lib/unistdio/u16-vasprintf.c: Likewise.
39035         * lib/unistdio/u16-vsnprintf.c: Likewise.
39036         * lib/unistdio/u16-vsprintf.c: Likewise.
39037         * lib/unistdio/u32-asnprintf.c: Likewise.
39038         * lib/unistdio/u32-asprintf.c: Likewise.
39039         * lib/unistdio/u32-printf-parse.c: Likewise.
39040         * lib/unistdio/u32-snprintf.c: Likewise.
39041         * lib/unistdio/u32-sprintf.c: Likewise.
39042         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39043         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39044         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39045         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39046         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39047         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39048         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39049         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39050         * lib/unistdio/u32-vasnprintf.c: Likewise.
39051         * lib/unistdio/u32-vasprintf.c: Likewise.
39052         * lib/unistdio/u32-vsnprintf.c: Likewise.
39053         * lib/unistdio/u32-vsprintf.c: Likewise.
39054         * lib/unistdio/u8-asnprintf.c: Likewise.
39055         * lib/unistdio/u8-asprintf.c: Likewise.
39056         * lib/unistdio/u8-printf-parse.c: Likewise.
39057         * lib/unistdio/u8-snprintf.c: Likewise.
39058         * lib/unistdio/u8-sprintf.c: Likewise.
39059         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39060         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39061         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39062         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39063         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39064         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39065         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39066         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39067         * lib/unistdio/u8-vasnprintf.c: Likewise.
39068         * lib/unistdio/u8-vasprintf.c: Likewise.
39069         * lib/unistdio/u8-vsnprintf.c: Likewise.
39070         * lib/unistdio/u8-vsprintf.c: Likewise.
39071         * lib/unistdio/ulc-asnprintf.c: Likewise.
39072         * lib/unistdio/ulc-asprintf.c: Likewise.
39073         * lib/unistdio/ulc-printf-parse.c: Likewise.
39074         * lib/unistdio/ulc-snprintf.c: Likewise.
39075         * lib/unistdio/ulc-sprintf.c: Likewise.
39076         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39077         * lib/unistdio/ulc-vasprintf.c: Likewise.
39078         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39079         * lib/unistdio/ulc-vsprintf.c: Likewise.
39080         * lib/unistr.h: Likewise.
39081         * lib/unistr/u-cpy-alloc.h: Likewise.
39082         * lib/unistr/u-cpy.h: Likewise.
39083         * lib/unistr/u-endswith.h: Likewise.
39084         * lib/unistr/u-move.h: Likewise.
39085         * lib/unistr/u-set.h: Likewise.
39086         * lib/unistr/u-startswith.h: Likewise.
39087         * lib/unistr/u-stpcpy.h: Likewise.
39088         * lib/unistr/u-stpncpy.h: Likewise.
39089         * lib/unistr/u-strcat.h: Likewise.
39090         * lib/unistr/u-strcpy.h: Likewise.
39091         * lib/unistr/u-strcspn.h: Likewise.
39092         * lib/unistr/u-strdup.h: Likewise.
39093         * lib/unistr/u-strlen.h: Likewise.
39094         * lib/unistr/u-strncat.h: Likewise.
39095         * lib/unistr/u-strncpy.h: Likewise.
39096         * lib/unistr/u-strnlen.h: Likewise.
39097         * lib/unistr/u-strpbrk.h: Likewise.
39098         * lib/unistr/u-strspn.h: Likewise.
39099         * lib/unistr/u-strstr.h: Likewise.
39100         * lib/unistr/u-strtok.h: Likewise.
39101         * lib/unistr/u16-check.c: Likewise.
39102         * lib/unistr/u16-chr.c: Likewise.
39103         * lib/unistr/u16-cmp.c: Likewise.
39104         * lib/unistr/u16-cpy-alloc.c: Likewise.
39105         * lib/unistr/u16-cpy.c: Likewise.
39106         * lib/unistr/u16-endswith.c: Likewise.
39107         * lib/unistr/u16-mblen.c: Likewise.
39108         * lib/unistr/u16-mbsnlen.c: Likewise.
39109         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39110         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39111         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39112         * lib/unistr/u16-mbtouc.c: Likewise.
39113         * lib/unistr/u16-mbtoucr.c: Likewise.
39114         * lib/unistr/u16-move.c: Likewise.
39115         * lib/unistr/u16-next.c: Likewise.
39116         * lib/unistr/u16-prev.c: Likewise.
39117         * lib/unistr/u16-set.c: Likewise.
39118         * lib/unistr/u16-startswith.c: Likewise.
39119         * lib/unistr/u16-stpcpy.c: Likewise.
39120         * lib/unistr/u16-stpncpy.c: Likewise.
39121         * lib/unistr/u16-strcat.c: Likewise.
39122         * lib/unistr/u16-strchr.c: Likewise.
39123         * lib/unistr/u16-strcmp.c: Likewise.
39124         * lib/unistr/u16-strcpy.c: Likewise.
39125         * lib/unistr/u16-strcspn.c: Likewise.
39126         * lib/unistr/u16-strdup.c: Likewise.
39127         * lib/unistr/u16-strlen.c: Likewise.
39128         * lib/unistr/u16-strmblen.c: Likewise.
39129         * lib/unistr/u16-strmbtouc.c: Likewise.
39130         * lib/unistr/u16-strncat.c: Likewise.
39131         * lib/unistr/u16-strncmp.c: Likewise.
39132         * lib/unistr/u16-strncpy.c: Likewise.
39133         * lib/unistr/u16-strnlen.c: Likewise.
39134         * lib/unistr/u16-strpbrk.c: Likewise.
39135         * lib/unistr/u16-strrchr.c: Likewise.
39136         * lib/unistr/u16-strspn.c: Likewise.
39137         * lib/unistr/u16-strstr.c: Likewise.
39138         * lib/unistr/u16-strtok.c: Likewise.
39139         * lib/unistr/u16-to-u32.c: Likewise.
39140         * lib/unistr/u16-to-u8.c: Likewise.
39141         * lib/unistr/u16-uctomb-aux.c: Likewise.
39142         * lib/unistr/u16-uctomb.c: Likewise.
39143         * lib/unistr/u32-check.c: Likewise.
39144         * lib/unistr/u32-chr.c: Likewise.
39145         * lib/unistr/u32-cmp.c: Likewise.
39146         * lib/unistr/u32-cpy-alloc.c: Likewise.
39147         * lib/unistr/u32-cpy.c: Likewise.
39148         * lib/unistr/u32-endswith.c: Likewise.
39149         * lib/unistr/u32-mblen.c: Likewise.
39150         * lib/unistr/u32-mbsnlen.c: Likewise.
39151         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39152         * lib/unistr/u32-mbtouc.c: Likewise.
39153         * lib/unistr/u32-mbtoucr.c: Likewise.
39154         * lib/unistr/u32-move.c: Likewise.
39155         * lib/unistr/u32-next.c: Likewise.
39156         * lib/unistr/u32-prev.c: Likewise.
39157         * lib/unistr/u32-set.c: Likewise.
39158         * lib/unistr/u32-startswith.c: Likewise.
39159         * lib/unistr/u32-stpcpy.c: Likewise.
39160         * lib/unistr/u32-stpncpy.c: Likewise.
39161         * lib/unistr/u32-strcat.c: Likewise.
39162         * lib/unistr/u32-strchr.c: Likewise.
39163         * lib/unistr/u32-strcmp.c: Likewise.
39164         * lib/unistr/u32-strcpy.c: Likewise.
39165         * lib/unistr/u32-strcspn.c: Likewise.
39166         * lib/unistr/u32-strdup.c: Likewise.
39167         * lib/unistr/u32-strlen.c: Likewise.
39168         * lib/unistr/u32-strmblen.c: Likewise.
39169         * lib/unistr/u32-strmbtouc.c: Likewise.
39170         * lib/unistr/u32-strncat.c: Likewise.
39171         * lib/unistr/u32-strncmp.c: Likewise.
39172         * lib/unistr/u32-strncpy.c: Likewise.
39173         * lib/unistr/u32-strnlen.c: Likewise.
39174         * lib/unistr/u32-strpbrk.c: Likewise.
39175         * lib/unistr/u32-strrchr.c: Likewise.
39176         * lib/unistr/u32-strspn.c: Likewise.
39177         * lib/unistr/u32-strstr.c: Likewise.
39178         * lib/unistr/u32-strtok.c: Likewise.
39179         * lib/unistr/u32-to-u16.c: Likewise.
39180         * lib/unistr/u32-to-u8.c: Likewise.
39181         * lib/unistr/u32-uctomb.c: Likewise.
39182         * lib/unistr/u8-check.c: Likewise.
39183         * lib/unistr/u8-chr.c: Likewise.
39184         * lib/unistr/u8-cmp.c: Likewise.
39185         * lib/unistr/u8-cpy-alloc.c: Likewise.
39186         * lib/unistr/u8-cpy.c: Likewise.
39187         * lib/unistr/u8-endswith.c: Likewise.
39188         * lib/unistr/u8-mblen.c: Likewise.
39189         * lib/unistr/u8-mbsnlen.c: Likewise.
39190         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39191         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39192         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39193         * lib/unistr/u8-mbtouc.c: Likewise.
39194         * lib/unistr/u8-mbtoucr.c: Likewise.
39195         * lib/unistr/u8-move.c: Likewise.
39196         * lib/unistr/u8-next.c: Likewise.
39197         * lib/unistr/u8-prev.c: Likewise.
39198         * lib/unistr/u8-set.c: Likewise.
39199         * lib/unistr/u8-startswith.c: Likewise.
39200         * lib/unistr/u8-stpcpy.c: Likewise.
39201         * lib/unistr/u8-stpncpy.c: Likewise.
39202         * lib/unistr/u8-strcat.c: Likewise.
39203         * lib/unistr/u8-strchr.c: Likewise.
39204         * lib/unistr/u8-strcmp.c: Likewise.
39205         * lib/unistr/u8-strcpy.c: Likewise.
39206         * lib/unistr/u8-strcspn.c: Likewise.
39207         * lib/unistr/u8-strdup.c: Likewise.
39208         * lib/unistr/u8-strlen.c: Likewise.
39209         * lib/unistr/u8-strmblen.c: Likewise.
39210         * lib/unistr/u8-strmbtouc.c: Likewise.
39211         * lib/unistr/u8-strncat.c: Likewise.
39212         * lib/unistr/u8-strncmp.c: Likewise.
39213         * lib/unistr/u8-strncpy.c: Likewise.
39214         * lib/unistr/u8-strnlen.c: Likewise.
39215         * lib/unistr/u8-strpbrk.c: Likewise.
39216         * lib/unistr/u8-strrchr.c: Likewise.
39217         * lib/unistr/u8-strspn.c: Likewise.
39218         * lib/unistr/u8-strstr.c: Likewise.
39219         * lib/unistr/u8-strtok.c: Likewise.
39220         * lib/unistr/u8-to-u16.c: Likewise.
39221         * lib/unistr/u8-to-u32.c: Likewise.
39222         * lib/unistr/u8-uctomb-aux.c: Likewise.
39223         * lib/unistr/u8-uctomb.c: Likewise.
39224         * lib/unitypes.h: Likewise.
39225         * lib/uniwidth.h: Likewise.
39226         * lib/uniwidth/cjk.h: Likewise.
39227         * lib/uniwidth/u16-strwidth.c: Likewise.
39228         * lib/uniwidth/u16-width.c: Likewise.
39229         * lib/uniwidth/u32-strwidth.c: Likewise.
39230         * lib/uniwidth/u32-width.c: Likewise.
39231         * lib/uniwidth/u8-strwidth.c: Likewise.
39232         * lib/uniwidth/u8-width.c: Likewise.
39233         * lib/uniwidth/width.c: Likewise.
39234
39235 2007-10-07  Bruno Haible  <bruno@clisp.org>
39236
39237         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39238         The file is still under LGPL (see modules/inttypes).
39239
39240 2007-10-06  Bruno Haible  <bruno@clisp.org>
39241
39242         * modules/trunc (Dependencies): Add 'extensions'.
39243         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39244         Reported by Ben Pfaff <blp@gnu.org>.
39245
39246 2007-10-06  Bruno Haible  <bruno@clisp.org>
39247
39248         * modules/freopen-tests: New file.
39249         * tests/test-freopen.c: New file.
39250
39251         * modules/fopen-tests: New file.
39252         * tests/test-fopen.c: New file.
39253
39254         * modules/fopen: New file.
39255         * lib/fopen.c: New file.
39256         * m4/fopen.m4: New file.
39257         * modules/freopen: New file.
39258         * lib/freopen.c: New file.
39259         * m4/freopen.m4: New file.
39260         * lib/stdio.in.h (fopen, freopen): New declarations.
39261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39262         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39263         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39264         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39265         * doc/functions/fopen.texi: Mention the 'fopen' module.
39266         * doc/functions/freopen.texi: Mention the 'freopen' module.
39267
39268 2007-10-06  Bruno Haible  <bruno@clisp.org>
39269
39270         * modules/open-tests: New file.
39271         * tests/test-open.c: New file.
39272
39273         * modules/open: New file.
39274         * lib/open.c: New file.
39275         * m4/open.m4: New file.
39276         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39277         lib/open.c does.
39278         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39279         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39280         macros.
39281         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39282         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39283         REPLACE_OPEN.
39284         * doc/functions/open.texi: Mention the 'open' module.
39285
39286 2007-10-04  Bruno Haible  <bruno@clisp.org>
39287
39288         * modules/ceill-tests: New file.
39289         * tests/test-ceill.c: New file.
39290
39291         * modules/ceill: New file.
39292         * lib/ceill.c: Replace entire file.
39293         * m4/ceill.m4: New file.
39294         * lib/math.in.h (ceill): Replace declaration.
39295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39296         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39297         * doc/functions/ceill.texi: Mention the 'ceill' module.
39298         * modules/mathl (Files): Remove lib/ceill.c.
39299         (Depends-on): Add ceill.
39300
39301 2007-10-04  Bruno Haible  <bruno@clisp.org>
39302
39303         * modules/ceilf-tests: New file.
39304         * tests/test-ceilf.c: New file.
39305
39306         * modules/ceilf: New file.
39307         * lib/ceil.c: New file.
39308         * lib/ceilf.c: New file.
39309         * m4/ceilf.m4: New file.
39310         * lib/math.in.h (ceilf): New declaration.
39311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39312         HAVE_DECL_CEILF.
39313         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39314         HAVE_DECL_CEILF.
39315         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39316
39317 2007-10-04  Bruno Haible  <bruno@clisp.org>
39318
39319         * modules/floorl-tests: New file.
39320         * tests/test-floorl.c: New file.
39321
39322         * modules/floorl: New file.
39323         * lib/floorl.c: Replace entire file.
39324         * m4/floorl.m4: New file.
39325         * lib/math.in.h (floorl): Replace declaration.
39326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39327         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39328         * doc/functions/floorl.texi: Mention the 'floorl' module.
39329         * modules/mathl (Files): Remove lib/floorl.c.
39330         (Depends-on): Add floorl.
39331
39332 2007-10-04  Bruno Haible  <bruno@clisp.org>
39333
39334         * modules/floorf-tests: New file.
39335         * tests/test-floorf.c: New file.
39336
39337         * modules/floorf: New file.
39338         * lib/floor.c: New file.
39339         * lib/floorf.c: New file.
39340         * m4/floorf.m4: New file.
39341         * lib/math.in.h (floorf): New declaration.
39342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39343         HAVE_DECL_FLOORF.
39344         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39345         HAVE_DECL_FLOORF.
39346         * doc/functions/floorf.texi: Mention the 'floorf' module.
39347
39348 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39349             Bruno Haible  <bruno@clisp.org>
39350
39351         Advertise for the Git server instead of the CVS server.
39352         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39353         repository instead of the CVS one.
39354         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39355         about all VCS systems generically.
39356         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39357
39358 2007-10-04  Bruno Haible  <bruno@clisp.org>
39359
39360         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39361         means.
39362         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39363
39364 2007-10-04  Bruno Haible  <bruno@clisp.org>
39365
39366         * modules/truncl-tests: New file.
39367         * tests/test-truncl.c: New file.
39368
39369         * modules/truncl: New file.
39370         * lib/truncl.c: New file.
39371         * m4/truncl.m4: New file.
39372         * lib/math.in.h (truncl): New declaration.
39373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39374         HAVE_DECL_TRUNCL.
39375         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39376         HAVE_DECL_TRUNCL.
39377         * doc/functions/truncl.texi: Mention the 'truncl' module.
39378
39379 2007-10-04  Bruno Haible  <bruno@clisp.org>
39380
39381         * modules/truncf-tests: New file.
39382         * tests/test-truncf.c: New file.
39383
39384         * modules/truncf: New file.
39385         * lib/trunc.c: Make paramerizable through USE_* macros.
39386         * lib/truncf.c: New file.
39387         * m4/truncf.m4: New file.
39388         * lib/math.in.h (truncf): New declaration.
39389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39390         HAVE_DECL_TRUNCF.
39391         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39392         HAVE_DECL_TRUNCF.
39393         * doc/functions/truncf.texi: Mention the 'truncf' module.
39394
39395 2007-10-03  Bruno Haible  <bruno@clisp.org>
39396
39397         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39398         augmentation also for tests modules.
39399         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39400         * modules/atexit-tests (Makefile.am): Likewise.
39401         * modules/binary-io-tests (Makefile.am): Likewise.
39402         * modules/c-strcase-tests (Makefile.am): Likewise.
39403         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39404         * modules/canonicalize-tests (Makefile.am): Likewise.
39405         * modules/closein-tests (Makefile.am): Likewise.
39406         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39407         * modules/freadahead-tests (Makefile.am): Likewise.
39408         * modules/fseek-tests (Makefile.am): Likewise.
39409         * modules/fseeko-tests (Makefile.am): Likewise.
39410         * modules/ftell-tests (Makefile.am): Likewise.
39411         * modules/ftello-tests (Makefile.am): Likewise.
39412         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39413         * modules/isnanl-tests (Makefile.am): Likewise.
39414         * modules/lseek-tests (Makefile.am): Likewise.
39415         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39416         * modules/mbscasestr-tests (Makefile.am): Likewise.
39417         * modules/mbschr-tests (Makefile.am): Likewise.
39418         * modules/mbscspn-tests (Makefile.am): Likewise.
39419         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39420         * modules/mbspbrk-tests (Makefile.am): Likewise.
39421         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39422         * modules/mbsrchr-tests (Makefile.am): Likewise.
39423         * modules/mbsspn-tests (Makefile.am): Likewise.
39424         * modules/mbsstr-tests (Makefile.am): Likewise.
39425         * modules/printf-posix-tests (Makefile.am): Likewise.
39426         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39427         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39428         * modules/tsearch-tests (Makefile.am): Likewise.
39429         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39430         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39431         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39432         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39433         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39434         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39435         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39436         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39437         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39438         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39439         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39440         * modules/xstrtol-tests (Makefile.am): Likewise.
39441         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39442         * modules/yesno-tests (Makefile.am): Likewise.
39443
39444 2007-10-03  Bruno Haible  <bruno@clisp.org>
39445
39446         * modules/trunc-tests: New file.
39447         * tests/test-trunc.c: New file.
39448
39449         * modules/trunc: New file.
39450         * lib/trunc.c: New file.
39451         * m4/trunc.m4: New file.
39452         * lib/math.in.h (trunc): New declaration.
39453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39454         HAVE_DECL_TRUNC.
39455         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39456         HAVE_DECL_TRUNC.
39457         * doc/functions/trunc.texi: Mention the 'trunc' module.
39458
39459 2007-10-03  Bruno Haible  <bruno@clisp.org>
39460
39461         * tests/test-fpending.c: New file, mostly copied
39462         from coreutils/lib/t-fpending.c.
39463         * modules/fpending-tests: New file.
39464
39465 2007-10-03  Bruno Haible  <bruno@clisp.org>
39466
39467         Port the stdio extensions to QNX (untested).
39468         * lib/fseterr.c (fseterr): Add support for QNX.
39469         * lib/fbufmode.c (fbufmode): Likewise.
39470         * lib/freadable.c (freadable): Likewise.
39471         * lib/fwritable.c (fwritable): Likewise.
39472         * lib/freading.c (freading): Likewise.
39473         * lib/fwriting.c (fwriting): Likewise.
39474         * lib/freadahead.c (freadahed): Likewise.
39475         * lib/fpurge.c (fpurge): Likewise.
39476         * lib/fseeko.c (rpl_fseeko): Likewise.
39477
39478 2007-10-03  Bruno Haible  <bruno@clisp.org>
39479             Jim Meyering  <jim@meyering.net>
39480             Eric Blake  <ebb9@byu.net>
39481
39482         * doc/relocatable.texi: Use @command instead of @program.
39483
39484 2007-10-02  Jim Meyering  <jim@meyering.net>
39485
39486         Perform one more "_.h" -> ".in.h" substitution.
39487         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39488         instead of unistd_.h here, too.
39489
39490 2007-10-01  Bruno Haible  <bruno@clisp.org>
39491
39492         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39493         Needed for the alloca-opt module.
39494
39495 2007-09-30  Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39498         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39499         alloca_.h.
39500         * lib/argz.in.h: Renamed from lib/argz_.h.
39501         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39502         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39503         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39504         byteswap_.h.
39505         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39506         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39507         dirent_.h.
39508         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39509         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39510         fcntl_.h.
39511         * lib/float.in.h: Renamed from lib/float_.h.
39512         * modules/float (Files, Makefile.am): Use float.in.h instead of
39513         float_.h.
39514         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39515         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39516         fnmatch_.h.
39517         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39518         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39519         getopt_.h.
39520         * lib/glob.in.h: Renamed from lib/glob_.h.
39521         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39522         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39523         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39524         iconv_.h.
39525         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39526         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39527         inttypes_.h.
39528         * lib/locale.in.h: Renamed from lib/locale_.h.
39529         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39530         locale_.h.
39531         * lib/math.in.h: Renamed from lib/math_.h.
39532         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39533         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39534         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39535         of netinet_in_.h. Add dependency.
39536         * lib/poll.in.h: Renamed from lib/poll_.h.
39537         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39538         * lib/search.in.h: Renamed from lib/search_.h.
39539         * modules/search (Files, Makefile.am): Use search.in.h instead of
39540         search_.h.
39541         * lib/signal.in.h: Renamed from lib/signal_.h.
39542         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39543         _signal.h.
39544         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39545         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39546         stdbool_.h.
39547         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39548         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39549         stdint_.h.
39550         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39551         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39552         stdio_.h.
39553         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39554         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39555         stdlib_.h.
39556         * lib/string.in.h: Renamed from lib/string_.h.
39557         * modules/string (Files, Makefile.am): Use string.in.h instead of
39558         string_.h.
39559         * doc/gnulib-tool.texi (Initial import): Update.
39560         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39561         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39562         of sys_select_.h. Add dependency.
39563         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39564         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39565         of sys_socket_.h.
39566         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39567         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39568         sys_stat_.h.
39569         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39570         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39571         sys_time_.h.
39572         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39573         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39574         sysexits_.h.
39575         * lib/time.in.h: Renamed from lib/time_.h.
39576         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39577         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39578         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39579         unistd_.h.
39580         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39581         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39582         wchar_.h.
39583         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39584         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39585         wctype_.h.
39586         * build-aux/bootstrap (slurp): Update.
39587         * lib/.cppi-disable: Update.
39588
39589 2007-09-30  Bruno Haible  <bruno@clisp.org>
39590
39591         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39592         Needed on BeOS.
39593
39594 2007-09-30  Bruno Haible  <bruno@clisp.org>
39595
39596         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39597
39598 2007-09-29  Bruno Haible  <bruno@clisp.org>
39599
39600         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39601
39602 2007-09-29  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39605         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39606         * build-aux/install-reloc: Compile also areadlink.c.
39607         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39608
39609 2007-09-29  Bruno Haible  <bruno@clisp.org>
39610
39611         * gnulib-tool (func_emit_initmacro_done): Indentation.
39612
39613 2007-09-29  Bruno Haible  <bruno@clisp.org>
39614
39615         * README: Add CVS checkout update instructions.
39616         Info from Bob Proulx <bob@proulx.com>.
39617
39618 2007-09-28  Eric Blake  <ebb9@byu.net>
39619
39620         Provide move-if-change.
39621         * build-aux/move-if-change: New file, based on best practice
39622         rather than any canonical upstream location.
39623
39624 2007-09-28  Jim Meyering  <jim@meyering.net>
39625
39626         Fix canonicalize loop-detection corner case.
39627         Do not attempt to stat the symlink values stored via seen_triple.
39628         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39629         on linux-2.6.18, (but not 2.6.22).
39630         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39631         triple_compare.  The former compares dev,ino,filename, while the latter
39632         would actually stat dirname(filename) when dev and ino were equal.
39633         * lib/hash-triple.c: Install <string.h>.
39634         (STREQ): Define.
39635         (triple_compare_ino_str): New function.
39636         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39637
39638 2007-09-28  Eric Blake  <ebb9@byu.net>
39639
39640         Enforce that AC_REPLACE_FUNCS files exist.
39641         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39642         override check for typos.
39643
39644         Fix test-closein on Solaris 10.
39645         * tests/test-closein.c (main): Don't assume stdin can be inherited
39646         closed on all systems.
39647         * tests/test-closein.sh: Likewise.
39648         Reported by Piotr Tarnowski.
39649
39650 2007-09-28  Jim Meyering  <jim@meyering.net>
39651
39652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39653
39654 2007-09-27  Jim Meyering  <jim@meyering.net>
39655
39656         canonicalize: Avoid a false-positive cycle failure.
39657         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39658         Sort.  Remove cycle-check.
39659         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39660         not cycle-check.h.
39661         (seen_triple): New function.
39662         (canonicalize_filename_mode): Use it instead of cycle-check.
39663         * tests/test-canonicalize.c: Add a test for this bug.
39664         * tests/test-canonicalize.sh: Set up and run the test.
39665
39666         New module, file-set, from coreutils.
39667         * modules/file-set: Define it.
39668         * lib/file-set.c, lib/file-set.h: Implement.
39669
39670         New module, hash-triple, from coreutils.
39671         * modules/hash-triple: Define it.
39672         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39673
39674 2007-09-25  Eric Blake  <ebb9@byu.net>
39675
39676         Fix strerror on Interix.
39677         * lib/string_.h (strerror): Declare replacement.
39678         * doc/functions/strerror.texi (strerror): Document the Interix
39679         shortcoming.
39680         * modules/string (Makefile.am): Support new hooks.
39681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39682         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39683         gl_FUNC_STRERROR_SEPARATE.
39684         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39685         * lib/strerror.c (rpl_strerror): Provide replacement.
39686         * modules/strerror (Depends-on): Add string.
39687         (configure.ac): Detect use of module.
39688         * tests/test-strerror.c: New file.
39689         * modules/strerror-tests: New test module.
39690         * modules/argp (Depends-on): Add strerror.
39691         * modules/error (Depends-on): Likewise.
39692         Reported by Martin Koeppe.
39693
39694 2007-09-24  Bruno Haible  <bruno@clisp.org>
39695
39696         * README: Update git instructions.
39697
39698 2007-09-24  Eric Blake  <ebb9@byu.net>
39699
39700         Revert fpending breakage from 2007-09-08.
39701         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39702         __fpending.c.
39703
39704 2007-09-24  Jim Meyering  <jim@meyering.net>
39705
39706         filenamecat.c: Add a test.
39707         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39708         showing how the function works when DIR is the empty string.
39709
39710 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39711
39712         * tests/test-canonicalize.sh: Turn on executable bit.
39713
39714 2007-09-19  Eric Blake  <ebb9@byu.net>
39715
39716         * README: Update CVS instructions.
39717
39718 2007-09-18  Bruno Haible  <bruno@clisp.org>
39719
39720         * modules/areadlink: New file.
39721         * lib/areadlink.h (areadlink): New declaration.
39722         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39723
39724 2007-09-17  Jim Meyering  <jim@meyering.net>
39725
39726         * lib/savewd.c (ESTALE) [!defined]: Define.
39727         Reported to be required on Interix by Martin Koeppe.
39728
39729 2007-09-17  Bruno Haible  <bruno@clisp.org>
39730
39731         * gnulib-tool (func_version): Use $version.
39732
39733 2007-09-16  Bruno Haible  <bruno@clisp.org>
39734
39735         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39736         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39737         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39738         Reported by Greg Schafer <gschafer@zip.com.au>.
39739
39740 2007-09-15  Bruno Haible  <bruno@clisp.org>
39741
39742         * gnulib-tool (sed): Try a little harder to make bash understand the
39743         alias.
39744         Reported by Bruce Korb <bruce.korb@gmail.com>.
39745
39746 2007-09-13  Eric Blake  <ebb9@byu.net>
39747
39748         * ChangeLog: Remove conflict markers.
39749
39750 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39751
39752         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39753         Reported by Bruno Haible <bruno@clisp.org>.
39754
39755 2007-09-12  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39758         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39759         is not defined.
39760
39761 2007-09-12  Eric Blake  <ebb9@byu.net>
39762
39763         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39764         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39765         Autoconf definition.
39766         * modules/euidaccess (Depends-on): Add extensions, for
39767         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39768         * modules/fnmatch (Depends-on): Likewise.
39769         * modules/getaddrinfo (Depends-on): Likewise.
39770         * modules/getdelim (Depends-on): Likewise.
39771         * modules/getline (Depends-on): Likewise.
39772         * modules/getsubopt (Depends-on): Likewise.
39773         * modules/gettext (Depends-on): Likewise.
39774         * modules/group-member (Depends-on): Likewise.
39775         * modules/mbchar (Depends-on): Likewise.
39776         * modules/memmem (Depends-on): Likewise.
39777         * modules/mempcpy (Depends-on): Likewise.
39778         * modules/memrchr (Depends-on): Likewise.
39779         * modules/pagealign_alloc (Depends-on): Likewise.
39780         * modules/readutmp (Depends-on): Likewise.
39781         * modules/stpcpy (Depends-on): Likewise.
39782         * modules/stpncpy (Depends-on): Likewise.
39783         * modules/strchrnul (Depends-on): Likewise.
39784         * modules/strndup (Depends-on): Likewise.
39785         * modules/strsep (Depends-on): Likewise.
39786         * modules/strverscmp (Depends-on): Likewise.
39787         * modules/vasprintf (Depends-on): Likewise.
39788         * modules/wcwidth (Depends-on): Likewise.
39789         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39790         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39794         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39795         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39797         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39798         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39800         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39801         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39803         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39804         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39806         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39808         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39810         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39811         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39812         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39813         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39815         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39816         so that lock.m4 can be used in gettext without extensions module.
39817
39818 2007-09-11  Bruno Haible  <bruno@clisp.org>
39819
39820         * m4/isc-posix.m4: Remove file.
39821         Suggested by Eric Blake.
39822
39823 2007-09-11  Eric Blake  <ebb9@byu.net>
39824
39825         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39826
39827 2007-09-10  Bruno Haible  <bruno@clisp.org>
39828
39829         * posix-modules: Fix typo in error message.
39830         Reported by Matt <mkraai@beckman.com>.
39831
39832 2007-09-09  Bruno Haible  <bruno@clisp.org>
39833
39834         * doc/functions/getdelim.texi: Update list of platforms lacking the
39835         function.
39836         * doc/functions/getline.texi: Likewise.
39837
39838 2007-09-09  Jim Meyering  <jim@meyering.net>
39839
39840         * lib/hash.c (hash_initialize): Detect calloc failure.
39841         Reported by Bruno Haible.
39842
39843 2007-09-09  Bruno Haible  <bruno@clisp.org>
39844
39845         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39846         malloc or realloc fails.
39847
39848 2007-09-09  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/getcwd (Depends-on): Add malloc-posix.
39851         * modules/glob (Depends-on): Likewise.
39852         * modules/putenv (Depends-on): Likewise.
39853         * modules/strdup (Depends-on): Likewise.
39854         * modules/getdelim (Depends-on): Add realloc-posix.
39855         * modules/read-file (Depends-on): Likewise.
39856
39857 2007-09-09  Bruno Haible  <bruno@clisp.org>
39858
39859         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39860         (gl_FUNC_MALLOC_POSIX): Require it.
39861         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39862         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39863         * modules/realloc (Files): Add m4/malloc.m4.
39864         * modules/calloc (Files): Likewise.
39865
39866 2007-09-09  Bruno Haible  <bruno@clisp.org>
39867
39868         * modules/malloc-posix: New file.
39869         * modules/malloc (Depends-on): Add malloc-posix.
39870         * lib/malloc.c: Include errno.h.
39871         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39872         and a POSIX-compatible malloc into a single function. Set ENOMEM
39873         when returning NULL.
39874         * m4/malloc.m4: New file.
39875         * doc/functions/malloc.texi: Mention the malloc-posix module.
39876         * lib/stdlib_.h (malloc): New declaration.
39877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39878         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39879         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39880         and HAVE_MALLOC_POSIX.
39881
39882 2007-09-09  Bruno Haible  <bruno@clisp.org>
39883
39884         * modules/realloc-posix: New file.
39885         * modules/realloc (Depends-on): Add realloc-posix.
39886         * lib/realloc.c: Include errno.h.
39887         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39888         and a POSIX-compatible realloc into a single function. Set ENOMEM
39889         when returning NULL.
39890         * m4/realloc.m4: New file.
39891         * doc/functions/realloc.texi: Mention the realloc-posix module.
39892         * lib/stdlib_.h (realloc): New declaration.
39893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39894         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39895         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39896         and HAVE_REALLOC_POSIX.
39897
39898 2007-09-09  Bruno Haible  <bruno@clisp.org>
39899
39900         * modules/calloc-posix: New file.
39901         * modules/calloc (Depends-on): Add calloc-posix.
39902         * lib/calloc.c: Include errno.h.
39903         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39904         and a POSIX-compatible calloc into a single function. Set ENOMEM
39905         when returning NULL.
39906         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39907         * doc/functions/calloc.texi: Mention the calloc-posix module.
39908         * lib/stdlib_.h (calloc): New declaration.
39909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39910         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39911         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39912         and HAVE_CALLOC_POSIX.
39913
39914 2007-09-09  Bruno Haible  <bruno@clisp.org>
39915
39916         Allow for modules to show an arbitrary notice.
39917         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39918         * gnulib-tool: New option --extract-notice.
39919         (func_usage): Document it.
39920         (sed_extract_prog): Update.
39921         (func_get_notice): New function.
39922         (func_modules_notice): New function.
39923         (func_import, func_create_testdir): Invoke it.
39924         Suggested by Jim Meyering.
39925
39926 2007-09-09  Bruno Haible  <bruno@clisp.org>
39927
39928         * gnulib-tool: New options --verbose, --quiet.
39929         (func_usage): Document them.
39930         (verbose): New variable.
39931         (func_execute_command): New function.
39932         (func_import): Don't show the module list and the file list if
39933         $verbose < 0.
39934         (func_create_testdir): Likewise. Use func_execute_command.
39935         (func_create_megatestdir): Use func_execute_command.
39936
39937 2007-09-08  Bruno Haible  <bruno@clisp.org>
39938
39939         * gnulib-tool (func_import): Prefer rsync over wget when available,
39940         for fetching the PO files.
39941
39942 2007-09-08  Bruno Haible  <bruno@clisp.org>
39943
39944         * posix-modules: New file. Portions copied from gnulib-tool.
39945         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39946
39947 2007-09-08  Jim Meyering  <jim@meyering.net>
39948
39949         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39950         * lib/fpending.h: Rename from __fpending.h.
39951         * lib/fpending.c: Rename from __fpending.c.
39952         Include "fpending.h", not "__fpending.h".
39953         * lib/__fpending.h, lib/__fpending.c: Remove files.
39954         * modules/fpending (Files): Reflect new file names.
39955         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39956
39957 2007-09-08  Bruno Haible  <bruno@clisp.org>
39958
39959         * m4/inttypes-h.m4: Remove stub file.
39960
39961 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39962
39963         * doc/headers/stdint.texi: Discuss #include_next issue.
39964
39965 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39966
39967         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39968
39969 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39970
39971         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39972         in variable name.
39973
39974 2007-09-03  Jim Meyering  <jim@meyering.net>
39975
39976         New module: git-version-gen.
39977         * modules/git-version-gen: New file.
39978
39979         Import changes from coreutils for bootstrap script.
39980
39981         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39982
39983         bootstrap: uses rsync to download the .po files
39984         * build-aux/bootstrap (po_download_command_format): New global.
39985         (download_po_files): Use rsync.
39986         (update_po_files): Don't remove .po files after download,
39987         so future rsync runs can take advantage of the copies.
39988
39989         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39990
39991         Solve the unnecessary-.po-file-regeneration problem once and for all.
39992         * build-aux/bootstrap (download_po_files): New function, renamed from
39993         get_translations.  Now, downloads, but doesn't update LINGUAS.
39994         (update_po_files): New function.
39995
39996         bootstrap: Ignore more.
39997         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39998         uniwidth to e.g., lib/.gitignore.
39999         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40000
40001         * build-aux/bootstrap: New setting: vc_ignore.
40002         (insert_sorted_if_absent): Create $file if absent.
40003         Adapt to new, possibly empty, list: $vc_ignore.
40004
40005         bootstrap: generate more ignorable names
40006         * build-aux/bootstrap (slurp): When generating ignorable names,
40007         also map .sin to .sed, .gperf to .c, and .y to .c.
40008
40009 2007-09-03  Jim Meyering  <jim@meyering.net>
40010
40011         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40012         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40013
40014 2007-09-02  Bruno Haible  <bruno@clisp.org>
40015
40016         Fix mis-recognition of 'mcs' on QNX 6.
40017         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40018         output contains the string "Mono".
40019         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40020         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40021
40022 2007-09-01  Bruno Haible  <bruno@clisp.org>
40023
40024         Fix collision between uniwidth/* and linebreak modules.
40025         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40026         u32_width): Remove declarations.
40027         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40028         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40029         streq3, streq2, streq1, streq0): Remove functions.
40030         (STREQ): Remove macro.
40031         (is_cjk_encoding): Remove function.
40032         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40033         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40034         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40035         * NEWS: Document the change.
40036
40037 2007-09-01  Bruno Haible  <bruno@clisp.org>
40038
40039         * lib/streq.h: Add double-inclusion guard.
40040
40041 2007-09-01  Karl Berry  <karl@gnu.org>
40042
40043         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40044
40045 2007-08-28  Jim Meyering  <jim@meyering.net>
40046
40047         Rename mreadlink_with_size to areadlink_with_size.
40048         * NEWS: Document the change.
40049         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40050         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40051         * lib/mreadlink.h: Rename this to...
40052         * lib/areadlink.h: ...this.
40053         * modules/mreadlink-with-size: Rename this to...
40054         * modules/areadlink-with-size: ...this.
40055         * lib/canonicalize.c: Reflect the renaming.
40056         * modules/canonicalize: Likewise.
40057
40058 2007-08-26  Bruno Haible  <bruno@clisp.org>
40059
40060         * gnulib-tool (func_import): When deciding which files to remove,
40061         consider also dangling symbolic links.
40062         Reported by Eric Blake.
40063
40064 2007-08-26  Bruno Haible  <bruno@clisp.org>
40065
40066         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40067
40068 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40069
40070         * lib/readline.c: Don't include getline.h, the prototype is now
40071         found in stdio.h.
40072
40073 2007-08-23  Jim Meyering  <jim@meyering.net>
40074
40075         Getdelim touchup.
40076         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40077         around the funlockfile call, since funlockfile never sets errno.
40078         Don't set errno upon failed realloc.
40079
40080 2007-08-22  Eric Blake  <ebb9@byu.net>
40081
40082         Getline touchups.
40083         * lib/getdelim.c (getdelim): Revert regression that required *n to
40084         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40086         getdelim, rather than whether implementation is missing.
40087         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40088         * lib/stdio_.h (getline): Also declare if replacement is
40089         required.
40090         * doc/functions/getdelim.texi: New file.
40091         * doc/functions/getline.texi: Likewise.
40092         * doc/gnulib.texi (Function Substitutes): Add new files.
40093         Reported by Bruno Haible.
40094
40095 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40096
40097         * users.txt: Add Guile.
40098
40099 2007-08-22  Eric Blake  <ebb9@byu.net>
40100
40101         * tests/test-getdelim.c (main): Use remove, not unlink.
40102         * tests/test-getline.c (main): Likewise.
40103
40104         Move getline and getdelim into stdio.h, per POSIX 200x.
40105         * modules/getline (Files): Remove getline.h.
40106         (Depends-on): Add stdio.
40107         (configure.ac): Add module indicator.
40108         * modules/getdelim (Files): Remove getdelim.h.
40109         (Depends-on): Add stdio.
40110         (configure.ac): Add module indicator.
40111         * modules/stdio (Makefile.am): Work with new indicators.
40112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40115         * lib/getdelim.h: Delete.
40116         * lib/getline.h: Delete.
40117         * lib/stdio_.h (getdelim, getline): Declare.
40118         * modules/getdelim-tests: New module.
40119         * modules/getline-tests: Likewise.
40120         * tests/test-getdelim.c: New file.
40121         * tests/test-getline.c: Likewise.
40122         * NEWS: Document the change.
40123         * lib/getline.c: Update choice of header.
40124         * lib/csharpcomp.c: Likewise.
40125         * lib/getpass.c: Likewise.
40126         * lib/javacomp.c: Likewise.
40127         * lib/javaversion.c: Likewise.
40128         * lib/yesno.c: Likewise.
40129         * lib/getdelim.c: Likewise.
40130         (getdelim): Set errno on failure, and avoid memory leak.
40131
40132 2007-08-19  Bruno Haible  <bruno@clisp.org>
40133
40134         * modules/closein (Depends-on): Add freadahead.
40135         * lib/closein.c: Include freadahead.h.
40136         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40137         is zero.
40138
40139 2007-08-19  Bruno Haible  <bruno@clisp.org>
40140
40141         * modules/freadahead-tests: New file.
40142         * tests/test-freadahead.sh: New file.
40143         * tests/test-freadahead.c: New file.
40144
40145         * modules/freadahead: New file.
40146         * lib/freadahead.h: New file.
40147         * lib/freadahead.c: New file.
40148         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40149         fbufmode, fpurge, freadable, fwritable.
40150
40151 2007-08-19  Eric Blake  <ebb9@byu.net>
40152
40153         Test yesno in combination with closein.
40154         * lib/yesno.c (yesno): Document use of stdin.
40155         * modules/yesno-tests (Files): New module.
40156         * tests/test-yesno.c (main): New file.
40157         * tests/test-yesno.sh: Likewise.
40158
40159 2007-08-19  Bruno Haible  <bruno@clisp.org>
40160
40161         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40162         * lib/fseeko.c (rpl_fseeko): Likewise.
40163         * lib/fseterr.c (fseterr): Likewise.
40164
40165 2007-08-19  Bruno Haible  <bruno@clisp.org>
40166
40167         * tests/test-lseek.c (main): Disable a test for BeOS.
40168         * doc/functions/lseek.texi: Document the BeOS bug.
40169
40170 2007-08-19  Bruno Haible  <bruno@clisp.org>
40171             Eric Blake  <ebb9@byu.net>
40172
40173         * lib/lseek.c: Include <sys/stat.h>.
40174         (rpl_lseek): Add workaround code also for Unix platforms.
40175         Needed for BeOS.
40176         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40177         * doc/functions/lseek.texi: Document BeOS definiency.
40178
40179 2007-08-18  Bruno Haible  <bruno@clisp.org>
40180
40181         * modules/fstrcmp-tests: New file.
40182         * tests/test-fstrcmp.c: New file.
40183
40184 2007-08-18  Bruno Haible  <bruno@clisp.org>
40185
40186         * modules/fstrcmp: New file, from GNU gettext with modifications.
40187         * lib/fstrcmp.h: New file, from GNU gettext.
40188         * lib/fstrcmp.c: New file, from GNU gettext.
40189         * MODULES.html.sh (String handling): Add fstrcmp.
40190
40191 2007-08-18  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40194         'bool'.
40195         (diag, compareseq): Remove const from the ctxt argument.
40196         (USE_HEURISTIC): Undefine at the end.
40197
40198 2007-08-18  Jim Meyering  <jim@meyering.net>
40199
40200         New file: lib/idcache.h
40201         * NEWS: Mention the addition.
40202         * modules/idcache (Files): Add lib/idcache.h
40203         * lib/idcache.c: Include "idcache.h".
40204         Don't include <sys/types.h>.
40205         Add a FIXME comment.
40206         Move file-scoped "static" declarations to the top.
40207         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40208
40209 2007-08-17  Bruno Haible  <bruno@clisp.org>
40210         and Paul Eggert  <eggert@cs.ucla.edu>
40211
40212         * MODULES.html.sh: Add diffseq.
40213         * modules/diffseq: New file.
40214         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40215         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40216
40217 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40218
40219         Import changes from coreutils for bootstrap script.
40220
40221         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40222
40223         * build-aux/bootstrap (slurp): Work even in environments where
40224         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40225         current code does not slurp files whose names start with ".", and
40226         this looks like it might be a troublesome area.
40227
40228         2007-07-11  Jim Meyering  <jim@meyering.net>
40229
40230         If there's a GPL vN copyright comment, require that N == 3.
40231
40232         2007-07-08  Jim Meyering  <jim@meyering.net>
40233
40234         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40235         * build-aux/bootstrap (mam_template): Move definition out of loop.
40236
40237         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40238
40239         * build-aux/bootstrap (symlink_to_dir): Rename function from
40240         symlink_to_gnulib.  Add a directory parameter.  Update all
40241         callers.
40242         (cp_mark_as_generated): Also check for -- and link to -- files in
40243         gl/.
40244
40245         2007-07-08  Jim Meyering  <jim@meyering.net>
40246
40247         Adapt to deeper hierarchy in gnulib.
40248         * build-aux/bootstrap (symlink_to_dir): If the destination
40249         directory doesn't exist, create it. This is required at least for
40250         "lib/uniwidth/cjk.h".
40251
40252         2007-05-15  Jim Meyering  <jim@meyering.net>
40253
40254         * build-aux/bootstrap: Now that generated Makefile.am files
40255         are no longer under version control, they must be created at
40256         bootstrap time.
40257
40258 2007-08-14  Ben Pfaff  <blp@gnu.org>
40259
40260         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40261
40262 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40263
40264         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40265         given the changes below.
40266         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40267         even on hosts that have padding bits beyond the supported 64.
40268
40269 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40270
40271         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40272         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40273         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40274         depends on it.
40275         (xstrtol_error): Remove.
40276         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40277         but with a different signature.
40278         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40279         * lib/xstrtol-error.c: Include exitfail.h.
40280         (xstrtol_fatal): New function, with a different signature from the
40281         old xstrtol_error, so that the caller need not worry about passing
40282         in an exit status, or about storage management of the option argument.
40283         (xstrtol_error): Now a static function.  Redo signature to
40284         implement xstrtol_fatal.  Output the correct number of hyphens in
40285         front of the option so that the caller need not worry about
40286         storage management.
40287         (N_): New macro.
40288         (_): Remove; not used now.
40289         * modules/xstrtol: Depend on getopt.
40290         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40291         of old STRTOL_FATAL_ERROR macro.
40292         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40293         of test program.
40294         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40295         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40296
40297 2007-08-08  Eric Blake  <ebb9@byu.net>
40298
40299         * lib/xstrtol-error.c: Add missing include.
40300
40301         Move xstrtol messages into gnulib domain, when --pobase is used.
40302         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40303         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40304         * modules/xstrtol (Files): Distribute new file.
40305         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40306         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40307         * tests/test-xstrtol.c: ...into new file.
40308         * tests/test-xstrtoul.c: Also test xstrtoul.
40309         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40310         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40311         * tests/test-xstrtol.sh: Drive the tests.
40312         * tests/test-xstrtoimax.sh: Likewise.
40313         * tests/test-xstrtoumax.sh: Likewise.
40314         * modules/xstrtol-tests: New module.
40315         * modules/xstrtoimax-tests: Likewise.
40316         * modules/xstrtoumax-tests: Likewise.
40317
40318 2007-08-08  Jim Meyering  <jim@meyering.net>
40319
40320         New function: mfile_name_concat.
40321         * lib/filenamecat.c (mfile_name_concat): New function, just like
40322         file_name_concat, but return NULL upon failure rather than exiting
40323         with a diagnostic.
40324         * lib/filenamecat.h: Declare it.
40325
40326 2007-08-07  Bruno Haible  <bruno@clisp.org>
40327
40328         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40329         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40330         warning from gcc.
40331         Reported by Eric Blake.
40332
40333 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40334
40335         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40336         * modules/crypto/arcfour (License): Likewise.
40337         * modules/crypto/des-tests (License): Likewise.
40338         * modules/crypto/gc-arctwo-tests (License): Likewise.
40339         * modules/crypto/gc-des-tests (License): Likewise.
40340         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40341         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40342         * modules/crypto/gc-md2-tests (License): Likewise.
40343         * modules/crypto/gc-md4-tests (License): Likewise.
40344         * modules/crypto/gc-md5-tests (License): Likewise.
40345         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40346         * modules/crypto/gc-rijndael-tests (License): Likewise.
40347         * modules/crypto/gc-sha1-tests (License): Likewise.
40348         * modules/crypto/gc-tests (License): Likewise.
40349         * modules/crypto/hmac-md5 (License): Likewise.
40350         * modules/crypto/hmac-sha1 (License): Likewise.
40351         * modules/crypto/md2-tests (License): Likewise.
40352         * modules/crypto/md4-tests (License): Likewise.
40353         * modules/crypto/md5 (License): Likewise.
40354         * modules/crypto/rijndael (License): Likewise.
40355         * modules/crypto/sha1 (License): Likewise.
40356         * modules/memxor (License): Likewise.
40357
40358 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40359         and Bruno Haible  <bruno@clisp.org>
40360
40361         * NEWS: Describe interface changes to human, xstrtol.
40362         * lib/human.h: Include <xstrtol.h>.
40363         (human_options): Return enum strtol_error, not int.  Remove
40364         bool arg; take int * instead.
40365         * lib/human.c: Don't include "gettext.h".
40366         (_): Remove; no longer used.
40367         Don't include <xstrtol.h>, since human.h does it.
40368         (human_options): Adjust to abovementioned interface changes.
40369         Do not report error to stderr; that's now the caller's
40370         responsibility.
40371         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40372         interface change.
40373         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40374         Str, Argument_type_string.  All uses changed.  Put " argument"
40375         in diagnostics to make them clearer.  Change wording of suffix
40376         message for clarity.
40377         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40378         Argument_type_string.
40379         (STRTOL_FATAL_WARN): Remove; no longer used.
40380         * modules/human (Depends-on): Remove gettext-h.
40381
40382 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40383
40384         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40385
40386 2007-07-31  Bruno Haible  <bruno@clisp.org>
40387
40388         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40389         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40390         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40391
40392 2007-07-31  Bruno Haible  <bruno@clisp.org>
40393
40394         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40395         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40396
40397 2007-07-30  Bruno Haible  <bruno@clisp.org>
40398
40399         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40400         * modules/c-ctype (License): Likewise.
40401         * modules/c-strcase (License): Likewise.
40402         * modules/check-version (License): Likewise.
40403         * modules/iconv (License): Likewise.
40404         * modules/iconv_open (License): Likewise.
40405         * modules/read-file (License): Likewise.
40406         * modules/striconv (License): Likewise.
40407         * modules/strverscmp (License): Likewise.
40408         * modules/vasprintf (License): Likewise.
40409         * modules/crypto/des (License): Likewise.
40410         * modules/crypto/gc (License): Likewise.
40411         * modules/crypto/gc-arcfour (License): Likewise.
40412         * modules/crypto/gc-arctwo (License): Likewise.
40413         * modules/crypto/gc-des (License): Likewise.
40414         * modules/crypto/gc-hmac-md5 (License): Likewise.
40415         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40416         * modules/crypto/gc-md2 (License): Likewise.
40417         * modules/crypto/gc-md4 (License): Likewise.
40418         * modules/crypto/gc-md5 (License): Likewise.
40419         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40420         * modules/crypto/gc-random (License): Likewise.
40421         * modules/crypto/gc-rijndael (License): Likewise.
40422         * modules/crypto/gc-sha1 (License): Likewise.
40423         * modules/crypto/md2 (License): Likewise.
40424         * modules/crypto/md4 (License): Likewise.
40425
40426 2007-07-30  Jim Meyering  <jim@meyering.net>
40427
40428         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40429         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40430         it has valid stat data.  This bug would cause du not to count the
40431         sizes of inaccessible directories.
40432         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40433         in <http://bugzilla.redhat.com/250077>.
40434
40435 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40436             Bruno Haible  <bruno@clisp.org>
40437
40438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40439         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40440         #include_next, gives a diagnostic about it, but reports no error in
40441         the exit code.
40442         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40443
40444 2007-07-24  Ben Pfaff  <blp@gnu.org>
40445
40446         Improve name: "count-one-bits" is better than "popcount".
40447         * MODULES.html.sh: Update name.
40448         * lib/popcount.h: Renamed lib/count-one-bits.h.
40449         (popcount): Renamed count_one_bits.
40450         (popcountl): Renamed count_one_bits_l.
40451         (popcountll): Renamed count_one_bits_ll.
40452         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40453         * modules/popcount: Renamed module/count-one-bits.
40454         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40455         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40456
40457 2007-07-23  Ben Pfaff  <blp@gnu.org>
40458
40459         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40460         better code generation, and add U to large constants to avoid
40461         warnings, in non-GCC case.
40462         Suggested by Bruno Haible.
40463
40464 2007-07-23  Ben Pfaff  <blp@gnu.org>
40465
40466         * lib/popcount.h: Use verify_true instead of if...abort.
40467         * modules/popcount: Depend on verify module.
40468         Suggested by Jim Meyering.
40469
40470 2007-07-23  Bruno Haible  <bruno@clisp.org>
40471
40472         * gnulib-tool (func_import): Create a .cvsignore file also when the
40473         directory is not yet in CVS but the toplevel directory is. When
40474         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40475         Reported by Karl Berry.
40476
40477 2007-07-22  Ben Pfaff  <blp@gnu.org>
40478
40479         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40480         case.
40481         Suggested by Eric Blake.
40482
40483 2007-07-22  Ben Pfaff  <blp@gnu.org>
40484
40485         New module: popcount.
40486         * MODULES.html.sh: Add popcount.
40487         * modules/popcount: New file.
40488         * modules/popcount-tests: New file.
40489         * tests/test-popcount.c: New file.
40490         * lib/popcount.h: New file.
40491         * m4/popcount.m4: New file.
40492
40493 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40494
40495         * build-aux/announce-gen: Update to GPLv3.
40496
40497         * build-aux/config.guess: Update from config.
40498
40499 2007-07-21  Bruno Haible  <bruno@clisp.org>
40500
40501         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40502         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40503
40504 2007-07-20  Jim Meyering  <jim@meyering.net>
40505
40506         * check-module: Diagnose a self-dependency.
40507
40508 2007-07-19  Bruno Haible  <bruno@clisp.org>
40509
40510         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40511         empty.
40512         Reported by Eric Blake.
40513
40514 2007-07-18  Bruno Haible  <bruno@clisp.org>
40515
40516         * gnulib-tool: New options --po-base, --po-domain.
40517         (func_usage): Document them.
40518         (pobase, po_domain): New variables.
40519         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40520         DEFAULT_TEXT_DOMAIN.
40521         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40522         (func_import): Consider pobase and po_domain. Create a po/ directory.
40523         (func_create_testdir): Set pobase and po_domain to empty.
40524         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40525         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40526
40527 2007-07-18  Bruno Haible  <bruno@clisp.org>
40528
40529         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40530         EXTRA_DIST augmentation for files in build-aux/.
40531
40532 2007-07-16  Bruno Haible  <bruno@clisp.org>
40533
40534         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40535         * modules/getdelim (License): Likewise.
40536
40537 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40538
40539         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40540         * modules/d-type (License): Likewise.
40541         * modules/extensions (License): Likewise.
40542         * modules/fnmatch (License): Likewise.
40543         * modules/fseeko (License): Likewise.
40544         * modules/getaddrinfo (License): Likewise.
40545         * modules/getline (License): Likewise.
40546         * modules/getlogin_r (License): Likewise.
40547         * modules/getpass (License): Likewise.
40548         * modules/gettimeofday (License): Likewise.
40549         * modules/glob (License): Likewise.
40550         * modules/inet_ntop (License): Likewise.
40551         * modules/malloc (License): Likewise.
40552         * modules/malloca (License): Likewise.
40553         * modules/memmem (License): Likewise.
40554         * modules/mempcpy (License): Likewise.
40555         * modules/memset (License): Likewise.
40556         * modules/minmax (License): Likewise.
40557         * modules/mktime (License): Likewise.
40558         * modules/netinet_in (License): Likewise.
40559         * modules/pathmax (License): Likewise.
40560         * modules/poll (License): Likewise.
40561         * modules/regex (License): Likewise.
40562         * modules/snprintf (License): Likewise.
40563         * modules/stdbool (License): Likewise.
40564         * modules/stdint (License): Likewise.
40565         * modules/stdio (License): Likewise.
40566         * modules/strcase (License): Likewise.
40567         * modules/strcasestr (License): Likewise.
40568         * modules/strdup (License): Likewise.
40569         * modules/string (License): Likewise.
40570         * modules/strndup (License): Likewise.
40571         * modules/strnlen (License): Likewise.
40572         * modules/strpbrk (License): Likewise.
40573         * modules/strptime (License): Likewise.
40574         * modules/strsep (License): Likewise.
40575         * modules/sys_select (License): Likewise.
40576         * modules/sys_socket (License): Likewise.
40577         * modules/sys_stat (License): Likewise.
40578         * modules/sys_time (License): Likewise.
40579         * modules/time (License): Likewise.
40580         * modules/time_r (License): Likewise.
40581         * modules/timegm (License): Likewise.
40582         * modules/unistd (License): Likewise.
40583         * modules/vsnprintf (License): Likewise.
40584         * modules/wctype (License): Likewise.
40585
40586 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40587
40588         * modules/argz (License): LGPLv2+.
40589
40590 2007-07-15  Karl Berry  <karl@gnu.org>
40591
40592         * doc/gnulib.texi: revise node structure per new fdl.texi.
40593
40594 2007-07-14  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40597         the output file.
40598         * lib/uniname/uninames.h: Regenerated.
40599
40600 2007-07-14  Karl Berry  <karl@gnu.org>
40601
40602         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40603         omitting sectioning and index commands.
40604
40605 2007-07-13  Bruno Haible  <bruno@clisp.org>
40606
40607         New gnulib-tool option --more-symlinks.
40608         * gnulib-tool (func_usage): Document --more-symlinks.
40609         (do_copyrights): New variable.
40610         Recognize option --more-symlinks.
40611         (func_import): Don't add a copyright notice transform to
40612         sed_transform_lib_file if do_copyrights is empty.
40613
40614 2007-07-13  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/vasnprintf.c (decimal_point_char): Define also if
40617         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40618         && !NEED_PRINTF_DIRECTIVE_A.
40619         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40620         Gary V. Vaughan <gary@gnu.org>.
40621
40622 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40623
40624         * lib/inttypes_.h: Undo previous change, since it was fixed
40625         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40626
40627 2007-07-13  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40630         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40631
40632 2007-07-13  Jim Meyering  <jim@meyering.net>
40633
40634         df: Don't fail for Tru64's "file-on-file mount".
40635         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40636         so we fall through and use statfs instead.  Details here:
40637         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40638         Reported by Albert Chin.
40639
40640 2007-07-13  Bruno Haible  <bruno@clisp.org>
40641
40642         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40643         * modules/configmake (License): Likewise.
40644         * modules/gettext (License): Likewise.
40645         * modules/gettext-h (License): Likewise.
40646         * modules/include_next (License): Likewise.
40647         * modules/link-warning (License): Likewise.
40648         * modules/localcharset (License): Likewise.
40649         * modules/localename (License): Likewise.
40650         * modules/lock (License): Likewise.
40651         * modules/relocatable-lib-lgpl (License): Likewise.
40652         * modules/size_max (License): Likewise.
40653         * modules/vasnprintf (License): Likewise.
40654         * modules/wchar (License): Likewise.
40655         * modules/xsize (License): Likewise.
40656
40657 2007-07-13  Bruno Haible  <bruno@clisp.org>
40658
40659         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40660         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40661
40662 2007-07-12  Bruno Haible  <bruno@clisp.org>
40663
40664         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40665         in the modules files.
40666
40667 2007-07-11  Karl Berry  <karl@gnu.org>
40668
40669         * MODULES.html.sh (func_module): use
40670          sed -e '\|^'"${includefile}"'$|d'
40671          instead of /.../d, to avoid errors on $includefile's containing /.
40672
40673 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40674
40675         * gnulib-tool (func_import): Avoid duplication of --avoid
40676         statements
40677         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40678         names to `_' in variable names.
40679
40680 2007-07-10  Eric Blake  <ebb9@byu.net>
40681
40682         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40683         * NEWS: Document this change.
40684
40685 2007-07-08  Bruno Haible  <bruno@clisp.org>
40686
40687         Update to Unicode 5.0.
40688         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40689         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40690         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40691         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40692         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40693         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40694         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40695         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40696         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40697         U+10A3F, U+1D242..U+1D244.
40698         (nonspacing_table_ind): Update.
40699         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40700         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40701
40702 2007-07-08  Bruno Haible  <bruno@clisp.org>
40703
40704         Update to Unicode 5.0.
40705         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40706         code transform. Extend the name index field of unicode_name_to_code and
40707         unicode_code_to_name from 16 to 24 bits.
40708         * lib/uniname/uniname.c (unicode_character_name,
40709         unicode_name_character): Add the range 0x12xxx to the code transform.
40710         * lib/uniname/uninames.h: Regenerated.
40711         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40712
40713 2007-07-07  Bruno Haible  <bruno@clisp.org>
40714
40715         * modules/wcwidth-tests: New file.
40716         * tests/test-wcwidth.c: New file.
40717
40718         Work around MacOS X wcwidth() bug.
40719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40720         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40721         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40722         original wcwidth in non-UTF-8 locales.
40723         * modules/wcwidth (Depends-on): Add localcharset, streq,
40724         uniwidth/width.
40725         * doc/functions/wcwidth.texi: Update.
40726
40727 2007-07-07  Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40730         (wcwidth): New declaration.
40731         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40732         macros.
40733         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40734         here. Prepare for creating <wchar.h> unconditionally.
40735         * modules/wchar (Depends-on): Add link-warning.
40736         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40737         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40738         * lib/wcwidth.h: Remove file.
40739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40740         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40741         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40742         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40743         (Include): Replace wcwidth.h with <wchar.h>.
40744         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40745         * lib/mbchar.h: Don't include wcwidth.h.
40746         * lib/mbswidth.c: Likewise.
40747         * NEWS: Mention the change.
40748
40749 2007-07-07  Bruno Haible  <bruno@clisp.org>
40750
40751         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40752         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40753         definition with an external declaration.
40754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40755         defined as a function. Remove AC_C_INLINE requirement.
40756         * modules/wcwidth (Files): Add lib/wcwidth.c.
40757         (Makefile.am): Remove redundant statement.
40758
40759 2007-07-07  Bruno Haible  <bruno@clisp.org>
40760
40761         * MODULES.html.sh (Unicode string functions): Add the new modules.
40762
40763         * tests/uniwidth/test-u32-strwidth.c: New file.
40764         * modules/uniwidth/u32-strwidth-tests: New file.
40765
40766         * lib/uniwidth/u32-strwidth.c: New file.
40767         * modules/uniwidth/u32-strwidth: New file.
40768
40769         * tests/uniwidth/test-u16-strwidth.c: New file.
40770         * modules/uniwidth/u16-strwidth-tests: New file.
40771
40772         * lib/uniwidth/u16-strwidth.c: New file.
40773         * modules/uniwidth/u16-strwidth: New file.
40774
40775         * tests/uniwidth/test-u8-strwidth.c: New file.
40776         * modules/uniwidth/u8-strwidth-tests: New file.
40777
40778         * lib/uniwidth/u8-strwidth.c: New file.
40779         * modules/uniwidth/u8-strwidth: New file.
40780
40781         * tests/uniwidth/test-u32-width.c: New file.
40782         * modules/uniwidth/u32-width-tests: New file.
40783
40784         * lib/uniwidth/u32-width.c: New file.
40785         * modules/uniwidth/u32-width: New file.
40786
40787         * tests/uniwidth/test-u16-width.c: New file.
40788         * modules/uniwidth/u16-width-tests: New file.
40789
40790         * lib/uniwidth/u16-width.c: New file.
40791         * modules/uniwidth/u16-width: New file.
40792
40793         * tests/uniwidth/test-u8-width.c: New file.
40794         * modules/uniwidth/u8-width-tests: New file.
40795
40796         * lib/uniwidth/u8-width.c: New file.
40797         * modules/uniwidth/u8-width: New file.
40798
40799         * tests/uniwidth/test-uc_width.c: New file.
40800         * modules/uniwidth/width-tests: New file.
40801
40802         * lib/uniwidth/width.c: New file, from GNU libiconv.
40803         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40804         * modules/uniwidth/width: New file.
40805
40806         * lib/uniwidth.h: New file, from GNU libiconv.
40807         * modules/uniwidth/base: New file.
40808
40809 2007-07-07  Bruno Haible  <bruno@clisp.org>
40810
40811         * lib/uniname.h: New file, from GNU gettext.
40812         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40813         * lib/uniname/uninames.h: New file, from GNU gettext.
40814         * lib/uniname/uniname.c: New file, from GNU gettext.
40815         * tests/uniname/test-uninames.sh: New file.
40816         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40817         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40818         * modules/uniname/base: New file.
40819         * modules/uniname/uniname: New file.
40820         * modules/uniname/uniname-tests: New file.
40821         * MODULES.html.sh (Unicode string functions): Add the new modules.
40822
40823 2007-07-06  Bruno Haible  <bruno@clisp.org>
40824
40825         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40826
40827 2007-07-06  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40830         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40831         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40832         include <sys/time.h>.
40833         Reported by Eric Blake.
40834
40835 2007-07-06  Eric Blake  <ebb9@byu.net>
40836
40837         Fix testing canonicalize on cygwin.
40838         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40839         Revert patch from 2007-06-19.
40840         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40841         canonicalize module is also in use.
40842         * tests/test-canonicalize.c: New file.
40843         * tests/test-canonicalize.sh: Likewise.
40844         * modules/canonicalize-tests: Likewise.
40845
40846 2007-07-06  Jim Meyering  <jim@meyering.net>
40847
40848         * lib/getugroups.c (getugroups): Detect getgrent failure.
40849         Adjust comment to reflect reality: this function may return -1.
40850
40851 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40852
40853         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40854         the new TP address.
40855         (usage): Fix typo
40856         (gnulib_mk): New variable.
40857
40858 2007-07-05  Jim Meyering  <jim@meyering.net>
40859
40860         Don't let endgrent clobber errno, no matter how improbable.
40861         * lib/getugroups.c (getugroups): Save and restore errno around
40862         endgrent call.
40863
40864         Close the group DB even when failing with 2^31 or more members.
40865         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40866
40867 2007-07-04  Jim Meyering  <jim@meyering.net>
40868
40869         * lib/getugroups.h: New file.
40870         * lib/getugroups.c: Include "getugroups.h".
40871         Remove uses of "register" keyword.
40872         Move local variable, "cp", down into scope where used.
40873         Give "username" parameter the "const" attribute.
40874         * modules/getugroups (Files): Add lib/getugroups.h
40875
40876 2007-07-04  Karl Berry  <karl@gnu.org>
40877
40878         * MODULES.html.sh (func_all_modules): Complete rename of
40879         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40880
40881 2007-07-02  Bruno Haible  <bruno@clisp.org>
40882
40883         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40884         mode, when inttypes.h comes from gnulib.
40885         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40886
40887 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40888
40889         * NEWS: Mention lgpl module name change.
40890
40891         * modules/lgpl-2.1: Renamed from lgpl.
40892
40893         * NEWS: Mention gpl module name change.
40894
40895         * modules/gpl-3.0: New file, based on gpl-2.0.
40896
40897         * modules/gpl-2.0: Renamed from gpl.
40898
40899         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40900         doc/gpl-2.0.texi.
40901
40902 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40903
40904         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40905         #define __STDC_LIMIT_MACROS temporarily while including
40906         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40907         Problem reported by Joel E. Denny in
40908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40909
40910 2007-07-01  Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/unistdio.h: New file.
40913         * lib/unistdio/u-asnprintf.h: New file.
40914         * lib/unistdio/u-asprintf.h: New file.
40915         * lib/unistdio/u-printf-args.c: New file.
40916         * lib/unistdio/u-printf-args.h: New file.
40917         * lib/unistdio/u-printf-parse.h: New file.
40918         * lib/unistdio/u-snprintf.h: New file.
40919         * lib/unistdio/u-sprintf.h: New file.
40920         * lib/unistdio/u-vasprintf.h: New file.
40921         * lib/unistdio/u-vsnprintf.h: New file.
40922         * lib/unistdio/u-vsprintf.h: New file.
40923         * lib/unistdio/ulc-asnprintf.c: New file.
40924         * lib/unistdio/ulc-asprintf.c: New file.
40925         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40926         * lib/unistdio/ulc-printf-parse.c: New file.
40927         * lib/unistdio/ulc-snprintf.c: New file.
40928         * lib/unistdio/ulc-sprintf.c: New file.
40929         * lib/unistdio/ulc-vasnprintf.c: New file.
40930         * lib/unistdio/ulc-vasprintf.c: New file.
40931         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40932         * lib/unistdio/ulc-vsnprintf.c: New file.
40933         * lib/unistdio/ulc-vsprintf.c: New file.
40934         * lib/unistdio/u8-asnprintf.c: New file.
40935         * lib/unistdio/u8-asprintf.c: New file.
40936         * lib/unistdio/u8-printf-parse.c: New file.
40937         * lib/unistdio/u8-snprintf.c: New file.
40938         * lib/unistdio/u8-sprintf.c: New file.
40939         * lib/unistdio/u8-vasnprintf.c: New file.
40940         * lib/unistdio/u8-vasprintf.c: New file.
40941         * lib/unistdio/u8-vsnprintf.c: New file.
40942         * lib/unistdio/u8-vsprintf.c: New file.
40943         * lib/unistdio/u8-u8-asnprintf.c: New file.
40944         * lib/unistdio/u8-u8-asprintf.c: New file.
40945         * lib/unistdio/u8-u8-snprintf.c: New file.
40946         * lib/unistdio/u8-u8-sprintf.c: New file.
40947         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40948         * lib/unistdio/u8-u8-vasprintf.c: New file.
40949         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40950         * lib/unistdio/u8-u8-vsprintf.c: New file.
40951         * lib/unistdio/u16-asnprintf.c: New file.
40952         * lib/unistdio/u16-asprintf.c: New file.
40953         * lib/unistdio/u16-printf-parse.c: New file.
40954         * lib/unistdio/u16-snprintf.c: New file.
40955         * lib/unistdio/u16-sprintf.c: New file.
40956         * lib/unistdio/u16-vasnprintf.c: New file.
40957         * lib/unistdio/u16-vasprintf.c: New file.
40958         * lib/unistdio/u16-vsnprintf.c: New file.
40959         * lib/unistdio/u16-vsprintf.c: New file.
40960         * lib/unistdio/u16-u16-asnprintf.c: New file.
40961         * lib/unistdio/u16-u16-asprintf.c: New file.
40962         * lib/unistdio/u16-u16-snprintf.c: New file.
40963         * lib/unistdio/u16-u16-sprintf.c: New file.
40964         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40965         * lib/unistdio/u16-u16-vasprintf.c: New file.
40966         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40967         * lib/unistdio/u16-u16-vsprintf.c: New file.
40968         * lib/unistdio/u32-asnprintf.c: New file.
40969         * lib/unistdio/u32-asprintf.c: New file.
40970         * lib/unistdio/u32-printf-parse.c: New file.
40971         * lib/unistdio/u32-snprintf.c: New file.
40972         * lib/unistdio/u32-sprintf.c: New file.
40973         * lib/unistdio/u32-vasnprintf.c: New file.
40974         * lib/unistdio/u32-vasprintf.c: New file.
40975         * lib/unistdio/u32-vsnprintf.c: New file.
40976         * lib/unistdio/u32-vsprintf.c: New file.
40977         * lib/unistdio/u32-u32-asnprintf.c: New file.
40978         * lib/unistdio/u32-u32-asprintf.c: New file.
40979         * lib/unistdio/u32-u32-snprintf.c: New file.
40980         * lib/unistdio/u32-u32-sprintf.c: New file.
40981         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40982         * lib/unistdio/u32-u32-vasprintf.c: New file.
40983         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40984         * lib/unistdio/u32-u32-vsprintf.c: New file.
40985         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40986         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40987         * tests/unistdio/test-ulc-printf1.h: New file.
40988         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40989         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40990         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40991         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40992         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40993         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40994         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40995         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40996         * tests/unistdio/test-u8-asnprintf1.c: New file.
40997         * tests/unistdio/test-u8-asnprintf1.h: New file.
40998         * tests/unistdio/test-u8-printf1.h: New file.
40999         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41000         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41001         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41002         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41003         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41004         * tests/unistdio/test-u8-vasprintf1.c: New file.
41005         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41006         * tests/unistdio/test-u8-vsprintf1.c: New file.
41007         * tests/unistdio/test-u16-asnprintf1.c: New file.
41008         * tests/unistdio/test-u16-asnprintf1.h: New file.
41009         * tests/unistdio/test-u16-printf1.h: New file.
41010         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41011         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41012         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41013         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41014         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41015         * tests/unistdio/test-u16-vasprintf1.c: New file.
41016         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41017         * tests/unistdio/test-u16-vsprintf1.c: New file.
41018         * tests/unistdio/test-u32-asnprintf1.c: New file.
41019         * tests/unistdio/test-u32-asnprintf1.h: New file.
41020         * tests/unistdio/test-u32-printf1.h: New file.
41021         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41022         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41023         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41024         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41025         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41026         * tests/unistdio/test-u32-vasprintf1.c: New file.
41027         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41028         * tests/unistdio/test-u32-vsprintf1.c: New file.
41029         * modules/unistdio/base: New file.
41030         * modules/unistdio/u-printf-args: New file.
41031         * modules/unistdio/ulc-asnprintf: New file.
41032         * modules/unistdio/ulc-asprintf: New file.
41033         * modules/unistdio/ulc-fprintf: New file.
41034         * modules/unistdio/ulc-printf-parse: New file.
41035         * modules/unistdio/ulc-snprintf: New file.
41036         * modules/unistdio/ulc-sprintf: New file.
41037         * modules/unistdio/ulc-vasnprintf: New file.
41038         * modules/unistdio/ulc-vasprintf: New file.
41039         * modules/unistdio/ulc-vfprintf: New file.
41040         * modules/unistdio/ulc-vsnprintf: New file.
41041         * modules/unistdio/ulc-vsprintf: New file.
41042         * modules/unistdio/u8-asnprintf: New file.
41043         * modules/unistdio/u8-asprintf: New file.
41044         * modules/unistdio/u8-printf-parse: New file.
41045         * modules/unistdio/u8-snprintf: New file.
41046         * modules/unistdio/u8-sprintf: New file.
41047         * modules/unistdio/u8-vasnprintf: New file.
41048         * modules/unistdio/u8-vasprintf: New file.
41049         * modules/unistdio/u8-vsnprintf: New file.
41050         * modules/unistdio/u8-vsprintf: New file.
41051         * modules/unistdio/u8-u8-asnprintf: New file.
41052         * modules/unistdio/u8-u8-asprintf: New file.
41053         * modules/unistdio/u8-u8-snprintf: New file.
41054         * modules/unistdio/u8-u8-sprintf: New file.
41055         * modules/unistdio/u8-u8-vasnprintf: New file.
41056         * modules/unistdio/u8-u8-vasprintf: New file.
41057         * modules/unistdio/u8-u8-vsnprintf: New file.
41058         * modules/unistdio/u8-u8-vsprintf: New file.
41059         * modules/unistdio/u16-asnprintf: New file.
41060         * modules/unistdio/u16-asprintf: New file.
41061         * modules/unistdio/u16-printf-parse: New file.
41062         * modules/unistdio/u16-snprintf: New file.
41063         * modules/unistdio/u16-sprintf: New file.
41064         * modules/unistdio/u16-vasnprintf: New file.
41065         * modules/unistdio/u16-vasprintf: New file.
41066         * modules/unistdio/u16-vsnprintf: New file.
41067         * modules/unistdio/u16-vsprintf: New file.
41068         * modules/unistdio/u16-u16-asnprintf: New file.
41069         * modules/unistdio/u16-u16-asprintf: New file.
41070         * modules/unistdio/u16-u16-snprintf: New file.
41071         * modules/unistdio/u16-u16-sprintf: New file.
41072         * modules/unistdio/u16-u16-vasnprintf: New file.
41073         * modules/unistdio/u16-u16-vasprintf: New file.
41074         * modules/unistdio/u16-u16-vsnprintf: New file.
41075         * modules/unistdio/u16-u16-vsprintf: New file.
41076         * modules/unistdio/u32-asnprintf: New file.
41077         * modules/unistdio/u32-asprintf: New file.
41078         * modules/unistdio/u32-printf-parse: New file.
41079         * modules/unistdio/u32-snprintf: New file.
41080         * modules/unistdio/u32-sprintf: New file.
41081         * modules/unistdio/u32-vasnprintf: New file.
41082         * modules/unistdio/u32-vasprintf: New file.
41083         * modules/unistdio/u32-vsnprintf: New file.
41084         * modules/unistdio/u32-vsprintf: New file.
41085         * modules/unistdio/u32-u32-asnprintf: New file.
41086         * modules/unistdio/u32-u32-asprintf: New file.
41087         * modules/unistdio/u32-u32-snprintf: New file.
41088         * modules/unistdio/u32-u32-sprintf: New file.
41089         * modules/unistdio/u32-u32-vasnprintf: New file.
41090         * modules/unistdio/u32-u32-vasprintf: New file.
41091         * modules/unistdio/u32-u32-vsnprintf: New file.
41092         * modules/unistdio/u32-u32-vsprintf: New file.
41093         * modules/unistdio/ulc-asnprintf-tests: New file.
41094         * modules/unistdio/ulc-vasnprintf-tests: New file.
41095         * modules/unistdio/ulc-vasprintf-tests: New file.
41096         * modules/unistdio/ulc-vsnprintf-tests: New file.
41097         * modules/unistdio/ulc-vsprintf-tests: New file.
41098         * modules/unistdio/u8-asnprintf-tests: New file.
41099         * modules/unistdio/u8-vasnprintf-tests: New file.
41100         * modules/unistdio/u8-vasprintf-tests: New file.
41101         * modules/unistdio/u8-vsnprintf-tests: New file.
41102         * modules/unistdio/u8-vsprintf-tests: New file.
41103         * modules/unistdio/u16-asnprintf-tests: New file.
41104         * modules/unistdio/u16-vasnprintf-tests: New file.
41105         * modules/unistdio/u16-vasprintf-tests: New file.
41106         * modules/unistdio/u16-vsnprintf-tests: New file.
41107         * modules/unistdio/u16-vsprintf-tests: New file.
41108         * modules/unistdio/u32-asnprintf-tests: New file.
41109         * modules/unistdio/u32-vasnprintf-tests: New file.
41110         * modules/unistdio/u32-vasprintf-tests: New file.
41111         * modules/unistdio/u32-vsnprintf-tests: New file.
41112         * modules/unistdio/u32-vsprintf-tests: New file.
41113         * MODULES.html.sh (Unicode string functions): Add the new modules.
41114
41115 2007-07-01  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/sprintf.c (sprintf): Limit the available length estimation,
41118         to avoid address wraparound.
41119         * lib/vsprintf.c (vsprintf): Likewise.
41120         * modules/sprintf-posix (Dependencies): Add stdint.
41121         * modules/vsprintf-posix (Dependencies): Likewise.
41122
41123 2007-07-01  Bruno Haible  <bruno@clisp.org>
41124
41125         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41126         Windows PATH as well. Conservative double-quoting. Comments.
41127
41128 2007-07-01  Bruno Haible  <bruno@clisp.org>
41129             Eric Blake  <ebb9@byu.net>
41130             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41131
41132         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41133         empty components in $PATH, denoting '.'.
41134
41135 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41136
41137         * gnulib-tool: Fix indentation.
41138         (func_create_megatestdir): Likewise.
41139         Report by Bruno Haible.
41140
41141 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41142
41143         Sync from Automake.
41144         * build-aux/gnupload: Fix shell portability issues with for loops.
41145         Report by Karl Berry.
41146
41147 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41148
41149         * build-aux/maint.mk (POURL): Use translationproject.org.
41150
41151 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41152             Bruno Haible  <bruno@clisp.org>
41153
41154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41155         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41156         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41157         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41158         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41159
41160 2007-06-27  Bruno Haible  <bruno@clisp.org>
41161
41162         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41163         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41164
41165 2007-06-26  Karl Berry  <karl@gnu.org>
41166
41167         * MODULES.html.sh: remove xreadlink-with-size.
41168
41169 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41170
41171         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41172         method that I hope also handles the double-include problem noted
41173         by Bruno Haible in
41174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41175
41176 2007-06-23  Bruno Haible  <bruno@clisp.org>
41177
41178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41179         Don't let the 'mostlyclean' target fail if the last subdirectory could
41180         not be removed.
41181         Reported by Karl Berry.
41182
41183 2007-06-23  Bruno Haible  <bruno@clisp.org>
41184
41185         * gnulib-tool (echo): Add a speedier workaround for ksh.
41186         * tests/test-echo.sh: Likewise.
41187
41188 2007-06-23  Bruno Haible  <bruno@clisp.org>
41189
41190         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41191         * tests/test-echo.sh: Likewise.
41192
41193 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41194
41195         * gnulib-tool (IFS): Initialize early, so we don't set it to
41196         empty later.
41197         (self_abspathname): Rewrite algorithm to set it, reindent.
41198         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41199         (func_create_megatestdir): Merge some sed scripts.
41200
41201 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41202
41203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41204         exposed by Sun Studio 11 cc on Solaris 8.
41205
41206 2007-06-22  Bruno Haible  <bruno@clisp.org>
41207
41208         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41209         backslashes.
41210         * tests/test-echo.sh: New file.
41211
41212 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41213
41214         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41215         simplify `sed_replace_build_aux' scripts, they are portable but
41216         echoing them with `echo' is not.
41217         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41218
41219 2007-06-21  Karl Berry  <karl@gnu.org>
41220
41221         * config/srclist.txt: guess we can't handle the licenses via
41222         srclist at the moment.
41223
41224 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41225
41226         * MODULES.html.sh: Add include_next.
41227         * modules/include_next: New file.
41228
41229 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41230
41231         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41232         INCLUDE_NEXT.
41233         (gl_CHECK_NEXT_HEADERS): New macro.
41234         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41235         the obsolescent gl_ABSOLUTE_HEADER.
41236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41237         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41238         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41240         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41241         * m4/math_h.m4 (gl_MATH_H): Likewise.
41242         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41243         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41244         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41245         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41246         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41247         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41248         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41251         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41252         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41253         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41254         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41255         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41256         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41257         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41258         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41259         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41260         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41261         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41262         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41263         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41264         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41265         * lib/float_.h: Likewise.
41266         * lib/inttypes_.h: Likewise.
41267         * lib/math_.h: Likewise.
41268         * lib/search_.h: Likewise.
41269         * lib/signal_.h: Likewise.
41270         * lib/stdint_.h: Likewise.
41271         * lib/stdio_.h: Likewise.
41272         * lib/stdlib_.h: Likewise.
41273         * lib/string_.h: Likewise.
41274         * lib/sys_stat_.h: Likewise.
41275         * lib/sys_time_.h: Likewise.
41276         * lib/time_.h: Likewise.
41277         * lib/unistd_.h: Likewise.
41278         * lib/wchar_.h: Likewise.
41279         * lib/wctype_.h: Likewise.
41280         * lib/dirent_.h: Likewise.
41281         * lib/iconv_.h: Likewise.
41282         * lib/locale_.h: Likewise.
41283         * lib/netinet_in_.h: Likewise.
41284         * lib/sys_select_.h: Likewise.
41285         * lib/sys_socket_.h: Likewise.
41286         * lib/sysexits_.h: Likewise.
41287         * modules/fcntl (Depends-on): Depend on include_next, not
41288         absolute_header.
41289         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41290         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41291         * modules/fchdir: Likewise.
41292         * modules/float: Likewise.
41293         * modules/iconv_open: Likewise.
41294         * modules/inttypes: Likewise.
41295         * modules/locale: Likewise.
41296         * modules/math: Likewise.
41297         * modules/netinet_in: Likewise.
41298         * modules/search: Likewise.
41299         * modules/signal: Likewise.
41300         * modules/stdint: Likewise.
41301         * modules/stdio: Likewise.
41302         * modules/stdlib: Likewise.
41303         * modules/string: Likewise.
41304         * modules/sys_select: Likewise.
41305         * modules/sys_socket: Likewise.
41306         * modules/sys_stat: Likewise.
41307         * modules/sys_time: Likewise.
41308         * modules/sysexits: Likewise.
41309         * modules/time: Likewise.
41310         * modules/unistd: Likewise.
41311         * modules/wchar: Likewise.
41312         * modules/wctype: Likewise.
41313         * modules/sys_stat: Change maintainer to "all".
41314         * modules/unistd: Likewise.
41315
41316 2007-06-20  Karl Berry  <karl@gnu.org>
41317
41318         * config/srclist.txt: track www changes in license files.
41319
41320 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41321
41322         * build-aux/bootstrap: Remove stray dot.
41323         Make sure build_aux settings are honored when linking
41324         gnulib_extra_files.
41325
41326 2007-06-19  Eric Blake  <ebb9@byu.net>
41327
41328         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41329         Allow compilation on cygwin.
41330
41331 2007-06-19  Jim Meyering  <jim@meyering.net>
41332
41333         xreadlink-with-size: Remove module.  No longer used.
41334         Ex-callers now use xreadlink or mreadlink-with-size.
41335         * modules/xreadlink-with-size: Remove module.
41336         * lib/xreadlink-with-size.c: Remove file.
41337         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41338         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41339         just before the function definition *is* accurate.
41340
41341         Eliminate one way canonicalize_filename_mode could exit.
41342         * lib/canonicalize.c (canonicalize_filename_mode):
41343         Use mreadlink_with_size, not xreadlink_with_size.
41344
41345 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41346
41347         Detect porting problems to FreeBSD/arm, which has time_t wider than
41348         long int.  Original problem reported for GNU diff by Xin Li in
41349         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41350         * modules/getdate (Depends-on): Add intprops, verify.
41351         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41352         is an integer type no wider than long int.
41353
41354 2007-06-18  Jim Meyering  <jim@meyering.net>
41355
41356         New module: mreadlink-with-size.
41357         * MODULES.html.sh: Add mreadlink-with-size.
41358         * modules/mreadlink-with-size: New module
41359         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41360         not xreadlink-with-size.
41361         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41362
41363 2007-06-16  Bruno Haible  <bruno@clisp.org>
41364
41365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41366         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41367         Reported by Gary V. Vaughan <gary@gnu.org>.
41368
41369 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41370
41371         Revamp lchown so that it lives in unistd.h where it belongs.
41372         * lib/lchown.h: Remove.
41373         * lib/dirchownmod.c: Don't include lib/lchown.h.
41374         * lib/fchownat.c: Likewise.
41375         * lib/openat.c: Likewise.
41376         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41377         does not follow symlinks.
41378         (EOPNOTSUPP): Define if not defined.
41379         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41380         is defined to 0.
41381         (lchown): New decl.
41382         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41383         Do not check for lchown decl.
41384         Set REPLACE_LCHOWN.
41385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41386         REPLACE_LCHOWN.
41387         * modules/chown: Make it clear it follows symlinks.
41388         * modules/lchown: Make it clear it doesn't follow symlinks.
41389         (Files): Remove lib/lchown.h
41390         (Depends-on): Add unistd.
41391         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41392         (Include): Include <unistd.h>, not "lchown.h".
41393         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41394         REPLACE_LCHOWN.
41395
41396 2007-06-15  Jim Meyering  <jim@meyering.net>
41397
41398         Change license (GPL to LGPL) of fsusage and dependents.
41399         * modules/fsusage (License): Change to LGPL.
41400         * modules/full-read (License): Likewise.
41401         * modules/full-write (License): Likewise.
41402         * modules/safe-read (License): Likewise.
41403         * modules/safe-write (License): Likewise.
41404
41405 2007-06-14  Ben Pfaff  <blp@gnu.org>
41406
41407         Missing part of allocsa -> malloca transition.
41408         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41409         gl_MALLOCA.
41410
41411 2007-06-12  Bruno Haible  <bruno@clisp.org>
41412
41413         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41414         to ia64, x86_64, i386.
41415         Reported by Eric Blake.
41416
41417 2007-06-12  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41420         cross-compiling to x86_64.
41421
41422 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41425         glitch reported by Ralf Wildenhues in
41426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41427
41428         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41429         Vin Shelton.
41430
41431 2007-06-11  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41434         replacement string.
41435         Reported by Eric Blake.
41436
41437 2007-06-10  Bruno Haible  <bruno@clisp.org>
41438
41439         Prepare vasnprintf code for use with Unicode strings.
41440         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41441         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41442         TYPE_U32_STRING.
41443         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41444         a_u32_string variants.
41445         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41446         * lib/printf-args.c: Don't include config.h and the specification
41447         header if PRINTF_FETCHARGS is already defined.
41448         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41449         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41450         TYPE_U16_STRING, TYPE_U32_STRING.
41451         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41452         u16_directive, u16_directives, u32_directive, u32_directives): New
41453         types.
41454         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41455         New declarations.
41456         * lib/printf-parse.c: Don't include config.h and the specification
41457         header if PRINTF_PARSE is already defined. Eliminate the set of
41458         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41459         them now. Include c-ctype.h.
41460         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41461         directive and CHAR_T_ONLY_ASCII.
41462         * lib/vasnprintf.c: Don't include config.h and the specification header
41463         if VASNPRINTF is already defined.
41464         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41465         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41466         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41467         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41468         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41469         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41470         code accordingly.
41471         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41472         pad_ourselves also in this case, with the 'c' and 's' directives, and
41473         with a different notion of "width".
41474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41475
41476 2007-06-10  Bruno Haible  <bruno@clisp.org>
41477
41478         * modules/unistr/u32-mbsnlen: New file.
41479         * lib/unistr/u32-mbsnlen.c: New file.
41480
41481         * modules/unistr/u16-mbsnlen: New file.
41482         * lib/unistr/u16-mbsnlen.c: New file.
41483
41484         * modules/unistr/u8-mbsnlen: New file.
41485         * lib/unistr/u8-mbsnlen.c: New file.
41486
41487         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41488         declarations.
41489
41490 2007-06-10  Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/string_.h (mbsnlen): New declaration.
41493         * lib/mbsnlen.c: New file.
41494         * m4/mbsnlen.m4: New file.
41495         * modules/mbsnlen: New file.
41496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41497         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41498         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41499
41500 2007-06-10  Bruno Haible  <bruno@clisp.org>
41501
41502         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41503
41504 2007-06-10  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41507         * lib/mbuiter.h: Likewise.
41508
41509 2007-06-10  Bruno Haible  <bruno@clisp.org>
41510
41511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41512         declaration.
41513
41514 2007-06-10  Karl Berry  <karl@gnu.org>
41515
41516         * config/srclist.txt: remove gettext entries, Bruno prefers
41517         to update individually.
41518
41519 2007-06-10  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41522         'maxlen'. Ensure only length + width bytes are allocated, not
41523         length + 1 + width.
41524
41525 2007-06-09  Bruno Haible  <bruno@clisp.org>
41526
41527         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41528         (CHAR_T): Remove macro.
41529         (VASNPRINTF): Update.
41530
41531 2007-06-09  Bruno Haible  <bruno@clisp.org>
41532
41533         * MODULES.html.sh (Unicode string functions): Add the new modules.
41534
41535         * modules/uniconv/u32-conv-to-enc: New file.
41536         * lib/uniconv/u32-conv-to-enc.c: New file.
41537         * modules/uniconv/u32-conv-to-enc-tests: New file.
41538         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41539
41540         * modules/uniconv/u16-conv-to-enc: New file.
41541         * lib/uniconv/u16-conv-to-enc.c: New file.
41542         * lib/uniconv/u-conv-to-enc.h: New file.
41543         * modules/uniconv/u16-conv-to-enc-tests: New file.
41544         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41545
41546         * modules/uniconv/u8-conv-to-enc: New file.
41547         * lib/uniconv/u8-conv-to-enc.c: New file.
41548         * modules/uniconv/u8-conv-to-enc-tests: New file.
41549         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41550
41551         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41552         u32_conv_to_encoding): New declarations.
41553
41554 2007-06-09  Bruno Haible  <bruno@clisp.org>
41555
41556         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41557
41558 2007-06-09  Bruno Haible  <bruno@clisp.org>
41559
41560         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41561         * modules/malloca: Renamed from modules/allocsa, updated.
41562         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41563         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41564         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41565         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41566         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41567         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41568         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41569         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41570         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41571         * modules/c-strcasestr (Depends-on): Update.
41572         * lib/c-strcasestr.c: Update.
41573         * modules/c-strstr (Depends-on): Update.
41574         * lib/c-strstr.c: Update.
41575         * modules/canonicalize-lgpl (Depends-on): Update.
41576         * lib/canonicalize-lgpl.c: Update.
41577         * modules/clean-temp (Depends-on): Update.
41578         * lib/clean-temp.c: Update.
41579         * modules/csharpcomp (Depends-on): Update.
41580         * lib/csharpcomp.c: Update.
41581         * modules/csharpexec (Depends-on): Update.
41582         * lib/csharpexec.c: Update.
41583         * modules/javacomp (Depends-on): Update.
41584         * lib/javacomp.c: Update.
41585         * modules/javaexec (Depends-on): Update.
41586         * lib/javaexec.c: Update.
41587         * modules/mbscasestr (Depends-on): Update.
41588         * lib/mbscasestr.c: Update.
41589         * modules/mbsstr (Depends-on): Update.
41590         * lib/mbsstr.c: Update.
41591         * modules/setenv (Depends-on): Update.
41592         * lib/setenv.c: Update.
41593         * modules/strcasestr (Depends-on): Update.
41594         * lib/strcasestr.c: Update.
41595         * modules/striconveha (Depends-on): Update.
41596         * lib/striconveha.c: Update.
41597         * modules/relocatable-prog-wrapper (Files): Update.
41598         * lib/relocwrapper.c: Update.
41599         * build-aux/install-reloc: Update.
41600         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41601
41602 2007-06-08  Bruno Haible  <bruno@clisp.org>
41603
41604         Port to uClibc.
41605         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41606         * lib/fpurge.c (fpurge): Likewise.
41607         * lib/freading.c (freading): Likewise.
41608         * lib/fseeko.c (rpl_fseeko): Likewise.
41609         * lib/fseterr.c (fseterr): Likewise.
41610         * lib/fwriting.c (fwriting): Likewise.
41611         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41612
41613 2007-06-08  Bruno Haible  <bruno@clisp.org>
41614
41615         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41616         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41617         * modules/gettext (Files): Add m4/intlmacosx.m4.
41618
41619 2007-06-07  Bruno Haible  <bruno@clisp.org>
41620
41621         * modules/localename-tests: New file.
41622         * tests/test-localename.c: New file.
41623
41624         New module 'localename'.
41625         * lib/localename.h: New file.
41626         * lib/localename.c: New file, from GNU gettext.
41627         * m4/localename.m4: New file.
41628         * modules/localename: New file.
41629
41630 2007-06-07  Bruno Haible  <bruno@clisp.org>
41631
41632         Work around the lack of <wchar.h> on some builds of uClibc.
41633         * doc/headers/wchar.texi: Update.
41634         * lib/wchar_.h: Include <wchar.h> only if it exists.
41635         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41636         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41637         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41638         doesn't exist.
41639         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41640         * modules/mbfile (Depends-on): Add wchar.
41641         * modules/mbiter (Depends-on): Likewise.
41642         * modules/mbuiter (Depends-on): Likewise.
41643         Reported by Simon Josefsson.
41644
41645 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41646
41647         Work around problem reported by Steven M. Schweda in
41648         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41649         Tru64 5.1B with the Compaq compiler environment installed declares
41650         an 'isblank' function but does not define it in the C library.
41651         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41652         * lib/regex_internal.h (isblank): Likewise.
41653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41654         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41655
41656 2007-06-05  Bruno Haible  <bruno@clisp.org>
41657
41658         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41659         ia64.
41660         * modules/printf-safe: New file.
41661         * modules/fprintf-posix (Depends-on): Add printf-safe.
41662         * modules/printf-posix (Depends-on): Likewise.
41663         * modules/snprintf-posix (Depends-on): Likewise.
41664         * modules/sprintf-posix (Depends-on): Likewise.
41665         * modules/vasnprintf-posix (Depends-on): Likewise.
41666         * modules/vasprintf-posix (Depends-on): Likewise.
41667         * modules/vfprintf-posix (Depends-on): Likewise.
41668         * modules/vprintf-posix (Depends-on): Likewise.
41669         * modules/vsnprintf-posix (Depends-on): Likewise.
41670         * modules/vsprintf-posix (Depends-on): Likewise.
41671         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41672         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41673         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41674         "no" on i386, x86_64, ia64.
41675         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41676         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41677         on i386, x86_64, ia64.
41678         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41679         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41680         on i386, x86_64, ia64.
41681         * tests/test-vasnprintf-posix.c: Include float.h.
41682         (LDBL80_WORDS): New macro.
41683         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41684         on i386, x86_64, ia64.
41685         * tests/test-vasprintf-posix.c: Include float.h.
41686         (LDBL80_WORDS): New macro.
41687         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41688         on i386, x86_64, ia64.
41689         * tests/test-snprintf-posix.c: Include float.h.
41690         * tests/test-sprintf-posix.c: Likewise.
41691         * tests/test-vsnprintf-posix.c: Likewise.
41692         * tests/test-vsprintf-posix.c: Likewise.
41693
41694 2007-06-05  Bruno Haible  <bruno@clisp.org>
41695
41696         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41697         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41698         non-IEEE numbers on i386, x86_64, ia64.
41699         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41700         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41701         * tests/test-isnanl.h: Include float.h.
41702         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41703
41704 2007-06-05  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41707         also the %a / %A. Handle the %a / %A code before this extra handling.
41708
41709 2007-06-05  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41712         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41713
41714 2007-06-05  Bruno Haible  <bruno@clisp.org>
41715
41716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41717         typo in variable name.
41718
41719 2007-06-05  Eric Blake  <ebb9@byu.net>
41720
41721         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41722         Reported by Simon Josefsson.
41723
41724 2007-06-04  Bruno Haible  <bruno@clisp.org>
41725
41726         Avoid test failures on some PowerPC platforms.
41727         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41728         Define differently for PowerPC.
41729         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41730         Reported by Gary V. Vaughan <gary@gnu.org>.
41731
41732 2007-06-02  Bruno Haible  <bruno@clisp.org>
41733
41734         Fix test-stdint failure on FreeBSD/ia64.
41735         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41736         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41737         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41738         * doc/headers/stdint.texi: Update.
41739
41740 2007-06-01  Bruno Haible  <bruno@clisp.org>
41741
41742         * tests/test-binary-io.c (main): Pass a third argument to open().
41743         Reported by Gary V. Vaughan <gary@gnu.org>.
41744
41745 2007-06-01  Bruno Haible  <bruno@clisp.org>
41746
41747         * doc/functions/frexpl.texi: Update for mingw.
41748
41749 2007-06-01  Bruno Haible  <bruno@clisp.org>
41750
41751         * tests/test-lseek.c (main): Disable test of errno for invalid third
41752         argument.
41753         * doc/functions/lseek.texi: Update.
41754         Reported by Gary V. Vaughan <gary@gnu.org>.
41755
41756 2007-05-28  Bruno Haible  <bruno@clisp.org>
41757
41758         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41759
41760 2007-05-31  Eric Blake  <ebb9@byu.net>
41761
41762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41763         cross compiling.
41764
41765 2007-05-30  Eric Blake  <ebb9@byu.net>
41766         and Bruno Haible  <bruno@clisp.org>
41767
41768         Work around mingw test failures exposed by m4-1.4.9b.
41769         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41770         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41771         moment.
41772
41773 2007-05-30  Bruno Haible  <bruno@clisp.org>
41774
41775         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41776         assuming that they are closed. Needed on HP-UX 11.
41777
41778 2007-05-29  Bruno Haible  <bruno@clisp.org>
41779
41780         Fix a problem with #include_next.
41781         * lib/dirent_.h: Split the double-inclusion guard.
41782         * lib/fcntl_.h: Likewise.
41783         * lib/float_.h: Likewise.
41784         * lib/iconv_.h: Likewise.
41785         * lib/inttypes_.h: Likewise.
41786         * lib/locale_.h: Likewise.
41787         * lib/math_.h: Likewise.
41788         * lib/netinet_in_.h: Likewise.
41789         * lib/search_.h: Likewise.
41790         * lib/signal_.h: Likewise.
41791         * lib/stdint_.h: Likewise.
41792         * lib/stdio_.h: Likewise.
41793         * lib/stdlib_.h: Likewise.
41794         * lib/string_.h: Likewise.
41795         * lib/sys_select_.h: Likewise.
41796         * lib/sys_socket_.h: Likewise.
41797         * lib/sys_stat_.h: Likewise.
41798         * lib/sys_time_.h: Likewise.
41799         * lib/sysexits_.h: Likewise.
41800         * lib/time_.h: Likewise.
41801         * lib/unistd_.h: Likewise.
41802         * lib/wchar_.h: Likewise.
41803         * lib/wctype_.h: Likewise.
41804
41805 2007-05-29  Bruno Haible  <bruno@clisp.org>
41806
41807         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41808         for the moment.
41809
41810 2007-05-29  Bruno Haible  <bruno@clisp.org>
41811
41812         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41813         invocation.
41814         Reported by Eric Blake.
41815
41816 2007-05-29  Bruno Haible  <bruno@clisp.org>
41817
41818         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41819         compiling case.
41820
41821 2007-05-29  Eric Blake  <ebb9@byu.net>
41822             Bruno Haible  <bruno@clisp.org>
41823
41824         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41825         cross compiles.
41826
41827 2007-05-28  Eric Blake  <ebb9@byu.net>
41828
41829         * modules/closein-tests (test_closein_LDADD): Support test on
41830         cygwin with libtool.
41831
41832 2007-05-28  Bruno Haible  <bruno@clisp.org>
41833
41834         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41835         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41836         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41837         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41838         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41839         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41840         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41841         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41842         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41843
41844 2007-05-28  Eric Blake  <ebb9@byu.net>
41845
41846         Unconditionally include <config.h> in unit tests.
41847         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41848         * tests/test-allocsa.c, tests/test-arcfour.c,
41849         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41850         tests/test-array_list.c, tests/test-array_oset.c,
41851         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41852         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41853         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41854         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41855         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41856         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41857         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41858         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41859         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41860         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41861         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41862         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41863         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41864         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41865         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41866         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41867         test-md5.c, test-memmem.c, test-printf-posix.c,
41868         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41869         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41870         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41871         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41872         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41873         test-vasnprintf-posix2.c, test-vasnprintf.c,
41874         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41875         test-vfprintf-posix.c, test-vprintf-posix.c,
41876         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41877         test-xvasprintf.c: Likewise.
41878
41879 2007-05-28  Bruno Haible  <bruno@clisp.org>
41880
41881         * gnulib-tool (func_import): Remember the --with-tests command-line
41882         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41883         Reported by Eric Blake.
41884
41885 2007-05-28  Bruno Haible  <bruno@clisp.org>
41886
41887         * modules/ftell-tests: New file.
41888         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41889         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41890
41891         * lib/ftell.c: New file.
41892         * modules/ftell: New file.
41893         * m4/ftell.m4: New file.
41894         * doc/functions/ftell.texi: Update.
41895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41896         REPLACE_FTELL.
41897         * lib/stdio_.h (rpl_ftell): New declaration.
41898         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41899         REPLACE_FTELL.
41900
41901 2007-05-28  Eric Blake  <ebb9@byu.net>
41902
41903         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41904
41905 2007-05-28  Bruno Haible  <bruno@clisp.org>
41906
41907         * modules/fseek-tests: New file.
41908         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41909         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41910
41911         * lib/fseek.c: New file.
41912         * modules/fseek: New file.
41913         * m4/fseek.m4: New file.
41914         * doc/functions/fseek.texi: Update.
41915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41916         REPLACE_FSEEK.
41917         * lib/stdio_.h (rpl_fseek): New declaration.
41918         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41919         REPLACE_FSEEK.
41920
41921 2007-05-28  Bruno Haible  <bruno@clisp.org>
41922
41923         * lib/stdio_.h (fflush): More comments.
41924
41925 2007-05-28  Bruno Haible  <bruno@clisp.org>
41926
41927         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41928         runtime test.
41929
41930 2007-05-28  Eric Blake  <ebb9@byu.net>
41931
41932         Improve lseek module.
41933         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41934         * lib/unistd_.h (lseek): Scale back link warning message.
41935         * tests/test-lseek.c: Beef up test.
41936         * tests/test-lseek.sh: Exercise more facets of lseek.
41937         Reported by Bruno Haible.
41938
41939 2007-05-28  Bruno Haible  <bruno@clisp.org>
41940
41941         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41942         to define.
41943
41944 2007-05-27  Bruno Haible  <bruno@clisp.org>
41945
41946         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41947
41948 2007-05-27  Bruno Haible  <bruno@clisp.org>
41949
41950         * modules/openmp: New file.
41951         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41952         Noah Misch.
41953
41954 2007-05-26  Bruno Haible  <bruno@clisp.org>
41955
41956         * modules/chdir-long (Depends-on): Add fchdir.
41957         * modules/chdir-safer (Depends-on): Likewise.
41958         * modules/fts (Depends-on): Likewise.
41959         * modules/fts-lgpl (Depends-on): Likewise.
41960         * modules/openat (Depends-on): Likewise.
41961         * modules/savewd (Depends-on): Likewise.
41962
41963 2007-05-24  Eric Blake  <ebb9@byu.net>
41964
41965         Fix lseek on mingw.
41966         * modules/lseek: New module.
41967         * m4/lseek.m4: New file.
41968         * lib/lseek.c: New file.
41969         * modules/lseek-tests: New file.
41970         * tests/test-lseek.c: New file.
41971         * tests/test-lseek.sh: New file.
41972         * MODULES.html.sh: Document lseek module.
41973         * modules/fflush (Depends-on): Add lseek, fseeko.
41974         * modules/fseeko (Depends-on): Likewise.
41975         * modules/ftello (Depends-on): Likewise.
41976         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41977         broken.
41978         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41979         broken.
41980         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41981         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41982         * lib/ftello.c (rpl_ftello): Likewise.
41983         * tests/test-fseeko.c (main): Test this.
41984         * tests/test-fseeko.sh: Likewise.
41985         * tests/test-ftello.c (main): Likewise.
41986         * tests/test-ftello.sh: Likewise.
41987         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41988         implies replacing fseek.
41989         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41990         HAVE_FTELLO.
41991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41992         * modules/unistd (Makefile.am): Likewise.
41993         * lib/unistd_.h (lseek): Declare a replacement.
41994         * doc/functions/lseek.texi (lseek): Document this fix.
41995         * doc/functions/fseek.texi (fseek): Likewise.
41996         * doc/functions/ftell.texi (ftell): Likewise.
41997
41998 2007-05-24  Bruno Haible  <bruno@clisp.org>
41999
42000         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42001         in the printed representation of a NaN.
42002         * tests/test-vasprintf-posix.c (test_function): Likewise.
42003         * tests/test-snprintf-posix.h (test_function): Likewise.
42004         * tests/test-sprintf-posix.h (test_function): Likewise.
42005         Reported by Eric Blake.
42006
42007 2007-05-23  Eric Blake  <ebb9@byu.net>
42008
42009         Fix fseeko/ftello on cygwin 1.5.24.
42010         * doc/functions/fseeko.texi (fseeko): Document the fix.
42011         * doc/functions/ftello.texi (ftello): Document the fix.
42012         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42013         * doc/functions/stdout.text (stdout): New file.
42014         * doc/functions/stderr.text (stderr): New file.
42015         * doc/gnulib.texi (Function Substitutes): Use new files.
42016         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42017         prior to 1.7.0.
42018         * tests/test-ftello.c (main): Likewise for ftello.
42019         * tests/test-fseeko.sh: New file.
42020         * tests/test-ftello.sh: New file.
42021         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42022         with seekable stdin.
42023         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42025         (gl_REPLACE_FSEEKO): New macro.
42026         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42027         * modules/fseeko (Files): Distribute fseeko.c.
42028         * modules/ftello (Files): Distribute ftello.c.
42029         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42030         mode.
42031         * lib/ftello.c (rpl_ftello): New file.
42032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42033         fseeko, ftello.
42034         (gl_STDIN_LARGE_OFFSET): New macro.
42035         * modules/stdio (Makefile.am): Perform the replacement.
42036         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42037
42038 2007-05-23  Bruno Haible  <bruno@clisp.org>
42039
42040         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42041         GNULIB_POSIXCHECK is defined.
42042
42043 2007-05-21  Bruno Haible  <bruno@clisp.org>
42044
42045         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42046         Check also the output for NaN arguments. When cross-compiling, guess
42047         no on IRIX.
42048         * lib/vasnprintf.c: Update comments.
42049         * tests/test-vasnprintf-posix.c (strisnan): New function.
42050         (test_function): Use it.
42051         * tests/test-vasprintf-posix.c (strisnan): New function.
42052         (test_function): Use it.
42053         * tests/test-snprintf-posix.h (strisnan): New function.
42054         (test_function): Use it.
42055         * tests/test-sprintf-posix.h (strisnan): New function.
42056         (test_function): Use it.
42057         Reported by Eric Blake.
42058
42059 2007-05-20  Bruno Haible  <bruno@clisp.org>
42060
42061         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42062         numbers that fails on BeOS.
42063         * doc/functions/frexpl.texi: Update.
42064
42065 2007-05-20  Jim Meyering  <jim@meyering.net>
42066
42067         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42068         forced upon us by glibc-2.6.
42069
42070 2007-05-20  Bruno Haible  <bruno@clisp.org>
42071
42072         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42073         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42074         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42075         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42076         NEED_PRINTF_INFINITE.
42077         (is_infinitel): New function.
42078         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42080         gl_PREREQ_VASNPRINTF_INFINITE.
42081         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42083         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42084         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42085         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42086         gl_PREREQ_VASNPRINTF_INFINITE.
42087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42094         * doc/functions/fprintf.texi: Update.
42095         * doc/functions/printf.texi: Update.
42096         * doc/functions/snprintf.texi: Update.
42097         * doc/functions/sprintf.texi: Update.
42098         * doc/functions/vfprintf.texi: Update.
42099         * doc/functions/vprintf.texi: Update.
42100         * doc/functions/vsnprintf.texi: Update.
42101         * doc/functions/vsprintf.texi: Update.
42102
42103 2007-05-20  Bruno Haible  <bruno@clisp.org>
42104
42105         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42106         was not found in libc.
42107         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42108
42109 2007-05-20  Bruno Haible  <bruno@clisp.org>
42110
42111         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42112         printed as "-nan" instead of "nan".
42113         * tests/test-vasprintf-posix.c (test_function): Likewise.
42114         * tests/test-snprintf-posix.h (test_function): Likewise.
42115         * tests/test-sprintf-posix.h (test_function): Likewise.
42116         Needed for HP-UX 11.
42117
42118 2007-05-20  Jim Meyering  <jim@meyering.net>
42119
42120         Fix buggy test for the fchownat-deref bug.
42121         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42122         symlink required for the run-test.  Without it, this test would
42123         always declare that fchownat doesn't work, and client code would
42124         unnecessarily use the replacement function with fixed libc.
42125         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42126         Reported by Greg Schafer.
42127
42128 2007-05-19  Bruno Haible  <bruno@clisp.org>
42129
42130         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42131         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42132         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42133         Needed for IRIX 6.5 and Solaris 2.5.1.
42134
42135 2007-05-19  Bruno Haible  <bruno@clisp.org>
42136
42137         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42138         (test_function): Skip tests involving -0.0 on platforms where
42139         -0.0 = 0.0.
42140         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42141         (test_function): Skip tests involving -0.0 on platforms where
42142         -0.0 = 0.0.
42143         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42144         (test_function): Skip tests involving -0.0 on platforms where
42145         -0.0 = 0.0.
42146         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42147         (test_function): Skip tests involving -0.0 on platforms where
42148         -0.0 = 0.0.
42149         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42150         tests.
42151         * tests/test-printf-posix.h (test_function): Likewise.
42152         * tests/test-printf-posix.output: Remove all -0.0 related results.
42153         Needed for IRIX 6.5.
42154
42155 2007-05-19  Bruno Haible  <bruno@clisp.org>
42156
42157         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42158         printed as "nan0x7fffffff" instead of "nan".
42159         * tests/test-vasprintf-posix.c (test_function): Likewise.
42160         * tests/test-snprintf-posix.h (test_function): Likewise.
42161         * tests/test-sprintf-posix.h (test_function): Likewise.
42162         * tests/test-fprintf-posix.h (NaN): Remove macro.
42163         (test_function): Remove all NaN related tests.
42164         * tests/test-printf-posix.h (NaN): Remove macro.
42165         (test_function): Remove all NaN related tests.
42166         * tests/test-printf-posix.output: Remove all NaN related results.
42167         Needed for IRIX 6.5.
42168
42169 2007-05-19  Bruno Haible  <bruno@clisp.org>
42170
42171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42173
42174 2007-05-19  Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/float_.h: New file.
42177         * m4/float_h.m4: New file.
42178         * modules/float: New file.
42179         * modules/isnanl (Dependencies): Add float.
42180         * modules/isnanl-nolibm (Dependencies): Likewise.
42181         * modules/mathl (Dependencies): Likewise.
42182         * modules/printf-frexpl (Dependencies): Likewise.
42183         * modules/signbit (Dependencies): Likewise.
42184         * modules/vasnprintf (Dependencies): Likewise.
42185         * doc/headers/float.texi: Update.
42186
42187 2007-05-19  Jim Meyering  <jim@meyering.net>
42188
42189         * lib/utimens.c (gl_futimens): Rename from futimens,
42190         now that glibc-2.6 declares futimens.
42191         * lib/utimens.h: Likewise.
42192
42193 2007-05-19  Bruno Haible  <bruno@clisp.org>
42194
42195         Avoid test failures on mingw.
42196         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42197         * tests/test-printf-posix.sh: Likewise.
42198         * tests/test-vfprintf-posix.sh: Likewise.
42199         * tests/test-vprintf-posix.sh: Likewise.
42200
42201 2007-05-19  Bruno Haible  <bruno@clisp.org>
42202
42203         Fix *printf result for NaN, Inf, -0.0 on mingw.
42204         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42205         * lib/vasnprintf.c: Include math.h and isnan.h.
42206         (is_infinite_or_zero): New function.
42207         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42208         values in the %f, %F, %e, %E, %g, %G directives.
42209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42211         gl_PRINTF_INFINITE and test its result. Invoke
42212         gl_PREREQ_VASNPRINTF_INFINITE.
42213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42220         * doc/functions/fprintf.texi: Update.
42221         * doc/functions/printf.texi: Update.
42222         * doc/functions/snprintf.texi: Update.
42223         * doc/functions/sprintf.texi: Update.
42224         * doc/functions/vfprintf.texi: Update.
42225         * doc/functions/vprintf.texi: Update.
42226         * doc/functions/vsnprintf.texi: Update.
42227         * doc/functions/vsprintf.texi: Update.
42228
42229 2007-05-19  Bruno Haible  <bruno@clisp.org>
42230
42231         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42232         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42233         Instead of multiplying with 10^k, set extra_zeroes to k.
42234         (scale10_round_long_double): Remove function.
42235
42236 2007-05-18  Bruno Haible  <bruno@clisp.org>
42237
42238         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42239         introduced on 2007-05-06.
42240
42241 2007-05-18  Bruno Haible  <bruno@clisp.org>
42242
42243         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42244         %g directives.
42245         * tests/test-vasprintf-posix.c (test_function): Likewise.
42246         * tests/test-snprintf-posix.h (test_function): Likewise.
42247         * tests/test-sprintf-posix.h (test_function): Likewise.
42248
42249 2007-05-18  Bruno Haible  <bruno@clisp.org>
42250
42251         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42252         (strmatch): New function.
42253         (test_function): Test the %f directive on numbers of various exponents.
42254         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42255         (strmatch): New function.
42256         (test_function): Test the %f directive on numbers of various exponents.
42257         * tests/test-snprintf-posix.h (strmatch): New function.
42258         (test_function): Test the %f directive on numbers of various exponents.
42259         * tests/test-sprintf-posix.h (strmatch): New function.
42260         (test_function): Test the %f directive on numbers of various exponents.
42261         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42262         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42263         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42264         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42265
42266 2007-05-18  Bruno Haible  <bruno@clisp.org>
42267
42268         Add support for 'long double' number output.
42269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42270         * lib/vasnprintf.c: Include math.h and float+.h.
42271         (mp_limb_t): New type.
42272         (GMP_LIMB_BITS): New macro.
42273         (mp_twolimb_t): New type.
42274         (GMP_TWOLIMB_BITS): New macro.
42275         (mpn_t): New type.
42276         (multiply, divide, convert_to_decimal, decode_long_double,
42277         scale10_round_long_double, scale10_round_decimal_long_double,
42278         floorlog10l): New functions.
42279         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42280         for the %f, %F, %e, %E, %g, %G directives.
42281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42283         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42284         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42292         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42293         * modules/snprintf-posix (Depends-on): Likewise.
42294         * modules/sprintf-posix (Depends-on): Likewise.
42295         * modules/vasnprintf-posix (Depends-on): Likewise.
42296         * modules/vasprintf-posix (Depends-on): Likewise.
42297         * modules/vfprintf-posix (Depends-on): Likewise.
42298         * modules/vsnprintf-posix (Depends-on): Likewise.
42299         * modules/vsprintf-posix (Depends-on): Likewise.
42300         * modules/vasnprintf (Files): Add lib/float+.h.
42301         * doc/functions/fprintf.texi: Update.
42302         * doc/functions/printf.texi: Update.
42303         * doc/functions/snprintf.texi: Update.
42304         * doc/functions/sprintf.texi: Update.
42305         * doc/functions/vfprintf.texi: Update.
42306         * doc/functions/vprintf.texi: Update.
42307         * doc/functions/vsnprintf.texi: Update.
42308         * doc/functions/vsprintf.texi: Update.
42309
42310 2007-05-18  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42313
42314 2007-05-18  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42317         for printing 64-bit integers. Needed for mingw.
42318
42319 2007-05-18  Bruno Haible  <bruno@clisp.org>
42320
42321         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42322         gl_FUNC_FREXPL_WORKS.
42323         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42324
42325 2007-05-18  Bruno Haible  <bruno@clisp.org>
42326
42327         * modules/frexpl-nolibm-tests: New file.
42328
42329         * modules/frexpl-nolibm: New file.
42330         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42331
42332 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42333
42334         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42335         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42336         GCC 4.2, which otherwise issues a lot of warnings.
42337         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42338         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42339         Likewise.
42340         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42341         * modules/iconv_open (iconv.h): Likewise.
42342         * modules/locale (locale.h): Likewise.
42343         * modules/netinet_in (netinet/in.h): Likewise.
42344         * modules/sys_select (sys_select.h): Likewise.
42345         * modules/sys_socket (sys/socket.h): Likewise.
42346         * modules/sys_stat (sys/stat.h): Likewise.
42347         * modules/sysexits (sysexits.h): Likewise.
42348         * modules/unistd (unistd.h): Likewise.
42349
42350 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42351
42352         * modules/closein-tests (Makefile.am): Distribute
42353         `test-closein.sh'.
42354
42355 2007-05-17  Bruno Haible  <bruno@clisp.org>
42356
42357         * tests/test-printf-posix.output: Renamed from
42358         tests/test-fprintf-posix.out.
42359         * modules/fprintf-posix-tests: Update.
42360         * modules/printf-posix-tests: Update.
42361         * modules/vfprintf-posix-tests: Update.
42362         * modules/vprintf-posix-tests: Update.
42363         * tests/test-fprintf-posix.sh: Update.
42364         * tests/test-printf-posix.sh: Update.
42365         * tests/test-vfprintf-posix.sh: Update.
42366         * tests/test-vprintf-posix.sh: Update.
42367         Reported by Ralf Wildenhues.
42368
42369 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42372         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42373         GCC 4.2, which otherwise issues a lot of warnings.
42374         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42375         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42376         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42377         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42378         it should no longer be needed.
42379         * lib/string_.h: Likewise.
42380         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42381         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42382         * modules/inttypes (inttypes.h): Likewise.
42383         * modules/math (math.h): Likewise.
42384         * modules/search (search.h): Likewise.
42385         * modules/signal (signal.h): Likewise.
42386         * modules/stdint (stdint.h): Likewise.
42387         * modules/stdio (stdio.h): Likewise.
42388         * modules/stdlib (stdlib.h): Likewise.
42389         * modules/string (string.h): Likewise.
42390         * modules/sys_time (sys/time.h): Likewise.
42391         * modules/time (time.h): Likewise.
42392         * modules/wchar (wchar.h): Likewise.
42393         * modules/wctype (wtype.h): Likewise.
42394
42395 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42396
42397         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42398
42399 2007-05-13  Bruno Haible  <bruno@clisp.org>
42400
42401         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42402         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42403         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42404         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42405         (gl_PREREQ_STRTOK_R): Don't require it here.
42406
42407 2007-05-13  Bruno Haible  <bruno@clisp.org>
42408
42409         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42410         when used in C++ mode.
42411
42412 2007-05-12  Bruno Haible  <bruno@clisp.org>
42413
42414         * lib/linebuffer.h: Tweak doc.
42415         * lib/linebuffer.c: Likewise.
42416
42417 2007-05-12  James Youngman  <jay@gnu.org>
42418
42419         * lib/linebuffer.c (readlinebuffer_delim): New function,
42420         like readlinebuffer, but use a caller-specified delimiter.
42421         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42422         as the delimiter.
42423         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42424
42425 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42426
42427         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42428         * modules/openat (Files): Remove openat-die.c.
42429         (Depends-on): Add openat-die.
42430         * modules/openat-die: New module.
42431
42432 2007-05-06  Bruno Haible  <bruno@clisp.org>
42433
42434         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42435         Update with info about Cygwin.
42436         * doc/functions/fprintf.texi: Update.
42437         * doc/functions/printf.texi: Update.
42438         * doc/functions/snprintf.texi: Update.
42439         * doc/functions/sprintf.texi: Update.
42440         * doc/functions/vfprintf.texi: Update.
42441         * doc/functions/vprintf.texi: Update.
42442         * doc/functions/vsnprintf.texi: Update.
42443         * doc/functions/vsprintf.texi: Update.
42444         Reported by Eric Blake.
42445
42446 2007-05-06  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42449         padding ourselves for the floating-point directives.
42450         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42453         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42454         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42462         * tests/test-snprintf-posix.h (test_function): Also check the width
42463         and some flags in the %f directive.
42464         * tests/test-sprintf-posix.h (test_function): Likewise.
42465         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42466         * tests/test-vasprintf-posix.c (test_function): Likewise.
42467         * doc/functions/fprintf.texi: Update.
42468         * doc/functions/printf.texi: Update.
42469         * doc/functions/snprintf.texi: Update.
42470         * doc/functions/sprintf.texi: Update.
42471         * doc/functions/vfprintf.texi: Update.
42472         * doc/functions/vprintf.texi: Update.
42473         * doc/functions/vsnprintf.texi: Update.
42474         * doc/functions/vsprintf.texi: Update.
42475
42476 2007-05-06  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42479         pass the ' flag character to sprintf or snprintf.
42480         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42483         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42484         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42492         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42493         flag.
42494         * tests/test-sprintf-posix.h (test_function): Likewise.
42495         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42496         * tests/test-vasprintf-posix.c (test_function): Likewise.
42497         * doc/functions/fprintf.texi: Update.
42498         * doc/functions/printf.texi: Update.
42499         * doc/functions/snprintf.texi: Update.
42500         * doc/functions/sprintf.texi: Update.
42501         * doc/functions/vfprintf.texi: Update.
42502         * doc/functions/vprintf.texi: Update.
42503         * doc/functions/vsnprintf.texi: Update.
42504         * doc/functions/vsprintf.texi: Update.
42505
42506 2007-05-01  Bruno Haible  <bruno@clisp.org>
42507
42508         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42509
42510 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42511
42512         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42513         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42514
42515 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42516
42517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42518         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42520
42521 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42522
42523         * lib/argp-help.c (struct hol_entry): New member `ord'.
42524         (HOL_ENTRY_PTRCMP): Use ord for comparison
42525         (hol_sort): Initialize ord.
42526
42527 2007-05-01  Bruno Haible  <bruno@clisp.org>
42528
42529         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42530         Reported by Eric Blake.
42531         * doc/gnulib.texi (Function Substitutes): Update.
42532
42533 2007-05-01  Bruno Haible  <bruno@clisp.org>
42534
42535         * doc/functions.texi: Remove file, now redundant through
42536         doc/functions/*.texi.
42537
42538 2007-05-01  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/argp (Depends-on): Add sleep.
42541
42542 2007-05-01  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/sleep-tests: New file.
42545         * tests/test-sleep.c: New file.
42546
42547         * modules/sleep: New file.
42548         * lib/sleep.c: New file.
42549         * m4/sleep.m4: New file.
42550         * lib/unistd_.h (sleep): New declaration.
42551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42552         HAVE_SLEEP.
42553         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42554         * doc/functions/sleep.texi: Document the sleep module.
42555
42556 2007-05-01  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/sigprocmask.h: Remove file.
42559         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42560         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42562         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42563         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42564         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42565         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42566         HAVE_SIGSET_T as a shell variable.
42567         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42568         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42569         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42570         (Depends-on): Add signal. Remove verify.
42571         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42572         (Include): Mention <signal.h> instead of sigprocmask.h.
42573         * NEWS: Mention the change.
42574         * lib/fatal-signal.c: Don't include sigprocmask.h.
42575
42576 2007-05-01  Bruno Haible  <bruno@clisp.org>
42577
42578         * modules/signal: New file.
42579         * lib/signal_.h: New file.
42580         * m4/signal_h.m4: New file.
42581
42582 2007-05-01  Bruno Haible  <bruno@clisp.org>
42583
42584         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42585         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42586         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42587         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42588
42589 2007-05-01  Bruno Haible  <bruno@clisp.org>
42590
42591         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42592         configure time.
42593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42594         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42595         * modules/sys_stat (Makefile.am): Substitute their values into
42596         sys/stat.h.
42597
42598 2007-05-01  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42601         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42602         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42603
42604 2007-05-01  Bruno Haible  <bruno@clisp.org>
42605
42606         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42607         'assert' module here.
42608
42609 2007-05-01  Bruno Haible  <bruno@clisp.org>
42610
42611         * doc/functions/*.texi: New files.
42612         * doc/functions/google-ranking.txt: New file.
42613         * doc/gnulib.texi (Function Substitutes): New chapter.
42614         (ctime, inet_ntoa): Remove sections.
42615         * doc/ctime.texi: Remove file.
42616         * doc/inet_ntoa.texi: Remove file.
42617         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42618         dependencies.
42619         (%.info): New rule, specifying a --reference-limit.
42620
42621 2007-05-01  Bruno Haible  <bruno@clisp.org>
42622
42623         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42624
42625 2007-05-01  Bruno Haible  <bruno@clisp.org>
42626
42627         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42628         the portability of 'mkdir' to mingw systems.
42629
42630 2007-05-01  Bruno Haible  <bruno@clisp.org>
42631
42632         * doc/headers/google-ranking.txt: New file.
42633
42634 2007-04-30  Eric Blake  <ebb9@byu.net>
42635
42636         Prefer fseeko to fseek.
42637         * modules/getpass (Depends-on): Add fseeko.
42638         * lib/getpass.c (getpass): Use fseeko, not fseek.
42639
42640 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42641
42642         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42643         assumes the sorting is stable, while most qsort implementations
42644         are not.  Use argument addresses to ensure they never compare as
42645         equal.
42646
42647         * tests/test-argp-2.sh (usage-indent test): Fix output
42648         (func_compare): Restore diff options
42649         * tests/test-argp.c: Restore #include "progname.h"
42650
42651 2007-04-29  Bruno Haible  <bruno@clisp.org>
42652
42653         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42655         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42657         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42658         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42659         (TESTS, check_PROGRAMS): Add test-snprintf.
42660         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42661         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42662         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42663         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42664         assertions that fail on HP-UX, OSF/1, or IRIX.
42665         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42666
42667 2007-04-29  Bruno Haible  <bruno@clisp.org>
42668
42669         * MODULES.html.sh (posix_functions): Remove 'contents'.
42670
42671 2007-04-29  Karl Berry  <karl@gnu.org>
42672
42673         * config/srclist.txt (gendocs_template_min): new entry.
42674
42675 2007-04-29  Bruno Haible  <bruno@clisp.org>
42676
42677         Work around fpurge bug on BSD systems.
42678         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42679         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42680         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42681         fpurge to rpl_fpurge if the system already has this function.
42682         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42683         the case where the system already has this function. Correct invariants
42684         on BSD systems.
42685         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42686         BSD systems.
42687
42688 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42689
42690         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42691         proposed by Sven Verdoolaege.
42692
42693         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42694         options.
42695         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42696         (usage and help tests): Update
42697
42698 2007-04-29  Bruno Haible  <bruno@clisp.org>
42699
42700         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42701         Print more information in case of failure. Disable a test on BeOS.
42702
42703 2007-04-29  Bruno Haible  <bruno@clisp.org>
42704
42705         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42706         This helps debugging on systems on which no gdb is available.
42707
42708 2007-04-29  Bruno Haible  <bruno@clisp.org>
42709
42710         * lib/freading.h: Improve comments.
42711         * lib/fwriting.h: Likewise.
42712         * tests/test-freading.c (main): Don't check freading immediately after
42713         repositioning. Needed for glibc.
42714
42715 2007-04-29  Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/freading.c (freading): Trivial simplification.
42718
42719 2007-04-28  Bruno Haible  <bruno@clisp.org>
42720
42721         * tests/test-fwriting.c (main): Also test the interaction between
42722         fflush and fwriting.
42723         * modules/fwriting-tests (Depends-on): Add fflush.
42724
42725         * tests/test-freading.c (main): Also test the interaction between
42726         fflush and freading.
42727         * modules/freading-tests (Depends-on): Add fflush.
42728
42729 2007-04-28  Bruno Haible  <bruno@clisp.org>
42730
42731         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42732         fseeko and ftello.
42733         Suggested by Eric Blake.
42734
42735 2007-04-28  Jim Meyering  <jim@meyering.net>
42736
42737         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42738         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42739         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42740
42741 2007-04-27  Eric Blake  <ebb9@byu.net>
42742
42743         * doc/headers/assert.texi (assert.h): Document assert module use.
42744
42745 2007-04-27  Bruno Haible  <bruno@clisp.org>
42746
42747         * doc/headers/*.texi: New files.
42748         * doc/gnulib.texi (Header File Substitutes): New chapter.
42749         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42750         dependencies.
42751         (standards.info ,standards.html, standards.dvi): Update dependencies.
42752         (mostlyclean, clean): New targets.
42753
42754 2007-04-27  Bruno Haible  <bruno@clisp.org>
42755
42756         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42757         * modules/sysexits (Files, Makefile.am): Update.
42758
42759         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42760         * modules/sys_socket (Files, Makefile.am): Update.
42761
42762         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42763         * modules/sys_stat (Files, Makefile.am): Update.
42764
42765 2007-04-27  Eric Blake  <ebb9@byu.net>
42766
42767         * lib/freading.h: Improve comments.
42768         * lib/fwriting.h: Likewise.
42769         * lib/fflush.c: Likewise.
42770
42771         Fix closein for mingw.
42772         * modules/closein-tests: Add tests for closein.
42773         * tests/test-closein.c: New file.
42774         * tests/test-closein.sh: Likewise.
42775         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42776         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42777
42778 2007-04-27  Bruno Haible  <bruno@clisp.org>
42779
42780         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42781         version is < 6.
42782         * lib/math_.h [__DECC]: Likewise.
42783         * lib/stdio_.h [__DECC]: Likewise.
42784         * lib/stdlib_.h [__DECC]: Likewise.
42785         * lib/string_.h [__DECC]: Likewise.
42786         * lib/time_.h [__DECC]: Likewise.
42787         * lib/wchar_.h [__DECC]: Likewise.
42788         * lib/wctype_.h [__DECC]: Likewise.
42789
42790 2007-04-27  Bruno Haible  <bruno@clisp.org>
42791
42792         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42793
42794 2007-04-27  Bruno Haible  <bruno@clisp.org>
42795
42796         * lib/fflush.c: Add comments.
42797         * modules/fpurge-tests (Depends-on): Add fflush.
42798         * modules/freadable-tests (Depends-on): Likewise.
42799         * modules/fwritable-tests (Depends-on): Likewise.
42800
42801 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42802
42803         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42804         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42805         Report by Bruno Haible <bruno@clisp.org>.
42806
42807 2007-04-26  Eric Blake  <ebb9@byu.net>
42808
42809         Fix fflush on mingw.
42810         * modules/fflush (Depends-on): Add freading.
42811         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42812         but unread data.
42813
42814 2007-04-26  Eric Blake  <ebb9@byu.net>
42815         and Bruno Haible  <bruno@clisp.org>
42816
42817         Implement freading and fwriting.
42818         * lib/freading.c: New file.
42819         * lib/freading.h: Likewise.
42820         * m4/freading.m4: Likewise.
42821         * modules/freading: Likewise.
42822         * modules/freading-tests: Likewise.
42823         * tests/test-freading.c: Likewise.
42824         * lib/fwriting.c: New file.
42825         * lib/fwriting.h: Likewise.
42826         * m4/fwriting.m4: Likewise.
42827         * modules/fwriting: Likewise.
42828         * modules/fwriting-tests: Likewise.
42829         * tests/test-fwriting.c: Likewise.
42830         * MODULES.html.sh (File stream based Input/Output): Mention them.
42831
42832 2007-04-26  Bruno Haible  <bruno@clisp.org>
42833
42834         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42835         'long' when we assume it.
42836         Suggested by Eric Blake.
42837
42838 2007-04-26  Bruno Haible  <bruno@clisp.org>
42839
42840         Ensure fseeko, ftello are declared on glibc systems.
42841         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42842         * modules/fseeko (configure.ac-early): Likewise.
42843         * modules/ftello (configure.ac-early): Likewise.
42844         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42845         AC_FUNC_FSEEKO for this.
42846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42847         (gl_CHECK_FSEEKO): Remove macro.
42848
42849 2007-04-26  Bruno Haible  <bruno@clisp.org>
42850
42851         * tests/test-fflush.c (main): Also check the ftell result after
42852         fflush and fseek/fseeko.
42853         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42854         file descriptor position cache in the stream.
42855         * lib/fseeko.c (rpl_fseeko): Likewise.
42856
42857 2007-04-26  Bruno Haible  <bruno@clisp.org>
42858
42859         * modules/fflush-tests (Depends-on): Add fseeko.
42860
42861 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42862             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42863
42864         * lib/argz_.h: ensure error_t definition is obtained in same
42865         mechanism system argz.h would have.
42866         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42867         argz facilities are known bad.  Err on the side of caution if
42868         cross-compiling.
42869
42870 2007-04-25  Eric Blake  <ebb9@byu.net>
42871
42872         * lib/fpurge.c (includes): Use stdlib.h for free.
42873         * tests/test-fflush.c (main): Also test fflush-fseeko.
42874
42875 2007-04-25  Bruno Haible  <bruno@clisp.org>
42876
42877         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42878         * lib/fseeko.c: New file.
42879         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42880         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42881         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42882         gl_FUNC_FSEEKO.
42883         (gl_FUNC_FSEEKO): Invoke it.
42884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42885         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42886         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42887
42888 2007-04-25  Bruno Haible  <bruno@clisp.org>
42889
42890         * modules/fflush (Depends-on): Add ftello.
42891
42892 2007-04-25  Bruno Haible  <bruno@clisp.org>
42893
42894         * modules/ftello-tests: New file.
42895         * tests/test-ftello.c: New file.
42896
42897         * modules/ftello: New file.
42898         * m4/ftello.m4: New file.
42899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42900         HAVE_FTELLO.
42901         * lib/stdio_.h (ftello): New declaration.
42902         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42903         HAVE_FTELLO.
42904
42905 2007-04-25  Bruno Haible  <bruno@clisp.org>
42906
42907         * modules/fseeko-tests: New file.
42908         * tests/test-fseeko.c: New file.
42909
42910         * modules/fseeko: New file.
42911         * m4/fseeko.m4: New file.
42912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42913         HAVE_FSEEKO.
42914         * lib/stdio_.h (fseeko): New declaration.
42915         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42916         HAVE_FSEEKO.
42917
42918 2007-04-25  Bruno Haible  <bruno@clisp.org>
42919
42920         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42921
42922 2007-04-25  Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42925         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42926         * tests/test-unistd.c: Likewise.
42927         * tests/test-fcntl.c: Likewise.
42928
42929 2007-04-23  Eric Blake  <ebb9@byu.net>
42930
42931         * lib/fflush.c: Fix missing include.
42932         Reported by Bruno Haible.
42933
42934 2007-04-23  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42937         Reported by Eric Blake.
42938
42939 2007-04-23  Bruno Haible  <bruno@clisp.org>
42940
42941         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42942
42943 2007-04-23  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42946
42947 2007-04-23  Bruno Haible  <bruno@clisp.org>
42948
42949         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42950         Needed on HP-UX 11.
42951
42952 2007-04-16  Eric Blake  <ebb9@byu.net>
42953
42954         Make fflush rely on fpurge.
42955         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42956         open coding all variants.
42957         * modules/fflush (Depends-on): Add fpurge and unistd.
42958         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42959         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42960
42961         Fix --with-tests compilation on cygwin.
42962         * modules/argmatch-tests (Makefile.am): List gnulib library first
42963         in LDADD.
42964         * modules/argp-tests (Makefile.am): Likewise.
42965         * modules/array-list-tests (Makefile.am): Likewise.
42966         * modules/array-oset-tests (Makefile.am): Likewise.
42967         * modules/avltree-list-tests (Makefile.am): Likewise.
42968         * modules/avltree-oset-tests (Makefile.am): Likewise.
42969         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42970         * modules/carray-list-tests (Makefile.am): Likewise.
42971         * modules/dirname-tests (Makefile.am): Likewise.
42972         * modules/frexp-tests (Makefile.am): Likewise.
42973         * modules/isnanl-tests (Makefile.am): Likewise.
42974         * modules/linked-list-tests (Makefile.am): Likewise.
42975         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42976         * modules/lock-tests (Makefile.am): Likewise.
42977         * modules/rbtree-list-tests (Makefile.am): Likewise.
42978         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42979         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42980         * modules/tls-tests (Makefile.am): Likewise.
42981         * modules/tsearch-tests (Makefile.am): Likewise.
42982         * modules/xvasprintf-tests (Makefile.am): Likewise.
42983
42984         Fix fpurge for cygwin.
42985         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42986         value.
42987         * modules/fpurge-tests (Depends-on): Clean up trash.
42988
42989 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42990
42991         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42992
42993         * m4/autobuild.m4: Re-indent.
42994
42995 2007-04-13  Bruno Haible  <bruno@clisp.org>
42996
42997         * modules/fpurge-tests: New file.
42998         * tests/test-fpurge.c: New file.
42999
43000         * modules/fpurge: New file.
43001         * lib/fpurge.h: New file.
43002         * lib/fpurge.c: New file.
43003         * m4/fpurge.m4: New file.
43004
43005 2007-04-13  Bruno Haible  <bruno@clisp.org>
43006
43007         * modules/fbufmode-tests: New file.
43008         * tests/test-fbufmode.c: New file.
43009
43010         * modules/fbufmode: New file.
43011         * lib/fbufmode.h: New file.
43012         * lib/fbufmode.c: New file.
43013         * m4/fbufmode.m4: New file.
43014
43015 2007-04-13  Bruno Haible  <bruno@clisp.org>
43016
43017         * modules/fwritable-tests: New file.
43018         * tests/test-fwritable.c: New file.
43019
43020         * modules/fwritable: New file.
43021         * lib/fwritable.h: New file.
43022         * lib/fwritable.c: New file.
43023         * m4/fwritable.m4: New file.
43024
43025 2007-04-13  Bruno Haible  <bruno@clisp.org>
43026
43027         * modules/freadable-tests: New file.
43028         * tests/test-freadable.c: New file.
43029
43030         * modules/freadable: New file.
43031         * lib/freadable.h: New file.
43032         * lib/freadable.c: New file.
43033         * m4/freadable.m4: New file.
43034
43035 2007-04-13  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43038         MOSTLYCLEANFILES.
43039
43040 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43041
43042         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43043         gzip bootstrap.conf to avoid dragging in i18n machinery.
43044         (gnulib_tool_option): Use it.
43045
43046 2007-04-13  Bruno Haible  <bruno@clisp.org>
43047
43048         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43049         %F directives.
43050         * tests/test-vasprintf-posix.c (test_function): Likewise.
43051         * tests/test-snprintf-posix.h (test_function): Likewise.
43052         * tests/test-sprintf-posix.h (test_function): Likewise.
43053         * tests/test-fprintf-posix.h (test_function): Likewise.
43054         * tests/test-printf-posix.h (test_function): Likewise.
43055         * tests/test-fprintf-posix.out: Likewise.
43056
43057 2007-04-13  Bruno Haible  <bruno@clisp.org>
43058
43059         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43060         * modules/tls-tests (configure.ac): Likewise.
43061         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43062
43063 2007-04-13  Bruno Haible  <bruno@clisp.org>
43064
43065         * lib/tls.c (glthread_tls_get): Fix return type.
43066         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43067
43068 2007-04-12  Eric Blake  <ebb9@byu.net>
43069
43070         * modules/gettime (Depends-on): Remove gettime.
43071         Reported by Dmitry V. Levin.
43072
43073 2007-04-12  Bruno Haible  <bruno@clisp.org>
43074
43075         * modules/fflush (Include): Mention <stdio.h>.
43076         * modules/strtoimax (Include): Mention <inttypes.h>.
43077         * modules/strtoumax (Include): Likewise.
43078
43079 2007-04-12  Eric Blake  <ebb9@byu.net>
43080
43081         * .cvsignore: New file.
43082         * .gitignore: Likewise.
43083
43084 2007-04-12  Bruno Haible  <bruno@clisp.org>
43085
43086         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43087         not before, since $(LDADD) often contains libgnu.a.
43088         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43089         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43090         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43091         Needed on Cygwin.
43092
43093 2007-04-12  Eric Blake  <ebb9@byu.net>
43094
43095         Work around glibc's failure to flush stdin on fclose.
43096         * lib/closein.c (close_stdin): Flush stdin before closing.
43097
43098         Work around glibc's failure to reset seekable stdin on exit.
43099         * modules/closein: New module.
43100         * lib/closein.c: New file.
43101         * lib/closein.h: Likewise.
43102         * m4/closein.m4: Likewise.
43103         * MODULES.html.sh (File stream based Input/Output): Document it.
43104
43105 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43106
43107         * gnulib-tool: Rename generated 'autobuild' script to
43108         'do-autobuild' in --create-megatestdir output.
43109
43110         * doc/gnulib.texi (Build robot for gnulib): Fix.
43111
43112 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43113
43114         * modules/sysexits (Depends-on): Add absolute-header.
43115
43116 2007-04-12  Eric Blake  <ebb9@byu.net>
43117
43118         No need to preserve errno on success.
43119         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43120         Reported by Bruno Haible.
43121
43122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43123
43124         * MODULES.html.sh (Support for maintaining and releasing
43125         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43126
43127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43128
43129         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43130
43131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43132
43133         * modules/autobuild: New module.
43134
43135         * m4/autobuild.m4: New file.
43136
43137 2007-04-11  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43140         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43167         Reported by Eric Blake.
43168
43169 2007-04-11  Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43172
43173 2007-04-10  Bruno Haible  <bruno@clisp.org>
43174
43175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43176         for NaN and Infinity. Needed on FreeBSD 6.1.
43177         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43178         regarding results for "%010a" of Infinity and NaN.
43179         * tests/test-vasprintf-posix.c (test_function): Likewise.
43180         * tests/test-snprintf-posix.h (test_function): Likewise.
43181         * tests/test-sprintf-posix.h (test_function): Likewise.
43182         * tests/test-fprintf-posix.h (test_function): Likewise.
43183         * tests/test-printf-posix.h (test_function): Likewise.
43184         * tests/test-fprintf-posix.out: Likewise.
43185
43186 2007-04-10  Bruno Haible  <bruno@clisp.org>
43187
43188         * modules/locale-tests: New file.
43189         * tests/test-locale.c: New file.
43190
43191         * modules/locale: New file.
43192         * lib/locale_.h: New file.
43193         * m4/locale_h.m4: New file.
43194
43195 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43196             Bruno Haible  <bruno@clisp.org>
43197
43198         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43199         be determined, test for availability of the copysignf, copysign,
43200         copysignl functions.
43201         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43202         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43203         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43204
43205 2007-04-09  Eric Blake  <ebb9@byu.net>
43206
43207         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43208         * modules/stdio (Makefile.am): Support fflush.
43209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43210         * modules/fflush: New file.
43211         * lib/fflush.c: Likewise.
43212         * m4/fflush.m4: Likewise.
43213         * modules/fflush-tests: New test.
43214         * tests/test-fflush.c: Likewise.
43215         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43216
43217 2007-04-06  Bruno Haible  <bruno@clisp.org>
43218
43219         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43220         (VASNPRINTF): Use signbit for faster determination whether to print a
43221         minus sign.
43222         * modules/vasnprintf (Files): Remove lib/float+.h.
43223         * modules/fprintf-posix (Depends-on): Add signbit.
43224         * modules/snprintf-posix (Depends-on): Likewise.
43225         * modules/sprintf-posix (Depends-on): Likewise.
43226         * modules/vasnprintf-posix (Depends-on): Likewise.
43227         * modules/vasprintf-posix (Depends-on): Likewise.
43228         * modules/vfprintf-posix (Depends-on): Likewise.
43229         * modules/vsnprintf-posix (Depends-on): Likewise.
43230         * modules/vsprintf-posix (Depends-on): Likewise.
43231
43232 2007-04-06  Bruno Haible  <bruno@clisp.org>
43233
43234         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43235         * tests/test-frexpl.c (main): Likewise.
43236         * tests/test-ldexpl.c (main): Likewise.
43237         * modules/frexp-tests (Depends-on): Add signbit.
43238         * modules/frexpl-tests (Depdends-on): Likewise.
43239         * modules/ldexpl-tests (Depdends-on): Likewise.
43240
43241 2007-04-06  Bruno Haible  <bruno@clisp.org>
43242
43243         * modules/signbit-tests: New file.
43244         * tests/test-signbit.c: New file.
43245
43246         * modules/signbit: New file.
43247         * lib/signbitf.c: New file.
43248         * lib/signbitd.c: New file.
43249         * lib/signbitl.c: New file.
43250         * m4/signbit.m4: New file.
43251         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43252         (signbit): New macro.
43253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43254         REPLACE_SIGNBIT.
43255         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43256         REPLACE_FREXPL into math.h.
43257
43258 2007-04-06  Bruno Haible  <bruno@clisp.org>
43259
43260         * modules/isnanf-nolibm-tests: New file.
43261         * tests/test-isnanf.c: New file.
43262
43263         * modules/isnanf-nolibm: New file.
43264         * lib/isnanf.h: New file.
43265         * lib/isnanf.c: New file.
43266         * lib/isnan.c: Consider the USE_FLOAT macro.
43267         * m4/isnanf.m4: New file.
43268
43269 2007-04-06  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43272         (Link): New section.
43273
43274         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43275
43276 2007-04-06  Bruno Haible  <bruno@clisp.org>
43277
43278         Assume the 'long double' type.
43279         * m4/longdouble.m4: Remove file.
43280         * config/srclist.txt: Don't mention longdouble.m4.
43281         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43282         * lib/float+.h: Likewise.
43283         * lib/frexp.c: Likewise.
43284         * lib/printf-args.h: Likewise.
43285         * lib/printf-args.c: Likewise.
43286         * lib/printf-frexp.c: Likewise.
43287         * lib/printf-parse.c: Likewise.
43288         * lib/vasnprintf.c: Likewise.
43289         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43290         * m4/intl.m4: Likewise.
43291         * m4/isnanl.m4: Likewise.
43292         * m4/printf.m4: Likewise.
43293         * m4/printf-frexpl.m4: Likewise.
43294         * m4/vasnprintf.m4: Likewise.
43295         * modules/allocsa (Files): Remove m4/longdouble.m4.
43296         * modules/gettext (Files): Likewise.
43297         * modules/relocatable-prog-wrapper (Files): Likewise.
43298         * modules/vasnprintf (Files): Likewise.
43299         * modules/isnanl (Files): Likewise.
43300         (Include): Simplify.
43301         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43302         (Include): Simplify.
43303         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43304         (Include): Simplify.
43305         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43306         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43307         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43309         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43311         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43312         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43313         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43315         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43317         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43318         * tests/test-isnanl.c: Likewise.
43319         * tests/test-snprintf-posix.h: Likewise.
43320         * tests/test-sprintf-posix.h: Likewise.
43321         * tests/test-vasnprintf-posix.c: Likewise.
43322         * tests/test-vasnprintf-posix2.c: Likewise.
43323         * tests/test-vasprintf-posix.c: Likewise.
43324
43325 2007-04-06  Bruno Haible  <bruno@clisp.org>
43326
43327         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43328         * lib/math_.h [__DECC]: Include the overridden include file through
43329         #include_next, outside the double-inclusion guard.
43330         * lib/stdio_.h [__DECC]: Likewise.
43331         * lib/stdlib_.h [__DECC]: Likewise.
43332         * lib/string_.h [__DECC]: Likewise.
43333         * lib/time_.h [__DECC]: Likewise.
43334         * lib/wchar_.h [__DECC]: Likewise.
43335         * lib/wctype_.h [__DECC]: Likewise.
43336         * lib/inttypes_.h [__DECC]: Likewise.
43337         Reported by Albert Chin <china@thewrittenword.com> in
43338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43339
43340 2007-04-04  Eric Blake  <ebb9@byu.net>
43341
43342         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43343         1.5.x.
43344
43345 2007-04-04  Bruno Haible  <bruno@clisp.org>
43346
43347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43348         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43349
43350 2007-04-04  Bruno Haible  <bruno@clisp.org>
43351
43352         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43353         results for "%010a" of Infinity and NaN.
43354         * tests/test-vasprintf-posix.c (test_function): Likewise.
43355         * tests/test-snprintf-posix.h (test_function): Likewise.
43356         * tests/test-sprintf-posix.h (test_function): Likewise.
43357         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43358         * tests/test-printf-posix.h (test_function): Likewise.
43359         * tests/test-fprintf-posix.out: Update.
43360         Needed for FreeBSD 6.1.
43361
43362 2007-04-04  Bruno Haible  <bruno@clisp.org>
43363
43364         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43365         directly used by the gnulib modules nor by gnulib-tool.
43366
43367 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43368
43369         * DEPENDENCIES: Give overall description of version dependency
43370         desirability.  Use more-typical names for apps.
43371         Add shell, coreutils, diffutils, grep, tar, gzip.
43372
43373 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43374
43375         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43376
43377 2007-04-04  Karl Berry  <karl@gnu.org>
43378
43379         * MODULES.html.sh (func_module): missing '.
43380
43381 2007-04-03  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/argmatch-tests (Makefile.am): New variable
43384         test_argmatch_LDADD.
43385         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43386         * modules/array-list-tests (Makefile.am): New variable
43387         test_array_list_LDADD.
43388         * modules/array-oset-tests (Makefile.am): New variable
43389         test_array_oset_LDADD.
43390         * modules/avltree-list-tests (Makefile.am): New variable
43391         test_avltree_list_LDADD.
43392         * modules/avltree-oset-tests (Makefile.am): New variable
43393         test_avltree_oset_LDADD.
43394         * modules/avltreehash-list-tests (Makefile.am): New variable
43395         test_avltreehash_list_LDADD.
43396         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43397         test_canonicalize_lgpl_LDADD.
43398         * modules/carray-list-tests (Makefile.am): New variable
43399         test_carray_list_LDADD.
43400         * modules/dirname-tests (Makefile.am): New variable
43401         test_dirname_LDADD.
43402         * modules/linked-list-tests (Makefile.am): New variable
43403         test_linked_list_LDADD.
43404         * modules/linkedhash-list-tests (Makefile.am): New variable
43405         test_linkedhash_list_LDADD.
43406         * modules/rbtree-list-tests (Makefile.am): New variable
43407         test_rbtree_list_LDADD.
43408         * modules/rbtree-oset-tests (Makefile.am): New variable
43409         test_rbtree_oset_LDADD.
43410         * modules/rbtreehash-list-tests (Makefile.am): New variable
43411         test_rbtreehash_list_LDADD.
43412         * modules/xvasprintf-tests (Makefile.am): New variable
43413         test_xvasprintf_LDADD.
43414         Reported by Eric Blake.
43415
43416 2007-04-03  Eric Blake  <ebb9@byu.net>
43417
43418         * DEPENDENCIES: Weaken m4 requirements.
43419
43420 2007-04-03  Bruno Haible  <bruno@clisp.org>
43421
43422         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43423         * modules/isnanl-tests (configure.ac): Likewise.
43424
43425 2007-04-03  Ben Pfaff  <blp@gnu.org>
43426
43427         * modules/iconv_open: Add $(srcdir)/ to source directory
43428         references in Makefile fragments that call gperf, to fix VPATH
43429         builds.
43430
43431 2007-04-03  Bruno Haible  <bruno@clisp.org>
43432
43433         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43434         * lib/ldexpl.c: Undo last change.
43435
43436 2007-04-03  Bruno Haible  <bruno@clisp.org>
43437
43438         * modules/printf-frexpl (Depends-on): Undo last change.
43439         (Files): Add m4/ldexpl.m4.
43440
43441 2007-04-03  Bruno Haible  <bruno@clisp.org>
43442
43443         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43444         * modules/isnanl (Link): New section.
43445
43446         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43447         * modules/frexp (Link): New section.
43448
43449         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43450         * modules/frexpl (Link): New section.
43451
43452         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43453         * modules/ldexpl (Link): New section.
43454
43455 2007-04-03  Bruno Haible  <bruno@clisp.org>
43456
43457         * modules/TEMPLATE-EXTENDED: New file.
43458         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43459
43460 2007-04-03  Bruno Haible  <bruno@clisp.org>
43461
43462         * DEPENDENCIES: New file.
43463         Suggested by Simon Josefsson.
43464
43465 2007-04-03  Bruno Haible  <bruno@clisp.org>
43466
43467         * doc/gnulib.texi: Escape @.
43468
43469 2007-04-03  James Youngman  <jay@gnu.org>
43470         and Paul Eggert  <eggert@cs.ucla.edu>
43471
43472         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43473         birthtime on all systems that have birthtime, not just those which
43474         use st_birthtimensec rather than st_birthtim.  Putting zero in
43475         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43476         that the birth time is not available for files on an NFS mount.
43477
43478 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43479
43480         * modules/memxor: Move back from crypto/, suggested by Bruno.
43481         * modules/crypto/hmac-sha1: Fix memxor dependency.
43482
43483         * modules/crypto/gc: Moved from ../.
43484
43485 2007-04-02  Eric Blake  <ebb9@byu.net>
43486
43487         * lib/ldexpl.c (includes): Avoid libm.
43488
43489         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43490
43491 2007-04-02  Bruno Haible  <bruno@clisp.org>
43492
43493         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43494         on IRIX.
43495
43496 2007-04-02  Bruno Haible  <bruno@clisp.org>
43497
43498         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43499         x86 or x86_64 platforms running MacOS X.
43500         Reported by Ryan Schmidt <@ryandesign.com>.
43501
43502 2007-04-02  Bruno Haible  <bruno@clisp.org>
43503
43504         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43505         i386.
43506
43507 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43508
43509         * modules/crypto/arcfour: Moved from ../.
43510         * modules/crypto/arcfour-tests: Moved from ../.
43511         * modules/crypto/arctwo: Moved from ../.
43512         * modules/crypto/arctwo-tests: Moved from ../.
43513         * modules/crypto/des: Moved from ../.
43514         * modules/crypto/des-tests: Moved from ../.
43515         * modules/crypto/gc-arcfour: Moved from ../.
43516         * modules/crypto/gc-arcfour-tests: Moved from ../.
43517         * modules/crypto/gc-arctwo: Moved from ../.
43518         * modules/crypto/gc-arctwo-tests: Moved from ../.
43519         * modules/crypto/gc-des: Moved from ../.
43520         * modules/crypto/gc-des-tests: Moved from ../.
43521         * modules/crypto/gc-hmac-md5: Moved from ../.
43522         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43523         * modules/crypto/gc-hmac-sha1: Moved from ../.
43524         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43525         * modules/crypto/gc-md2: Moved from ../.
43526         * modules/crypto/gc-md2-tests: Moved from ../.
43527         * modules/crypto/gc-md4: Moved from ../.
43528         * modules/crypto/gc-md4-tests: Moved from ../.
43529         * modules/crypto/gc-md5: Moved from ../.
43530         * modules/crypto/gc-md5-tests: Moved from ../.
43531         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43532         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43533         * modules/crypto/gc-random: Moved from ../.
43534         * modules/crypto/gc-rijndael: Moved from ../.
43535         * modules/crypto/gc-rijndael-tests: Moved from ../.
43536         * modules/crypto/gc-sha1: Moved from ../.
43537         * modules/crypto/gc-sha1-tests: Moved from ../.
43538         * modules/crypto/gc-tests: Moved from ../.
43539         * modules/crypto/hmac-md5: Moved from ../.
43540         * modules/crypto/hmac-md5-tests: Moved from ../.
43541         * modules/crypto/hmac-sha1: Moved from ../.
43542         * modules/crypto/hmac-sha1-tests: Moved from ../.
43543         * modules/crypto/md2: Moved from ../.
43544         * modules/crypto/md2-tests: Moved from ../.
43545         * modules/crypto/md4: Moved from ../.
43546         * modules/crypto/md4-tests: Moved from ../.
43547         * modules/crypto/md5: Moved from ../.
43548         * modules/crypto/md5-tests: Moved from ../.
43549         * modules/crypto/memxor: Moved from ../.
43550         * modules/crypto/rijndael: Moved from ../.
43551         * modules/crypto/rijndael-tests: Moved from ../.
43552         * modules/crypto/sha1: Moved from ../.
43553
43554 2007-03-30  James Youngman  <jay@gnu.org>
43555
43556         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43557         rename() to change the ctime of a file (because ctime is unaffected
43558         by rename on jfs2 on AIX 5.1).
43559         (main): Start by doing cleanup, in case a previous run failed leaving
43560         test files behind.
43561
43562 2007-03-31  Bruno Haible  <bruno@clisp.org>
43563
43564         Support old proprietary implementations of iconv.
43565         * modules/iconv_open: New file.
43566         * lib/iconv_.h: New file.
43567         * m4/iconv_h.m4: New file.
43568         * lib/iconv_open.c: New file.
43569         * lib/iconv_open-aix.gperf: New file.
43570         * lib/iconv_open-hpux.gperf: New file.
43571         * lib/iconv_open-irix.gperf: New file.
43572         * lib/iconv_open-osf.gperf: New file.
43573         * m4/iconv_open.m4: New file.
43574         * modules/linebreak (Depends-on): Add iconv_open.
43575         * modules/striconv (Depends-on): Likewise.
43576         * modules/striconveh (Depends-on): Likewise.
43577         * modules/unicodeio (Depends-on): Likewise.
43578         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43579         (iconv_t)(-1).
43580         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43581         conversion if cd is (iconv_t)(-1).
43582         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43583         is not possible.
43584
43585 2007-03-31  Bruno Haible  <bruno@clisp.org>
43586
43587         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43588         work on Solaris either. Protect also second use of "autodetect_jp".
43589
43590 2007-03-31  Bruno Haible  <bruno@clisp.org>
43591
43592         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43593         the function is not present.
43594
43595 2007-03-31  Bruno Haible  <bruno@clisp.org>
43596
43597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43598         the function is not present.
43599
43600 2007-03-31  Bruno Haible  <bruno@clisp.org>
43601
43602         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43603         a bug in HP-UX iconv_open().
43604
43605 2007-03-31  Bruno Haible  <bruno@clisp.org>
43606
43607         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43608         (Mathematics <math.h>): New section, add fpieee.
43609         (Input/output <stdio.h>): Add fseterr.
43610         (Mathematics <math.h>): New section, add printf-frexp.
43611         (Container data structures): Add sublist.
43612         (Core language properties): Add fpucw, inline.
43613         (Functions for greatest-width integer types <inttypes.h>): Add
43614         imaxabs, imaxdiv, inttypes.
43615         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43616         isnanl-nolibm, ldexp.
43617         (Mathematics <math.h>): New section, add printf-frexpl.
43618         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43619         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43620         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43621         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43622         (Unicode string functions): Add unistr/u*-mbtoucr.
43623         (Java): Add javacomp-script, javaexec-script.
43624         (C#): Add csharpcomp-script, csharpexec-script.
43625         (Support for building libraries and executables): Add havelib,
43626         relocatable-*.
43627         (Support for maintaining and releasing projects): Renamed from
43628         'Support for maintaining and release projects'. Add announce-gen.
43629
43630 2007-03-31  Bruno Haible  <bruno@clisp.org>
43631
43632         * README: Talk primarily about git.
43633         (git and CVS): Renamed from CVS.
43634         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43635         gnulib is available through git.
43636         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43637
43638 2007-03-30  Bruno Haible  <bruno@clisp.org>
43639
43640         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43641         * lib/poll_.h: Likewise.
43642         * lib/stat_.h: Likewise.
43643         * lib/sys_time_.h: Likewise.
43644         * lib/sysexit_.h: Likewise.
43645         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43646         * lib/stdbool_.h: Likewise.
43647         * lib/byteswap_.h: Add double-inclusion guard.
43648
43649 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43650
43651         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43652
43653 2007-03-30  Karl Berry  <karl@gnu.org>
43654
43655         * config/srclist-update: double space after USA in the license
43656         substitution, since that's how it's usually (?) written.
43657
43658 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43659
43660         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43661         reported by Bruno Haible.
43662
43663 2007-03-29  Bruno Haible  <bruno@clisp.org>
43664
43665         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43666         a bug in AIX iconv().
43667
43668 2007-03-29  Bruno Haible  <bruno@clisp.org>
43669
43670         * modules/ldexpl-tests: New file.
43671         * tests/test-ldexpl.c: New file.
43672
43673 2007-03-29  Bruno Haible  <bruno@clisp.org>
43674
43675         * lib/ldexpl.c: Include fpucw.h.
43676         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43677         multiplication.
43678         * modules/ldexpl (Depends-on): Add fpucw.
43679
43680 2007-03-29  Bruno Haible  <bruno@clisp.org>
43681
43682         * modules/ldexpl: New file.
43683         * m4/ldexpl.m4: New file.
43684         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43685         set.
43686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43687         REPLACE_LDEXPL.
43688         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43689         REPLACE_LDEXPL.
43690         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43691         gl_FUNC_LDEXPL_WORKS.
43692         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43693         * modules/mathl (Files): Remove lib/ldexpl.c.
43694         (Depends-on): Add ldexpl.
43695
43696 2007-03-29  Bruno Haible  <bruno@clisp.org>
43697
43698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43699
43700 2007-03-29  Bruno Haible  <bruno@clisp.org>
43701
43702         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43703         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43704         and possibly also HP-UX.
43705         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43706         work on AIX, IRIX, HP-UX, OSF/1.
43707         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43708         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43709         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43710         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43711         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43712         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43713
43714 2007-03-29  Bruno Haible  <bruno@clisp.org>
43715
43716         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43717
43718 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43719
43720         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43721         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43722
43723 2007-03-29  Eric Blake  <ebb9@byu.net>
43724
43725         * lib/acl-internal.h: Remove redundant include.
43726         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43727         Cygwin when a file is locked.
43728
43729 2007-03-29  Bruno Haible  <bruno@clisp.org>
43730
43731         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43732         file.
43733         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43734
43735 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43736
43737         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43738         try to remove a parent directory if the child couldn't be removed
43739         (except for the first rmdir, which could fail because the child
43740         doesn't exist).  Problem reported by Jeff Blaine in
43741         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43742
43743 2007-03-28  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/striconveh.c (utf8conv_carefully): New function.
43746         (mem_cd_iconveh_internal): Invoke it.
43747
43748 2007-03-28  Bruno Haible  <bruno@clisp.org>
43749
43750         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43751         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43752         input.
43753         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43754         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43755         unistr/u8-uctomb.
43756
43757 2007-03-28  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/unistr/u8-mbtoucr: New file.
43760         * lib/unistr/u8-mbtoucr.c: New file.
43761         * modules/unistr/u16-mbtoucr: New file.
43762         * lib/unistr/u16-mbtoucr.c: New file.
43763         * modules/unistr/u16-mbtoucr: New file.
43764         * lib/unistr/u16-mbtoucr.c: New file.
43765         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43766
43767 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43768             Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43771         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43772         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43773
43774         * m4/stdio_h.m4: Add stubs for vasprintf too.
43775
43776         * modules/stdio: Support vasprintf in sed command.
43777
43778         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43779         vasprintf.h.  Add stdio module indicator.
43780
43781         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43782         vasprintf.h.
43783
43784         * lib/vasprintf.h: File removed.
43785
43786         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43787         * lib/vasprintf.c: Ditto.
43788         * lib/xvasprintf.c: Ditto.
43789         * tests/test-vasprintf-posix.c: Ditto.
43790         * tests/test-vasprintf.c: Ditto.
43791
43792 2007-03-27  Bruno Haible  <bruno@clisp.org>
43793
43794         Make vasnprintf multithread-safe.
43795         * lib/vasnprintf.c (decimal_point_char): New function.
43796         (VASNPRINTF): Use it.
43797         Suggested by Simon Josefsson.
43798
43799 2007-03-27  Eric Blake  <ebb9@byu.net>
43800
43801         Support sub-second birthtime on cygwin.
43802         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43803         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43804         (get_stat_birthtime): Also work with st_birthtim.
43805
43806 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43807
43808         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43809         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43810         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43811         (get_stat_birthtime_ns): Simplify compile-time tests.
43812         (get_stat_birthtime): Change the API to look like
43813         get_stat_mtime etc., except return a negative tv_nsec on error.
43814         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43815         Don't check for "spare" fields.
43816         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43817         or for struct stat.st_birthtime, as these tests aren't used.
43818         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43819
43820 2007-03-27  Bruno Haible  <bruno@clisp.org>
43821
43822         * lib/stat-time.h: Include <sys/stat.h>.
43823
43824 2007-03-27  James Youngman  <jay@gnu.org>
43825
43826         * lib/stat-time.h (get_stat_birthtime): New function for
43827           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43828         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43829           and its variants.
43830         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43831         * modules/stat-time-test: New file.
43832         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43833
43834 2007-03-26  Bruno Haible  <bruno@clisp.org>
43835
43836         Better support of signalling NaNs.
43837         * lib/atanl.c: Include isnanl.h.
43838         (atanl): Perform test for NaN at the beginning of the function and
43839         through a call to isnanl.
43840         * lib/cosl.c: Include isnanl.h.
43841         (cosl): Perform test for NaN at the beginning of the function and
43842         through a call to isnanl.
43843         * lib/ldexpl.c: Include isnanl.h.
43844         (ldexpl): Perform test for NaN through a call to isnanl.
43845         * lib/logl.c: Include isnanl.h.
43846         (logl): Perform test for NaN at the beginning of the function and
43847         through a call to isnanl.
43848         * lib/sinl.c: Include isnanl.h.
43849         (sinl): Perform test for NaN at the beginning of the function and
43850         through a call to isnanl.
43851         * lib/sqrtl.c: Include isnanl.h.
43852         (sqrtl): Perform test for NaN at the beginning of the function and
43853         through a call to isnanl.
43854         * lib/tanl.c: Include isnanl.h.
43855         (tanl): Perform test for NaN at the beginning of the function and
43856         through a call to isnanl.
43857         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43858         * modules/mathl (Depends-on): Add isnanl.
43859
43860 2007-03-26  Eric Blake  <ebb9@byu.net>
43861
43862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43863         regression in logic sense of previous patch.
43864
43865 2007-03-26  Bruno Haible  <bruno@clisp.org>
43866
43867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43868         unportable shell command "if ! ...".
43869         Reported by Ralf Wildenhues.
43870
43871 2007-03-25  Bruno Haible  <bruno@clisp.org>
43872
43873         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43874         <sysexits.h> file, and only add EX_CONFIG.
43875         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43876         absolute file name and whether it is sufficient. Substitute also
43877         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43878         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43879         ABSOLUTE_SYSEXITS_H into sysexits.h.
43880
43881 2007-03-25  Bruno Haible  <bruno@clisp.org>
43882
43883         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43884         hints is NULL.
43885
43886 2007-03-25  Bruno Haible  <bruno@clisp.org>
43887
43888         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43889         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43890
43891 2007-03-25  Bruno Haible  <bruno@clisp.org>
43892
43893         * lib/vasnprintf.c: Include langinfo.h.
43894         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43895         multithread-safe.
43896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43902         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43905         Reported by Simon Josefsson.
43906
43907 2007-03-25  Bruno Haible  <bruno@clisp.org>
43908
43909         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43910         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43911         * modules/vasnprintf (Depends-on): Add stdint.
43912
43913 2007-03-25  Bruno Haible  <bruno@clisp.org>
43914
43915         * modules/fpieee: New file.
43916         * m4/fpieee.m4: New file.
43917         * modules/isnan-nolibm (Depends-on): Add fpieee.
43918         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43919         * modules/isnanl (Depends-on): Add fpieee.
43920
43921 2007-03-25  Bruno Haible  <bruno@clisp.org>
43922
43923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43924
43925 2007-03-25  Bruno Haible  <bruno@clisp.org>
43926
43927         Avoid test failures on IRIX 6.5.
43928         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43929         (main): Use it.
43930         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43931         macros.
43932         (main): Use them.
43933
43934 2007-03-25  Bruno Haible  <bruno@clisp.org>
43935
43936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43937         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43938         exists but doesn't work.
43939         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43940         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43942         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43943
43944 2007-03-25  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43947         returns inf. Needed on IRIX 6.5.
43948
43949 2007-03-25  Bruno Haible  <bruno@clisp.org>
43950
43951         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43952         (main): Use isnanl instead of x != x idiom.
43953         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43954
43955         * tests/test-frexp.c: Include isnan.h.
43956         (main): Use isnan instead of x != x idiom.
43957         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43958
43959 2007-03-25  Bruno Haible  <bruno@clisp.org>
43960
43961         * tests/test-frexp.c (NaN): New function/macro.
43962         (main): Use it instead of 0.0 / 0.0.
43963         * tests/test-isnan.c (NaN): New function/macro.
43964         (main): Use it instead of 0.0 / 0.0.
43965         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43966         (test_function): Use it instead of 0.0 / 0.0.
43967         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43968         (test_function): Use it instead of 0.0 / 0.0.
43969         * tests/test-snprintf-posix.h (NaN): New function/macro.
43970         (test_function): Use it instead of 0.0 / 0.0.
43971         * tests/test-sprintf-posix.h (NaN): New function/macro.
43972         (test_function): Use it instead of 0.0 / 0.0.
43973         * tests/test-fprintf-posix.h (NaN): New function/macro.
43974         (test_function): Use it instead of 0.0 / 0.0.
43975         * tests/test-printf-posix.h (NaN): New function/macro.
43976         (test_function): Use it instead of 0.0 / 0.0.
43977
43978         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43979
43980 2007-03-25  Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43983
43984 2007-03-25  Bruno Haible  <bruno@clisp.org>
43985
43986         * lib/regexec.c (merge_state_with_log): Make static.
43987
43988 2007-03-25  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/trigl.c (kernel_rem_pio2): Make static.
43991
43992 2007-03-25  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/sincosl.c (sincosl_table): Make static.
43995
43996 2007-03-25  Bruno Haible  <bruno@clisp.org>
43997
43998         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43999         if the compiler does not support C99.
44000
44001 2007-03-25  Bruno Haible  <bruno@clisp.org>
44002
44003         * modules/time (Makefile.am): Ensure all rule action lines start with a
44004         tab.
44005
44006 2007-03-24  Bruno Haible  <bruno@clisp.org>
44007
44008         * modules/tsearch-tests: New file.
44009         * tests/test-tsearch.sh: New file.
44010         * tests/test-tsearch.c: New file, mostly copied from glibc.
44011
44012         * modules/search-tests: New file.
44013         * tests/test-search.c: New file.
44014
44015         * modules/search: New file.
44016         * lib/search_.h: New file, incorporating lib/tsearch.h.
44017         * m4/search_h.m4: New file.
44018         * lib/tsearch.h: Remove file.
44019         * lib/tsearch.c: Include search.h instead of tsearch.h.
44020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44021         HAVE_TSEARCH.
44022         * modules/tsearch (Files): Remove lib/tsearch.h.
44023         (Depends-on): Add search.
44024         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44025         (Include): Change tsearch.h into search.h.
44026
44027 2007-03-24  Bruno Haible  <bruno@clisp.org>
44028
44029         * modules/fpucw: New file.
44030         * lib/fpucw.h: New file.
44031         * lib/frexp.c: Include fpucw.h.
44032         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44033         (FUNC): Use them.
44034         * lib/printf-frexp.c: Include fpucw.h.
44035         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44036         (FUNC): Use them.
44037         * lib/vasnprintf.c: Include fpucw.h.
44038         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44039         'long double' calculations.
44040         * tests/test-frexpl.c: Include fpucw.h.
44041         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44042         * tests/test-printf-frexpl.c: Include fpucw.h.
44043         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44044         * modules/frexpl (Depends-on): Add fpucw.
44045         * modules/printf-frexpl (Depends-on): Likewise.
44046         * modules/fprintf-posix (Depends-on): Likewise.
44047         * modules/snprintf-posix (Depends-on): Likewise.
44048         * modules/sprintf-posix (Depends-on): Likewise.
44049         * modules/vasnprintf-posix (Depends-on): Likewise.
44050         * modules/vasprintf-posix (Depends-on): Likewise.
44051         * modules/vfprintf-posix (Depends-on): Likewise.
44052         * modules/vsnprintf-posix (Depends-on): Likewise.
44053         * modules/vsprintf-posix (Depends-on): Likewise.
44054         * modules/frexpl-tests (Depends-on): Likewise.
44055         * modules/printf-frexpl-tests (Depends-on): Likewise.
44056
44057 2007-03-24  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/float+.h: New file.
44060         * lib/isnan.c: Include float+.h.
44061         (SIZE): New macro.
44062         (FUNC): Compare only SIZE bytes of the value.
44063         * lib/vasnprintf.c: Include float+.h.
44064         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44065         SIZEOF_LDBL or SIZEOF_DBL bytes.
44066         * modules/isnan-nolibm (Files): Add lib/float+.h.
44067         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44068         * modules/isnanl (Files): Add lib/float+.h.
44069         * modules/vasnprintf (Files): Add lib/float+.h.
44070
44071 2007-03-24  Bruno Haible  <bruno@clisp.org>
44072
44073         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44074         include isnanl-nolibm.h.
44075
44076 2007-03-24  Bruno Haible  <bruno@clisp.org>
44077
44078         * tests/test-read-file.c (main): Don't produce spurious output for
44079         expected situations. Make the test fail if it encountered unexpected
44080         results.
44081
44082 2007-03-24  Bruno Haible  <bruno@clisp.org>
44083
44084         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44085         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44086
44087 2007-03-24  Bruno Haible  <bruno@clisp.org>
44088
44089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44090
44091 2007-03-24  Bruno Haible  <bruno@clisp.org>
44092
44093         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44094         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44095
44096         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44097         * modules/utf8-ucs4: Turn into a symbolic link to module
44098         unistr/u8-mbtouc.
44099
44100         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44101         utf8-ucs4-unsafe.
44102         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44103         unistr/u8-mbtouc-unsafe.
44104
44105         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44106         * modules/utf16-ucs4: Turn into a symbolic link to module
44107         unistr/u16-mbtouc.
44108
44109         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44110         utf16-ucs4-unsafe.
44111         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44112         unistr/u16-mbtouc-unsafe.
44113
44114         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44115         * modules/ucs4-utf8: Turn into a symbolic link to module
44116         unistr/u8-ubtomb.
44117
44118         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44119         * modules/ucs4-utf16: Turn into a symbolic link to module
44120         unistr/u16-ubtomb.
44121
44122 2007-03-24  Bruno Haible  <bruno@clisp.org>
44123
44124         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44125         Enable the function only if HAVE_INLINE.
44126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44127         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44128         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44129         Enable the function only if HAVE_INLINE.
44130         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44131         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44132         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44133         Enable the function only if HAVE_INLINE.
44134         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44135         Enable the function only if HAVE_INLINE.
44136         * modules/utf8-ucs4: Update.
44137         * modules/utf8-ucs4-unsafe: Update.
44138         * modules/utf16-ucs4: Update.
44139         * modules/utf16-ucs4-unsafe: Update.
44140         * modules/ucs4-utf8: Update.
44141         * modules/ucs4-utf16: Update.
44142
44143 2007-03-24  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/utf8-ucs4.h: Remove file.
44146         * lib/utf8-ucs4-unsafe.h: Remove file.
44147         * lib/utf16-ucs4.h: Remove file.
44148         * lib/utf16-ucs4-unsafe.h: Remove file.
44149         * lib/ucs4-utf8.h: Remove file.
44150         * lib/ucs4-utf16.h: Remove file.
44151         * lib/unistr.h: Include their previous contents.
44152         * m4/utf-ucs4.m4: Remove file.
44153         * m4/ucs4-utf.m4: Remove file.
44154         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44155         (Depends-on): Add unistr/base.
44156         (configure.ac): Remove gl_UTF_UCS4.
44157         (Makefile.am): Update.
44158         (Include): Change to unistr.h.
44159         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44160         (Depends-on): Add unistr/base.
44161         (configure.ac): Remove gl_UTF_UCS4.
44162         (Makefile.am): Update.
44163         (Include): Change to unistr.h.
44164         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44165         (Depends-on): Add unistr/base.
44166         (configure.ac): Remove gl_UTF_UCS4.
44167         (Makefile.am): Update.
44168         (Include): Change to unistr.h.
44169         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44170         (Depends-on): Add unistr/base.
44171         (configure.ac): Remove gl_UTF_UCS4.
44172         (Makefile.am): Update.
44173         (Include): Change to unistr.h.
44174         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44175         (Depends-on): Add unistr/base.
44176         (configure.ac): Remove gl_UCS4_UTF.
44177         (Makefile.am): Update.
44178         (Include): Change to unistr.h.
44179         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44180         (Depends-on): Add unistr/base.
44181         (configure.ac): Remove gl_UCS4_UTF.
44182         (Makefile.am): Update.
44183         (Include): Change to unistr.h.
44184         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44185         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44186         utf8-ucs4-unsafe.h.
44187         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44188         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44189         utf16-ucs4-unsafe.h.
44190         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44191         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44192         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44193         * lib/unistr/u8-strchr.c: Likewise.
44194         * lib/unistr/u8-strrchr.c: Likewise.
44195         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44196         * lib/unistr/u16-strchr.c: Likewise.
44197         * lib/unistr/u16-strrchr.c: Likewise.
44198         * lib/striconveh.c: Update.
44199         * lib/linebreak.c: Update.
44200
44201 2007-03-24  Bruno Haible  <bruno@clisp.org>
44202
44203         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44204         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44205
44206 2007-03-22  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44209
44210 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         * MODULES.html.sh (File system functions): New module write-any-file.
44213         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44214         * m4/write-any-file.m4: New files.
44215
44216 2007-03-23  Eric Blake  <ebb9@byu.net>
44217
44218         * gnulib-tool: Rearrange space-tab sequences, since some editors
44219         like to eat them.
44220
44221 2007-03-23  Eric Blake  <ebb9@byu.net>
44222
44223         * lib/version-etc.c (version_etc_va): Update license wording to
44224         be more concise.  Recommended by Richard Stallman.
44225
44226 2007-03-22  Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/poll.c (MSG_PEEK): New fallback definition.
44229
44230 2007-03-22  Bruno Haible  <bruno@clisp.org>
44231
44232         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44233         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44234         (main): Update.
44235         Fixes a compilation error on BeOS.
44236
44237 2007-03-22  Bruno Haible  <bruno@clisp.org>
44238
44239         * modules/frexpl-tests: New file.
44240         * tests/test-frexpl.c: New file.
44241
44242         * modules/frexpl: New file.
44243         * m4/frexpl.m4: New file.
44244         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44245         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44247         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44248         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44249         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44250
44251 2007-03-22  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/frexpl.c: Share code with lib/frexp.c.
44254         * modules/mathl (Files): Add lib/frexp.c.
44255         (Depends-on): Add isnanl-nolibm.
44256
44257 2007-03-22  Bruno Haible  <bruno@clisp.org>
44258
44259         * modules/printf-frexp (Files): Add m4/frexp.m4.
44260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44261         only if the found frexp function actually works.
44262
44263 2007-03-22  Bruno Haible  <bruno@clisp.org>
44264
44265         * lib/frexp.c: Remove older implementation that uses divisions.
44266
44267 2007-03-21  Bruno Haible  <bruno@clisp.org>
44268
44269         * modules/frexp-tests: New file.
44270         * tests/test-frexp.c: New file.
44271
44272         * modules/frexp: New file.
44273         * lib/frexp.c: New file.
44274         * m4/frexp.m4: New file.
44275         * lib/math_.h (frexp): New declaration.
44276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44277         REPLACE_FREXP.
44278         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44279
44280 2007-03-21  Bruno Haible  <bruno@clisp.org>
44281
44282         * modules/isnanl-tests: New file.
44283         * tests/test-isnanl.c: New file.
44284
44285         * modules/isnanl: New file.
44286         * lib/isnanl.h: New file.
44287         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44288         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44289         gl_FUNC_ISNANL_WORKS.
44290         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44291         New macros.
44292
44293 2007-03-21  Bruno Haible  <bruno@clisp.org>
44294
44295         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44296         lib/isnanl.h.
44297         (Include): Update.
44298         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44299         * lib/vasnprintf.c: Update.
44300         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44301         tests/test-isnanl.h, remove tests/test-isnanl.c.
44302         (Makefile.am): Update.
44303         * tests/test-isnanl-nolibm.c: New file.
44304         * tests/test-isnanl.h: New file.
44305         * tests/test-isnanl.c: Remove file.
44306
44307 2007-03-21  Jim Meyering  <jim@meyering.net>
44308
44309         When trying to open ".", treat ESTALE like EACCES.
44310         * lib/savewd.c (savewd_save): Resort to forking not just upon
44311         failure with EACCES, but also when errno is ESTALE.
44312
44313 2007-03-20  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44316         Needed on AIX 5.1. Reported by Matthew Woehlke.
44317
44318 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44319
44320         Suggestions by Bruno Haible:
44321         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44322         our own.
44323         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44324         * modules/acl (Depends-on): Add gettext.
44325
44326 2007-03-19  Bruno Haible  <bruno@clisp.org>
44327
44328         * modules/iconvme: Remove file.
44329         * lib/iconvme.h: Remove file.
44330         * lib/iconvme.c: Remove file.
44331         * m4/iconvme.m4: Remove file.
44332
44333 2007-03-19  Bruno Haible  <bruno@clisp.org>
44334
44335         * doc/relocatable-maint.texi: Break long shell script line.
44336         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44337
44338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44339
44340         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44341         handle file_has_acl.
44342         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44343         * lib/acl.c: Move header inclusions and related macro defns into
44344         lib/acl-internal.h.
44345         (S_ISLNK): Remove defn, since that's now done for us.
44346         (file_has_acl): Move to lib/file-has-acl.c.
44347         Call acl_trivial if available.  This is the crucial part of the fix.
44348         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44349         shared within the library.  Rewrite a bit, partly to make it compatible
44350         with the GNU coding style.
44351         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44352         Remove unnecessary double-quotes.
44353         Don't test for acl_to_text; the build will catch that.
44354         Replace acl_entries if it doesn't exist and it is needed.
44355         Check for -lsec and acl_trivial (as used on Solaris 10).
44356         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44357         lib/file-has-acl.c.
44358         (Depends-on): Add sys_stat, for S_ISLNK.
44359
44360 2007-03-19  Ben Pfaff  <blp@gnu.org>
44361
44362         * doc/gnulib.texi: Fix typos.
44363         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44364
44365 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44366
44367         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44368         If size is zero here, buf must be zero.
44369
44370 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44371
44372         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44373         <bruno@clisp.org>.
44374
44375 2007-03-18  Bruno Haible  <bruno@clisp.org>
44376
44377         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44378         Suggested by Eric Blake.
44379
44380 2007-03-18  Ben Pfaff  <blp@gnu.org>
44381
44382         * doc/relocatable.texi: Recommend using as prefix a directory
44383         that does not exist and will never be created.  Based on
44384         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44385         and others.
44386
44387 2007-03-17  Bruno Haible  <bruno@clisp.org>
44388
44389         * lib/fchownat.c: Include lchown.h.
44390
44391 2007-03-17  Bruno Haible  <bruno@clisp.org>
44392
44393         Fix endless loop when the given allocated size was > INT_MAX.
44394         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44395         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44396         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44397         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44398         * lib/sprintf.c (sprintf): Likewise.
44399
44400 2007-03-17  Bruno Haible  <bruno@clisp.org>
44401
44402         * tests/test-argp-2.sh (func_compare): Output a context diff.
44403
44404 2007-03-17  Bruno Haible  <bruno@clisp.org>
44405
44406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44407         locale's decimal-point character.
44408
44409 2007-03-17  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44412         before comparing it. Needed because on some platforms (e.g. x86) a
44413         'long double' occupies less bytes than sizeof (long double).
44414
44415 2007-03-17  Bruno Haible  <bruno@clisp.org>
44416
44417         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44418         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44419         * tests/test-getaddrinfo.c (simple): Likewise.
44420         * tests/test-read-file.c (main): Likewise.
44421
44422 2007-03-17  Bruno Haible  <bruno@clisp.org>
44423
44424         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44425
44426 2007-03-17  Bruno Haible  <bruno@clisp.org>
44427
44428         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44429         unused variable.
44430
44431 2007-03-17  Bruno Haible  <bruno@clisp.org>
44432
44433         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44434         * tests/test-c-strncasecmp.c: Likewise.
44435
44436 2007-03-17  Bruno Haible  <bruno@clisp.org>
44437
44438         * modules/stdlib (Depends-on): Add unistd.
44439         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44440         Needed for MacOS X 10.3.
44441
44442 2007-03-17  Bruno Haible  <bruno@clisp.org>
44443
44444         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44445
44446 2007-03-17  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44449
44450 2007-03-17  Bruno Haible  <bruno@clisp.org>
44451
44452         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44453         to reflect files copied from gnulib (with or without modifications).
44454         Suggested by Jim Meyering.
44455
44456 2007-03-17  Eric Blake  <ebb9@byu.net>
44457
44458         * NEWS: Document stdlib change from 2007-02-18.
44459
44460 2007-03-17  Jim Meyering  <jim@meyering.net>
44461
44462         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44463         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44464         someone uses a name containing shell meta-characters.
44465         Reported by Alfred M. Szmidt.
44466
44467         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44468
44469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44470
44471         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44472         and copy gettext configuration files only if configure.ac contains
44473         a use of AM_GNU_GETTEXT_VERSION.
44474
44475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44476
44477         * build-aux/bootstrap (gnulib_name): New variable.
44478         (gnulib_tool_options): Use it.
44479
44480 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44481
44482         * tests/test-des.c: Use new namespace.
44483
44484 2007-03-15  Bruno Haible  <bruno@clisp.org>
44485
44486         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44487         Reported by James Youngman <jay@gnu.org>.
44488
44489 2007-03-15  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44492         declared prototype. Needed with cc on OSF/1 5.1.
44493
44494 2007-03-15  Bruno Haible  <bruno@clisp.org>
44495
44496         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44497         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44498         (struct gl_list_implementation): Add dispose_fn argument to the
44499         'create_empty', 'create' methods.
44500         (struct gl_list_impl_base): Add field 'dispose_fn'.
44501         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44502         argument.
44503         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44504         dispose_fn argument.
44505         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44506         dispose_fn on the dropped values.
44507         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44508         dispose_fn argument.
44509         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44510         dropped values.
44511         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44512         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44513         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44514         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44515         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44516         argument.
44517         (gl_tree_list_free): Call dispose_fn on the dropped values.
44518         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44519         the dropped values.
44520         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44521         Add dispose_fn argument.
44522         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44523         Call dispose_fn on the dropped values.
44524         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44525         Add dispose_fn argument.
44526         (gl_sublist_create): Initialize the 'dispose_fn' field.
44527         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44528         * tests/test-array_list.c (main): Update.
44529         * tests/test-carray_list.c (main): Update.
44530         * tests/test-avltree_list.c (main): Update.
44531         * tests/test-rbtree_list.c (main): Update.
44532         * tests/test-avltreehash_list.c (main): Update.
44533         * tests/test-rbtreehash_list.c (main): Update.
44534         * tests/test-linked_list.c (main): Update.
44535         * tests/test-linkedhash_list.c (main): Update.
44536         * tests/test-array_oset.c (main): Update.
44537
44538 2007-03-15  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44541         (gl_oset_create_empty): Add dispose_fn argument.
44542         (struct gl_oset_implementation): Add dispose_fn argument to
44543         'create_empty' method.
44544         (struct gl_oset_impl_base): Add dispose_fn field.
44545         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44546         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44547         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44548         values.
44549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44550         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44551         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44552         dropped value.
44553         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44554         dropped value.
44555         * tests/test-array_oset.c (main): Update.
44556         * tests/test-avltree_oset.c (main): Update.
44557         * tests/test-rbtree_oset.c (main): Update.
44558         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44559
44560 2007-03-13  Bruno Haible  <bruno@clisp.org>
44561
44562         * tests/test-stdbool.c (i): Update after last patch.
44563
44564 2007-03-12  Bruno Haible  <bruno@clisp.org>
44565
44566         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44567         the iswprint macro. Needed on Solaris 2.5.1.
44568
44569 2007-03-12  Bruno Haible  <bruno@clisp.org>
44570
44571         * tests/test-printf-frexp.c (main): Declare x as volatile.
44572
44573 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44574
44575         * doc/gnulib.texi (Build robot for gnulib): New section.
44576
44577 2007-03-12  Jim Meyering  <jim@meyering.net>
44578
44579         * build-aux/bootstrap: New file.
44580         * build-aux/bootstrap.conf: New file, from coreutils.
44581
44582 2007-03-11  Bruno Haible  <bruno@clisp.org>
44583
44584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44585
44586 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44587
44588         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44589         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44590         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44591
44592 2007-03-11  Bruno Haible  <bruno@clisp.org>
44593
44594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44595         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44596
44597 2007-03-11  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44600         formula. Needed for SunPRO C 5.0.
44601
44602 2007-03-11  Bruno Haible  <bruno@clisp.org>
44603
44604         * modules/long-options (Depends-on): Add getopt.
44605
44606 2007-03-11  Bruno Haible  <bruno@clisp.org>
44607
44608         * modules/modechange (Depends-on): Add stdbool.
44609
44610 2007-03-11  Bruno Haible  <bruno@clisp.org>
44611
44612         * modules/i-ring (Depends-on): Add stdbool.
44613
44614 2007-03-11  Bruno Haible  <bruno@clisp.org>
44615
44616         * modules/gc-des (Depends-on): Add stdbool.
44617
44618 2007-03-11  Bruno Haible  <bruno@clisp.org>
44619
44620         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44621
44622 2007-03-11  Bruno Haible  <bruno@clisp.org>
44623
44624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44625
44626 2007-03-11  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44629
44630 2007-03-11  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/vasnprintf.c (sprintf): Undefine.
44633
44634 2007-03-11  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44637         initializers in SunPRO C and Compaq C compilers.
44638
44639 2007-03-11  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44642         decrementing code ANSI C compliant.
44643
44644 2007-03-11  Bruno Haible  <bruno@clisp.org>
44645
44646         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44647         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44648
44649 2007-03-11  Bruno Haible  <bruno@clisp.org>
44650
44651         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44652         <stdbool.h> substitute doesn't pass.
44653
44654 2007-03-11  Bruno Haible  <bruno@clisp.org>
44655
44656         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44657
44658 2007-03-11  Bruno Haible  <bruno@clisp.org>
44659
44660         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44661         script, for submission to autobuild.josefsson.org.
44662
44663 2007-03-10  Bruno Haible  <bruno@clisp.org>
44664
44665         * modules/canonicalize-lgpl-tests: New file.
44666         * tests/test-canonicalize-lgpl.sh: New file.
44667         * tests/test-canonicalize-lgpl.c: New file.
44668
44669         * modules/c-strcase-tests: New file.
44670         * tests/test-c-strcase.sh: New file.
44671         * tests/test-c-strcasecmp.c: New file.
44672         * tests/test-c-strncasecmp.c: New file.
44673
44674         * modules/atexit-tests: New file.
44675         * tests/test-atexit.sh: New file.
44676         * tests/test-atexit.c: New file.
44677
44678 2007-03-10  Bruno Haible  <bruno@clisp.org>
44679
44680         * tests/test-binary-io.sh: Use temporary filenames that are not so
44681         likely to clash with those of other tests (in a parallel make).
44682         * tests/test-binary-io.c: Likewise.
44683
44684 2007-03-10  Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44687         fallback; use #error instead.
44688         Suggested by Simon Josefsson.
44689
44690 2007-03-10  Bruno Haible  <bruno@clisp.org>
44691
44692         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44693         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44694         first and the last.
44695
44696 2007-03-10  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44699
44700 2007-03-10  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44703         "make distcheck".
44704         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44705         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44706         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44707
44708 2007-03-10  Bruno Haible  <bruno@clisp.org>
44709
44710         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44711         variable.
44712         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44713         variable.
44714
44715 2007-03-09  Eric Blake  <ebb9@byu.net>
44716         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44717
44718         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44719         types are not being provided by gnulib.
44720         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44721         types are supported.
44722
44723 2007-03-10  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/stdio_.h (__attribute__): New macro.
44726         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44727         vsprintf): Specify __attribute__ __format__ for GCC.
44728         Suggested by Eric Blake.
44729
44730 2007-03-09  Bruno Haible  <bruno@clisp.org>
44731
44732         * modules/printf-posix-tests: New file.
44733         * tests/test-printf-posix.sh: New file.
44734         * tests/test-printf-posix.c: New file.
44735
44736         * modules/printf-posix: New file.
44737         * lib/printf.c: New file.
44738         * m4/printf-posix-rpl.m4: New file.
44739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44740         REPLACE_PRINTF.
44741         * lib/stdio_.h (printf): New declaration.
44742         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44743         ____strfmon____): New macros.
44744         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44745         REPLACE_PRINTF.
44746
44747 2007-03-09  Bruno Haible  <bruno@clisp.org>
44748
44749         * tests/test-vasnprintf-posix2.sh: New file.
44750         * tests/test-vasnprintf-posix2.c: New file.
44751         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44752         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44753         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44754
44755         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44756         a locale dependent decimal point, rather than always '.'.
44757
44758 2007-03-09  Eric Blake  <ebb9@byu.net>
44759
44760         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44761         spite of platforms like Tandem/NSK that define it to -1.
44762
44763 2007-03-08  Bruno Haible  <bruno@clisp.org>
44764
44765         * modules/vprintf-posix-tests: New file.
44766         * tests/test-vprintf-posix.sh: New file.
44767         * tests/test-vprintf-posix.c: New file.
44768         * tests/test-printf-posix.h: New file.
44769
44770         * modules/vprintf-posix: New file.
44771         * lib/vprintf.c: New file.
44772         * m4/vprintf-posix.m4: New file.
44773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44774         REPLACE_VPRINTF.
44775         * lib/stdio_.h (vprintf): New declaration.
44776         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44777         REPLACE_VPRINTF.
44778
44779 2007-03-08  Bruno Haible  <bruno@clisp.org>
44780
44781         * modules/fprintf-posix-tests: New file.
44782         * tests/test-fprintf-posix.sh: New file.
44783         * tests/test-fprintf-posix.c: New file.
44784
44785         * modules/fprintf-posix: New file.
44786         * lib/fprintf.c: New file.
44787         * m4/fprintf-posix.m4: New file.
44788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44789         REPLACE_FPRINTF.
44790         * lib/stdio_.h (fprintf): New declaration.
44791         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44792         REPLACE_FPRINTF.
44793
44794 2007-03-08  Bruno Haible  <bruno@clisp.org>
44795
44796         * modules/vfprintf-posix-tests: New file.
44797         * tests/test-vfprintf-posix.sh: New file.
44798         * tests/test-vfprintf-posix.c: New file.
44799         * tests/test-fprintf-posix.h: New file.
44800         * tests/test-fprintf-posix.out: New file.
44801
44802         * modules/vfprintf-posix: New file.
44803         * lib/vfprintf.c: New file.
44804         * m4/vfprintf-posix.m4: New file.
44805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44806         REPLACE_VFPRINTF.
44807         * lib/stdio_.h (vfprintf): New declaration.
44808         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44809         REPLACE_VFPRINTF.
44810
44811 2007-03-08  Bruno Haible  <bruno@clisp.org>
44812
44813         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44814
44815 2007-03-08  Bruno Haible  <bruno@clisp.org>
44816
44817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44818         instead of 'expr' invocations.
44819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44824         Suggested by Paul Eggert.
44825
44826 2007-03-08  Bruno Haible  <bruno@clisp.org>
44827
44828         * modules/fseterr-tests: New file.
44829         * tests/test-fseterr.c: New file.
44830
44831         * modules/fseterr: New file.
44832         * lib/fseterr.h: New file.
44833         * lib/fseterr.c: New file.
44834
44835 2007-03-08  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44838         * lib/getopt_.h: Likewise.
44839         * lib/mbswidth.h: Likewise.
44840         * lib/setenv.h: Likewise.
44841         * lib/vasnprintf.h: Likewise.
44842         * lib/vasprintf.h: Likewise.
44843         * lib/verror.h: Likewise.
44844         * lib/xsetenv.h: Likewise.
44845         * lib/xvasprintf.h: Likewise.
44846
44847 2007-03-08  Jim Meyering  <jim@meyering.net>
44848
44849         * users.txt: Add parted.
44850
44851         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44852
44853 2007-03-07  Bruno Haible  <bruno@clisp.org>
44854
44855         * m4/printf.m4: Make the shell script snippets copy&pastable.
44856
44857 2007-03-02  Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/netinet_in_.h: New file.
44860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44861         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44862         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44863         (Depends-on): Add absolute-header.
44864         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44865         into netinet/in.h.
44866
44867 2007-03-03  Bruno Haible  <bruno@clisp.org>
44868
44869         * lib/sys_select_.h: New file.
44870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44871         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44872         * modules/sys_select (Files): Add lib/sys_select_.h.
44873         (Depends-on): Add absolute-header.
44874         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44875         into sys/select.h.
44876
44877 2007-03-02  Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44880         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44881         values.
44882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44883         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44884         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44885         * modules/sys_socket (Depends-on): Add absolute-header.
44886         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44887         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44888         (Include): Remove requirement of inclusion of <sys/types.h>.
44889
44890 2007-03-02  Bruno Haible  <bruno@clisp.org>
44891
44892         * lib/byteswap_.h (bswap_32): Fix formula.
44893
44894 2007-03-06  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/sprintf-posix-tests: New file.
44897         * tests/test-sprintf-posix.c: New file.
44898
44899         * modules/sprintf-posix: New file.
44900         * lib/sprintf.c: New file.
44901         * m4/sprintf-posix.m4: New file.
44902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44903         REPLACE_SPRINTF.
44904         * lib/stdio_.h (sprintf): New declaration.
44905         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44906         REPLACE_SPRINTF.
44907
44908 2007-03-06  Bruno Haible  <bruno@clisp.org>
44909
44910         * modules/vsprintf-posix-tests: New file.
44911         * tests/test-vsprintf-posix.c: New file.
44912         * tests/test-sprintf-posix.h: New file.
44913
44914         * modules/vsprintf-posix: New file.
44915         * lib/vsprintf.c: New file.
44916         * m4/vsprintf-posix.m4: New file.
44917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44918         REPLACE_VSPRINTF.
44919         * lib/stdio_.h (vsprintf): New declaration.
44920         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44921         REPLACE_VSPRINTF.
44922
44923 2007-03-06  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/vsnprintf (Depend-on): Remove minmax.
44926
44927 2007-03-06  Bruno Haible  <bruno@clisp.org>
44928
44929         * modules/snprintf-posix-tests: New file.
44930         * tests/test-snprintf-posix.c: New file.
44931
44932         * modules/snprintf-posix: New file.
44933         * m4/snprintf-posix.m4: New file.
44934         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44935         gl_FUNC_SNPRINTF.
44936         (gl_FUNC_SNPRINTF): Invoke it.
44937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44938         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44939         is set.
44940         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44941
44942 2007-03-06  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/vsnprintf-posix-tests: New file.
44945         * tests/test-vsnprintf-posix.c: New file.
44946         * tests/test-snprintf-posix.h: New file.
44947
44948         * modules/vsnprintf-posix: New file.
44949         * m4/vsnprintf-posix.m4: New file.
44950         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44951         gl_FUNC_VSNPRINTF.
44952         (gl_FUNC_VSNPRINTF): Invoke it.
44953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44954         * lib/stdio_.h (vsnprintf): Define as a replacement if
44955         REPLACE_VSNPRINTF is set.
44956         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44957
44958 2007-03-06  Bruno Haible  <bruno@clisp.org>
44959
44960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44962
44963 2007-03-06  Bruno Haible  <bruno@clisp.org>
44964
44965         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44966         (asinl): Declare also if HAVE_DECL_ASINL is set.
44967         (atanl): Declare also if HAVE_DECL_ATANL is set.
44968         (ceill): Declare also if HAVE_DECL_CEILL is set.
44969         (cosl): Declare also if HAVE_DECL_COSL is set.
44970         (expl): Declare also if HAVE_DECL_EXPL is set.
44971         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44972         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44973         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44974         (logl): Declare also if HAVE_DECL_LOGL is set.
44975         (sinl): Declare also if HAVE_DECL_SINL is set.
44976         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44977         (tanl): Declare also if HAVE_DECL_TANL is set.
44978         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44981         declaration of frexpl, ldexpl.
44982         * modules/printf-frexpl (Depends-on): Add math.
44983         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44984
44985 2007-03-05  Bruno Haible  <bruno@clisp.org>
44986
44987         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44988         frexpl and ldexpl are declared.
44989         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44990
44991 2007-03-05  Bruno Haible  <bruno@clisp.org>
44992
44993         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44994         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44995
44996 2007-03-05  Bruno Haible  <bruno@clisp.org>
44997
44998         * lib/stdio_.h: Include <stddef.h>.
44999
45000 2007-03-05  Bruno Haible  <bruno@clisp.org>
45001
45002         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45003
45004 2007-03-05  Bruno Haible  <bruno@clisp.org>
45005
45006         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45007         NetBSD 4, from Ralf Wildenhues.
45008
45009 2007-03-04  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/vasprintf.h: Update #if logic for the case when the functions
45012         exist but are overridden.
45013
45014 2007-03-04  Bruno Haible  <bruno@clisp.org>
45015
45016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45017         implementations: glibc-2.4 and MacOS X 10.3.
45018         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45019         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45020         * tests/test-vasprintf-posix.c (test_function): Likewise.
45021
45022 2007-03-04  Bruno Haible  <bruno@clisp.org>
45023
45024         * modules/vasprintf-posix-tests: New file.
45025         * tests/test-vasprintf-posix.c: New file.
45026
45027         * modules/vasprintf-posix: New file.
45028         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45029         defined.
45030         * m4/vasprintf-posix.m4: New file.
45031         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45032         gl_FUNC_VASPRINTF.
45033         (gl_FUNC_VASPRINTF): Invoke it.
45034         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45035         here.
45036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45037
45038 2007-03-04  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45041         REPLACE_GETTIMEOFDAY.
45042         * modules/sys_time (Makefile.am): Likewise.
45043         * m4/sys_time_h.m4: Likewise.
45044         * m4/gettimeofday.m4: Likewise.
45045
45046 2007-03-04  Bruno Haible  <bruno@clisp.org>
45047
45048         * modules/vasnprintf-posix-tests: New file.
45049         * tests/test-vasnprintf-posix.c: New file.
45050
45051         * modules/vasnprintf-posix: New file.
45052         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45053         printf-frexpl.h.
45054         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45055         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45056         REPLACE_VASNPRINTF is defined.
45057         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45058         gl_FUNC_VASNPRINTF.
45059         (gl_FUNC_VASNPRINTF): Invoke it.
45060         * m4/vasnprintf-posix.m4: New file.
45061         * m4/printf.m4: New file.
45062
45063 2007-03-04  Bruno Haible  <bruno@clisp.org>
45064
45065         Compile progreloc.c only if --enable-relocatable is specified.
45066         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45067         if --enable-relocatable was specified.
45068         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45069         lib_SOURCES.
45070
45071 2007-03-04  Jim Meyering  <jim@meyering.net>
45072
45073         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45074         Use it consistently, rather than enumerating errno constants.
45075
45076 2007-03-04  Bruno Haible  <bruno@clisp.org>
45077
45078         * modules/xvasprintf-tests: New file.
45079         * tests/test-xvasprintf.c: New file.
45080
45081         * modules/vasprintf-tests: New file.
45082         * tests/test-vasprintf.c: New file.
45083
45084         * modules/vasnprintf-tests: New file.
45085         * tests/test-vasnprintf.c: New file.
45086
45087         * modules/vsnprintf-tests: New file.
45088         * tests/test-vsnprintf.c: New file.
45089
45090         * modules/snprintf-tests: New file.
45091         * tests/test-snprintf.c: New file.
45092
45093 2007-03-04  Bruno Haible  <bruno@clisp.org>
45094
45095         Compile relocatable.c only if --enable-relocatable is specified.
45096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45097         gl_RELOCATABLE_LIBRARY.
45098         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45099         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45100         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45101         gl_RELOCATABLE_LIBRARY.
45102         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45103         (Makefile.am): Remove lib_SOURCES.
45104         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45105         gl_RELOCATABLE_LIBRARY.
45106         (Makefile.am): Remove lib_SOURCES.
45107         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45108         always.
45109         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45110         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45111
45112 2007-03-04  Bruno Haible  <bruno@clisp.org>
45113
45114         * modules/argmatch-tests: New file.
45115         * tests/test-argmatch.c: New file.
45116
45117         * tests/test-allocsa.c (main): Halve the number of loop runs.
45118
45119         * modules/alloca-opt-tests: New file.
45120         * tests/test-alloca-opt.c: New file.
45121
45122 2007-03-04  Jim Meyering  <jim@meyering.net>
45123
45124         Work around difference between Linux ACLs and Solaris 10 ZFS.
45125         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45126         for EINVAL.
45127
45128 2007-03-03  Bruno Haible  <bruno@clisp.org>
45129
45130         * modules/relocatable-prog (Depends-on): Add back progreloc's
45131         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45132
45133 2007-03-03  Bruno Haible  <bruno@clisp.org>
45134
45135         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45136         * modules/relocatable-lib: New file.
45137
45138 2007-03-03  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/relocatable-prog: Renamed from modules/relocatable.
45141         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45142
45143 2007-03-03  Bruno Haible  <bruno@clisp.org>
45144
45145         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45146         m4/relocatable-lib.m4.
45147         (Depends-on): Remove 'relocatable'.
45148         (configure.ac): Add gl_RELOCATABLE_NOP.
45149
45150 2007-03-03  Bruno Haible  <bruno@clisp.org>
45151
45152         * modules/relocatable-prog-wrapper: New file.
45153         * modules/relocatable (Depends-on): Add it. Remove all other
45154         dependencies except progname.
45155         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45156
45157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45158         (gl_FUNC_STRERROR): Nop.
45159         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45160
45161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45162         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45163
45164         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45165         (gl_FUNC_READLINK): Update.
45166
45167         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45168
45169 2007-03-03  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45172         * modules/xreadlink (Depends-on): Add unistd.
45173         * modules/xreadlink-with-size (Depends-on): Likewise.
45174
45175 2007-03-03  Bruno Haible  <bruno@clisp.org>
45176
45177         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45178         extracted from gt_FUNC_SETENV.
45179         (gt_FUNC_SETENV): Remove macro.
45180         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45181         remove gt_FUNC_SETENV.
45182
45183 2007-03-03  Bruno Haible  <bruno@clisp.org>
45184
45185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45186         ENABLE_RELOCATABLE here.
45187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45188
45189 2007-03-03  Bruno Haible  <bruno@clisp.org>
45190
45191         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45192         * tests/test-rbtreehash_list.c: Include progname.h.
45193         (main): Call set_program_name.
45194
45195         * modules/rbtree-oset-tests (Depends-on): Add progname.
45196         * tests/test-rbtree_oset.c: Include progname.h.
45197         (main): Call set_program_name.
45198
45199         * modules/rbtree-list-tests (Depends-on): Add progname.
45200         * tests/test-rbtree_list.c: Include progname.h.
45201         (main): Call set_program_name.
45202
45203         * modules/linked-list-tests (Depends-on): Add progname.
45204         * tests/test-linked_list.c: Include progname.h.
45205         (main): Call set_program_name.
45206
45207 2007-03-03  Bruno Haible  <bruno@clisp.org>
45208
45209         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45210         All uses of __restrict changed to _Restrict_.
45211         * lib/glob_.h (__restrict): Remove macro.
45212
45213 2007-03-02  Bruno Haible  <bruno@clisp.org>
45214
45215         * modules/gettext (configure.ac): Require gettext infrastructure
45216         from version 0.16.1.
45217
45218 2007-03-02  Bruno Haible  <bruno@clisp.org>
45219
45220         * modules/linkedhash-list-tests (Depends-on): Add progname.
45221         * tests/test-linkedhash_list.c: Include progname.h.
45222         (main): Call set_program_name.
45223
45224         * modules/carray-list-tests (Depends-on): Add progname.
45225         * tests/test-carray_list.c: Include progname.h.
45226         (main): Call set_program_name.
45227
45228         * modules/avltreehash-list-tests (Depends-on): Add progname.
45229         * tests/test-avltreehash_list.c: Include progname.h.
45230         (main): Call set_program_name.
45231
45232         * modules/avltree-oset-tests (Depends-on): Add progname.
45233         * tests/test-avltree_oset.c: Include progname.h.
45234         (main): Call set_program_name.
45235
45236         * modules/avltree-list-tests (Depends-on): Add progname.
45237         * tests/test-avltree_list.c: Include progname.h.
45238         (main): Call set_program_name.
45239
45240         * modules/array-oset-tests (Depends-on): Add progname.
45241         * tests/test-array_oset.c: Include progname.h.
45242         (main): Call set_program_name.
45243
45244         * modules/array-list-tests (Depends-on): Add progname.
45245         * tests/test-array_list.c: Include progname.h.
45246         (main): Call set_program_name.
45247
45248         * modules/argp-tests (Depends-on): Add progname.
45249         * tests/test-argp.c: Include argp.h first. Include progname.h.
45250         (main): Call set_program_name.
45251
45252 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45253
45254         * doc/gnulib-tool.texi (Initial import): Reword description of
45255         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45256         limited effect even if defined after the first system include.
45257
45258 2007-03-01  Bruno Haible  <bruno@clisp.org>
45259
45260         * build-aux/config.libpath: Update to libtool-1.5.22.
45261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45262
45263 2007-03-01  Bruno Haible  <bruno@clisp.org>
45264
45265         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45266         foo_CFLAGS.
45267         Reported by Ralf Wildenhues.
45268
45269 2007-03-01  Bruno Haible  <bruno@clisp.org>
45270
45271         * build-aux/install-reloc: Remove object files left over by some
45272         compilers.
45273         Reported by Ralf Wildenhues.
45274
45275 2007-03-01  Bruno Haible  <bruno@clisp.org>
45276
45277         * build-aux/install-reloc: Break long lines.
45278
45279 2007-03-01  Bruno Haible  <bruno@clisp.org>
45280
45281         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45282         Reported by Ralf Wildenhues.
45283
45284 2007-03-01  Bruno Haible  <bruno@clisp.org>
45285
45286         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45287         include ordering constraints.
45288
45289 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45290
45291         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45293         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45294         as another example.
45295         * lib/time_.h: Fix misspelling.
45296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45297         Require gl_HEADER_TIME_H_DEFAULTS.
45298         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45299         * m4/time_r.m4 (gl_TIME_R): Likewise.
45300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45301
45302 2007-03-01  Bruno Haible  <bruno@clisp.org>
45303
45304         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45305         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45306
45307 2007-03-01  Jim Meyering  <jim@meyering.net>
45308
45309         * modules/xreadlink (Maintainer): Add my name.
45310         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45311
45312 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45313             Bruno Haible  <bruno@clisp.org>
45314
45315         * build-aux/install-reloc: Compile also c-ctype.c.
45316         * build-aux/relocatable.sh.in: New file.
45317         * doc/relocatable.texi: New file.
45318         * doc/relocatable-maint.texi: New file.
45319         * doc/gnulib.texi: Include relocatable-maint.texi.
45320         * lib/progreloc.c: Include unistd.h unconditionally.
45321         * lib/relocwrapper.c: Include unistd.h unconditionally.
45322         Include c-ctype.h.
45323         (add_dotbin): Use c_tolower.
45324         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45325         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45326         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45327         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45328         to m4/relocatable-lib.m4.
45329         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45330         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45331         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45332         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45333         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45334         * modules/relocatable: New file.
45335         * modules/relocatable-lib: New file.
45336         * modules/relocatable-script: New file.
45337
45338 2007-02-28  Bruno Haible  <bruno@clisp.org>
45339
45340         Import --enable-relocatable infrastructure.
45341         * build-aux/config.libpath: New file, from GNU gettext.
45342         * build-aux/install-reloc: New file, from GNU gettext.
45343         * build-aux/reloc-ldflags: New file, from GNU gettext.
45344         * lib/relocatable.h: New file, from GNU gettext.
45345         * lib/relocatable.c: New file, from GNU gettext.
45346         * lib/relocwrapper.c: New file, from GNU gettext.
45347         * m4/relocatable.m4: New file, from GNU gettext.
45348
45349 2007-02-28  Bruno Haible  <bruno@clisp.org>
45350
45351         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45352
45353         * modules/xreadlink: New file, from GNU gettext with modifications.
45354         * lib/xreadlink.c: New file, from GNU gettext.
45355         * lib/xreadlink.h: Add comments.
45356         (xreadlink): New declaration.
45357
45358         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45359         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45360         lib/xreadlink-with-size.c.
45361         (configure.ac): Remove gl_XREADLINK invocation.
45362         (Makefile.am): Augment lib_SOURCES.
45363         * m4/xreadlink.m4: Remove file.
45364         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45365         (xreadlink_with_size): Renamed from xreadink.
45366         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45367         * modules/canonicalize (Depends-on): Replace xreadlink with
45368         xreadlink-with-size.
45369         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45370
45371 2007-02-25  Jim Meyering  <jim@meyering.net>
45372
45373         * build-aux/announce-gen: When complaining about excess arguments,
45374         list them.
45375
45376 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45377
45378         * README: Document signed integer overflow situation more
45379         accurately.
45380
45381 2007-02-25  Bruno Haible  <bruno@clisp.org>
45382
45383         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45384         'a' or 'A' conversion.
45385
45386 2007-02-25  Bruno Haible  <bruno@clisp.org>
45387
45388         * modules/filename: Renamed from modules/pathname.
45389         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45390         lib/concatpath.c with lib/concat-filename.c.
45391         (Makefile.am): Update.
45392         (Include): Replace pathname.h with filename.h.
45393         * lib/filename.h: Renamed from lib/pathname.h.
45394         (concatenated_filename): Renamed from concatenated_pathname.
45395         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45396         (concatenated_filename): Renamed from concatenated_pathname.
45397         * lib/findprog.c: Include filename.h instead of pathname.h.
45398         (find_in_path): Update.
45399         * lib/javacomp.c: Include filename.h instead of pathname.h.
45400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45403         is_oldgcj_14_13_usable, is_javac_usable): Update.
45404         * lib/javaexec.c: Include filename.h instead of pathname.h.
45405         (execute_java_class): Update.
45406         * modules/findprog: Update.
45407         * modules/javacomp: Update.
45408         * modules/javaexec: Update.
45409         * MODULES.html.sh (File system functions): Add 'filename', remove
45410         'pathname'.
45411
45412 2007-02-25  Bruno Haible  <bruno@clisp.org>
45413
45414         * modules/printf-frexpl-tests: New file.
45415         * tests/test-printf-frexpl.c: New file.
45416
45417         * modules/printf-frexpl: New file.
45418         * lib/printf-frexpl.h: New file.
45419         * lib/printf-frexpl.c: New file.
45420         * m4/printf-frexpl.m4: New file.
45421
45422 2007-02-25  Bruno Haible  <bruno@clisp.org>
45423
45424         * modules/printf-frexp-tests: New file.
45425         * tests/test-printf-frexp.c: New file.
45426
45427         * modules/printf-frexp: New file.
45428         * lib/printf-frexp.h: New file.
45429         * lib/printf-frexp.c: New file.
45430         * m4/printf-frexp.m4: New file.
45431
45432 2007-02-25  Bruno Haible  <bruno@clisp.org>
45433
45434         Assume automake >= 1.10 for the tests.
45435         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45436         * modules/arctwo-tests: Likewise.
45437         * modules/argp-tests: Likewise.
45438         * modules/avltree-list-tests: Likewise.
45439         * modules/avltree-oset-tests: Likewise.
45440         * modules/avltreehash-list-tests: Likewise.
45441         * modules/carray-list-tests: Likewise.
45442         * modules/crc-tests: Likewise.
45443         * modules/des-tests: Likewise.
45444         * modules/gc-arcfour-tests: Likewise.
45445         * modules/gc-arctwo-tests: Likewise.
45446         * modules/gc-des-tests: Likewise.
45447         * modules/gc-hmac-md5-tests: Likewise.
45448         * modules/gc-hmac-sha1-tests: Likewise.
45449         * modules/gc-md2-tests: Likewise.
45450         * modules/gc-md4-tests: Likewise.
45451         * modules/gc-md5-tests: Likewise.
45452         * modules/gc-pbkdf2-sha1-tests: Likewise.
45453         * modules/gc-rijndael-tests: Likewise.
45454         * modules/gc-sha1-tests: Likewise.
45455         * modules/gc-tests: Likewise.
45456         * modules/getaddrinfo-tests: Likewise.
45457         * modules/hmac-md5-tests: Likewise.
45458         * modules/hmac-sha1-tests: Likewise.
45459         * modules/linked-list-tests: Likewise.
45460         * modules/linkedhash-list-tests: Likewise.
45461         * modules/lock-tests: Likewise.
45462         * modules/md2-tests: Likewise.
45463         * modules/md4-tests: Likewise.
45464         * modules/md5-tests: Likewise.
45465         * modules/rbtree-list-tests: Likewise.
45466         * modules/rbtree-oset-tests: Likewise.
45467         * modules/rbtreehash-list-tests: Likewise.
45468         * modules/read-file-tests: Likewise.
45469         * modules/rijndael-tests: Likewise.
45470         * modules/stdint-tests: Likewise.
45471         * modules/tls-tests: Likewise.
45472
45473 2007-02-24  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45476         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45477         function; instead check whether isnan with a double argument links.
45478         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45479         function; instead check whether isnan with a 'long double' argument
45480         links.
45481         Reported by Eric Blake <ebb9@byu.net>.
45482
45483 2007-02-24  Bruno Haible  <bruno@clisp.org>
45484
45485         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45486         defined.
45487         * lib/isnanl.c: Remove all code. Just include isnan.c.
45488         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45489
45490 2007-02-25  Jim Meyering  <jim@meyering.net>
45491
45492         Avoid conflicting types for 'unsetenv' on FreeBSD.
45493         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45494         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45495         in stdlib.h.
45496
45497 2007-02-24  Bruno Haible  <bruno@clisp.org>
45498
45499         * modules/isnanl-nolibm-tests: New file.
45500         * tests/test-isnanl.c: New file.
45501
45502         * modules/isnanl-nolibm: New file.
45503         * lib/isnanl.h: New file.
45504         * lib/isnanl.c: New file.
45505         * m4/isnanl.m4: New file.
45506
45507 2007-02-24  Bruno Haible  <bruno@clisp.org>
45508
45509         * modules/isnan-nolibm-tests: New file.
45510         * tests/test-isnan.c: New file.
45511
45512         * modules/isnan-nolibm: New file.
45513         * lib/isnan.h: New file.
45514         * lib/isnan.c: New file.
45515         * m4/isnan.m4: New file.
45516
45517 2007-02-24  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45520         assume that an exponent fits in 20 bits.
45521
45522 2007-02-24  Jim Meyering  <jim@meyering.net>
45523
45524         * m4/regex.m4: Update the description of the configure-time option,
45525         --without-included-regex, to state accurately what the defaults are,
45526         and perhaps to give people an idea why using this option is risky.
45527
45528 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45529
45530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45531         loops on small arguments.  This attempts to avoid the problem
45532         Bruno Haible reported for AIX 4.3.2 in
45533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45534
45535 2007-02-23  Bruno Haible  <bruno@clisp.org>
45536
45537         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45538         Needed for help2man.
45539
45540 2007-02-23  Karl Berry  <karl@gnu.org>
45541
45542         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45543         exists, foo.h should be cvs-ignored, not committed.
45544
45545 2007-02-23  Eric Blake  <ebb9@byu.net>
45546
45547         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45548         * lib/stat-time.h (includes): Likewise.
45549         * lib/utimecmp.c (includes): Likewise.
45550         * lib/utimens.h (includes): Likewise.
45551         * lib/getdate.y (includes): Also include "timespec.h" for use
45552         internal to the module.
45553         * modules/utimens (Depends-on): Revert yesterday's patch.
45554         * modules/nanosleep (Depends-on): Add missing dependency.
45555
45556 2007-02-22  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/glob.c: Don't include getlogin_r.h.
45559
45560 2007-02-22  Jim Meyering  <jim@meyering.net>
45561
45562         * modules/utimens (Depends-on): Add timespec, required for
45563         utimens.h's inclusion of timespec.h.
45564
45565 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45566
45567         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45568         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45569         Schwab in
45570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45571         I'll try to think of a better way to fix the Solaris problem.
45572
45573         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45574         like glibc; on Solaris 10, it fails with errno == EINVAL.
45575         POSIX says the behavior is unspecified if the first argument is NULL,
45576         so play it safe and never pass NULL to the system getcwd.
45577
45578 2007-02-21  Jim Meyering  <jim@meyering.net>
45579
45580         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45581         of gettimeofday.  It would conflict with the one now always
45582         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45583         an IRIX 6.5 build failure.
45584
45585 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45586
45587         Minor fixups to port to Solaris 10 with Sun C 5.8.
45588         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45589         * modules/getcwd (Depends-on): Add dirfd.
45590         * lib/putenv.c (putenv): #undef it.
45591         (rpl_putenv): New decl.
45592         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45593
45594 2007-02-20  Bruno Haible  <bruno@clisp.org>
45595
45596         * modules/stdio-tests: New file.
45597         * tests/test-stdio.c: New file.
45598
45599         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45600         (Depends-on): Add stdio.
45601         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45602         (Include): Use <stdio.h> instead of vsnprintf.h.
45603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45604         HAVE_DECL_VSNPRINTF.
45605         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45606
45607         * modules/snprintf (Files): Remove lib/snprintf.h.
45608         (Depends-on): Add stdio.
45609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45610         (Include): Use <stdio.h> instead of snprintf.h.
45611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45612         HAVE_DECL_SNPRINTF.
45613         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45614         * lib/getaddrinfo.c: Likewise.
45615
45616         * modules/stdio: New file.
45617         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45618         * lib/snprintf.h: Remove file.
45619         * lib/vsnprintf.h: Remove file.
45620         * lib/.cppi-disable: Remove snprintf.h.
45621         * m4/stdio_h.m4: New file.
45622         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45623
45624 2007-02-20  Jim Meyering  <jim@meyering.net>
45625
45626         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45627         used by e.g., mingw.  From Bruno Haible.
45628
45629 2007-02-19  Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45632         warnings.
45633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45634
45635 2007-02-19  Bruno Haible  <bruno@clisp.org>
45636
45637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45638         from mingw users.
45639
45640 2007-02-19  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45643         warnings.
45644         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45645
45646 2007-02-19  Jim Meyering  <jim@meyering.net>
45647
45648         Don't use FD after a successful "fdopendir (fd)".
45649         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45650         Reset it by calling dirfd on the just-obtained DIR*.
45651
45652         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45653         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45654
45655 2007-02-18  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/readlink.c: Include <unistd.h>.
45658         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45659         HAVE_READLINK.
45660         * modules/readlink (Depends-on): Add unistd.
45661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45662         (Include): Add <unistd.h>.
45663
45664         * lib/getlogin_r.h: Remove file.
45665         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45666         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45667         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45668         HAVE_DECL_GETLOGIN_R.
45669         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45671         (Include): Use <unistd.h> instead of getlogin_r.h.
45672
45673         * lib/getcwd.h: Remove file.
45674         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45675         * lib/xgetcwd.c: Likewise.
45676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45677         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45678         * modules/getcwd (Files): Remove lib/getcwd.h.
45679         (Depends-on): Add unistd.
45680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45681         (Include): Use <unistd.h> instad of getcwd.h.
45682
45683         * lib/ftruncate.c: Include <unistd.h> first.
45684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45685         Set HAVE_FTRUNCATE.
45686         * modules/ftruncate (Depends-on): Add unistd.
45687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45688
45689         * lib/fchdir.c: Include <unistd.h> first.
45690         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45692         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45693         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45694         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45695
45696         * lib/dup2.c: Include <unistd.h> first.
45697         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45698         HAVE_DUP2.
45699         * modules/dup2 (Depends-on): Add unistd.
45700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45701
45702         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45703         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45704         REPLACE_CHOWN. Don't define chown as a macro here.
45705         * modules/chown (Depends-on): Add unistd.
45706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45707
45708         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45709         Add definition for GL_LINK_WARNING.
45710         (chown, dup2): New declarations.
45711         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45712         link warning.
45713         (ftruncate): New declaration.
45714         (getcwd): New declaration, taken from old getcwd.h.
45715         (getlogin_r): New declaration, taken from old getlogin_r.h.
45716         (readlink): New declaration.
45717         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45718         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45719         (gl_PREREQ_UNISTD): Remove macro.
45720         (gl_UNISTD_MODULE_INDICATOR): New macro.
45721         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45722         many new variables. Don't set UNISTD_H.
45723         * modules/unistd (Description): Change.
45724         (Depends-on): Add link-warning.
45725         (configure.ac): Update.
45726         (Makefile.am): Create unistd.h always. Substitute many new variables
45727         into it.
45728
45729 2007-02-18  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45732         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45733         HAVE_GETSUBOPT.
45734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45735         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45736         * lib/getsubopt.h: Remove file.
45737         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45738         (Depends-on): Add stdlib.
45739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45740         (Includes): Use <stdlib.h> instead of getsubopt.h.
45741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45742         Set HAVE_GETSUBOPT.
45743         * lib/getsubopt.c: Don't include getsubopt.h.
45744
45745 2007-02-18  Bruno Haible  <bruno@clisp.org>
45746
45747         * modules/fchdir (Depends-on): Add dup2.
45748
45749 2007-02-18  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/stdlib_.h: Handle glibc's special invocation convention
45752         specially.
45753
45754 2007-02-18  Bruno Haible  <bruno@clisp.org>
45755
45756         * modules/stdlib-tests: New file.
45757         * tests/test-stdlib.c: New file.
45758
45759         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45760         (Depends-on): Add stdlib.
45761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45762         (Includes): Use <stdlib.h> instead of mkstemp.h.
45763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45764         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45765         * lib/mkstemp.c: Don't include mkstemp.h.
45766         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45767         * lib/stdlib--.h: Don't include mkstemp.h.
45768
45769         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45770         (Depends-on): Add stdlib.
45771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45772         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45773         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45774         HAVE_MKDTEMP.
45775         * lib/mkdtemp.c: Don't include mkdtemp.h.
45776         * lib/clean-temp.c: Don't include mkdtemp.h.
45777
45778         * modules/exit (Files): Remove lib/exit.h.
45779         (Depends-on): Add stdlib.
45780         (Makefile.am): Remove lib_SOURCES.
45781         (Include): Use <stdlib.h> instead of exit.h.
45782         * lib/argmatch.c: Don't include exit.h.
45783         * lib/execute.c: Likewise.
45784         * lib/pagealign_alloc.c: Likewise.
45785         * lib/pipe.c: Likewise.
45786         * lib/wait-process.c: Likewise.
45787         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45788         * lib/exitfail.c: Likewise.
45789         * lib/savewd.c: Likewise.
45790         * lib/xsetenv.c: Likewise.
45791
45792         * modules/stdlib: New file.
45793         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45794         and extra comments about mkstemp().
45795         * lib/exit.h: Remove file.
45796         * lib/mkdtemp.h: Remove file.
45797         * lib/mkstemp.h: Remove file.
45798         * m4/stdlib_h.m4: New file.
45799         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45800
45801 2007-02-18  Bruno Haible  <bruno@clisp.org>
45802
45803         * modules/math-tests: New file.
45804         * tests/test-math.c: New file.
45805
45806         * modules/math: New file.
45807         * modules/mathl (Files): Remove lib/mathl.h.
45808         (Depends-on): Add math.
45809         (Makefile.am): Don't mention mathl.h.
45810         (Include): Use <math.h> instead of mathl.h.
45811         * lib/math_.h: New file.
45812         * lib/mathl.h: Remove file.
45813         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45814         mathl.h.
45815         * lib/asinl.c: Likewise.
45816         * lib/atanl.c: Likewise.
45817         * lib/ceill.c: Likewise.
45818         * lib/cosl.c: Likewise.
45819         * lib/expl.c: Likewise.
45820         * lib/floorl.c: Likewise.
45821         * lib/frexpl.c: Likewise.
45822         * lib/ldexpl.c: Likewise.
45823         * lib/logl.c: Likewise.
45824         * lib/sincosl.c: Likewise.
45825         * lib/sinl.c: Likewise.
45826         * lib/sqrtl.c: Likewise.
45827         * lib/tanl.c: Likewise.
45828         * lib/trigl.c: Likewise.
45829         * m4/math_h.m4: New file.
45830         * MODULES.html.sh (Mathematics): Add math.
45831
45832 2007-02-17  Bruno Haible  <bruno@clisp.org>
45833
45834         * modules/wctype-tests: New file.
45835         * tests/test-wctype.c: New file.
45836
45837         * modules/wchar-tests: New file.
45838         * tests/test-wchar.c: New file.
45839
45840         * modules/unistd-tests: New file.
45841         * tests/test-unistd.c: New file.
45842
45843         * modules/time-tests: New file.
45844         * tests/test-time.c: New file.
45845
45846         * modules/sysexits-tests: New file.
45847         * tests/test-sysexits.c: New file.
45848
45849         * modules/sys_time-tests: New file.
45850         * tests/test-sys_time.c: New file.
45851
45852         * modules/sys_stat-tests: New file.
45853         * tests/test-sys_stat.c: New file.
45854
45855         * modules/sys_socket-tests: New file.
45856         * tests/test-sys_socket.c: New file.
45857
45858         * modules/sys_select-tests: New file.
45859         * tests/test-sys_select.c: New file.
45860
45861         * modules/string-tests: New file.
45862         * tests/test-string.c: New file.
45863
45864         * modules/stdbool-tests: New file.
45865         * tests/test-stdbool.c: New file.
45866
45867         * modules/netinet_in-tests: New file.
45868         * tests/test-netinet_in.c: New file.
45869
45870         * modules/inttypes-tests: New file.
45871         * tests/test-inttypes.c: New file.
45872
45873         * modules/fcntl-tests: New file.
45874         * tests/test-fcntl.c: New file.
45875
45876         * modules/byteswap-tests: New file.
45877         * tests/test-byteswap.c: New file.
45878
45879         * modules/arpa_inet-tests: New file.
45880         * tests/test-arpa_inet.c: New file.
45881
45882 2007-02-17  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45885         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45886         if the corresponding module is not enabled. Emit link warnings if
45887         the function is used nevertheless.
45888         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45889         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45890         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45891         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45892         * modules/inttypes (Depends-on): Add link-warning.
45893         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45894         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45895         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45896         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45897         * modules/imaxdiv (configure.ac): Likewise.
45898         * modules/strtoimax (configure.ac): Likewise.
45899         * modules/strtoumax (configure.ac): Likewise.
45900
45901 2007-02-17  Bruno Haible  <bruno@clisp.org>
45902
45903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45904         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45906         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45907
45908 2007-02-17  Bruno Haible  <bruno@clisp.org>
45909
45910         * modules/link-warning: New file.
45911         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45912         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45913         * modules/string (Depends-on): Add link-warning.
45914         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45915         string.h.
45916         * MODULES.html.sh (Support for building libraries and executables): Add
45917         link-warning.
45918
45919 2007-02-17  Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45922         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45923         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45924         long lines.
45925
45926 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45927             Bruno Haible  <bruno@clisp.org>
45928
45929         * modules/tmpfile: New file.
45930         * lib/tmpfile.c: New file.
45931         * m4/tmpfile.m4: New file.
45932         * MODULES.html.sh (func_all_modules): New section "Input/output".
45933
45934 2007-02-15  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45937         (supports_delete_on_close): New function.
45938         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45939
45940 2007-02-14  Bruno Haible  <bruno@clisp.org>
45941
45942         * modules/mbspcasecmp-tests: New file.
45943         * tests/test-mbspcasecmp.sh: New file.
45944         * tests/test-mbspcasecmp.c: New file.
45945
45946         New module mbspcasecmp.
45947         * modules/mbspcasecmp: New file.
45948         * lib/mbspcasecmp.c: New file.
45949         * lib/string_.h (strncasecmp): Change warning message.
45950         (mbspcasecmp): New declaration.
45951         * m4/mbspcasecmp.m4: New file.
45952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45953         GNULIB_MBSPCASECMP.
45954         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45955         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45956
45957 2007-02-14  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/mbsncasecmp-tests: New file.
45960         * tests/test-mbsncasecmp.sh: New file.
45961         * tests/test-mbsncasecmp.c: New file.
45962
45963         New module mbsncasecmp.
45964         * modules/mbsncasecmp: New file.
45965         * lib/mbsncasecmp.c: New file.
45966         * lib/string_.h (mbsncasecmp): New declaration.
45967         * m4/mbsncasecmp.m4: New file.
45968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45969         GNULIB_MBSNCASECMP.
45970         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45971         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45972
45973 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45974
45975         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45976         Verify that it doesn't overlap with our flags.
45977         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45978         do not have the desired effect in multibyte locales; instead, use
45979         mbscasecmp.
45980         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45981         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45982         we don't require GNU fnmatch ourselves (if our users require it, they
45983         should do so explicitly).
45984
45985         Fix regex code so it doesn't rely on strcasecmp.
45986         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45987         Otherwise, include gnulib's langinfo.h.
45988         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45989         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45990         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45991         * modules/regex (FILES): Remove m4/codeset.m4.
45992         (Depends-on): Add localcharset.  Remove strcase.
45993
45994 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45995
45996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45997         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45998
45999 2007-02-13  Bruno Haible  <bruno@clisp.org>
46000
46001         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46003
46004 2007-02-12  Bruno Haible  <bruno@clisp.org>
46005
46006         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46007         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46008         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46009         time warning rather than a link error.
46010
46011 2007-02-12  Bruno Haible  <bruno@clisp.org>
46012
46013         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46016
46017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46018
46019         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46020         args, not 2.
46021
46022 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46023
46024         New module 'time', so that apps can include <time.h> as per
46025         POSIX and GNU instead of separate include files like time_r.h
46026         and timegm.h.  This implementation tries out a simpler approach
46027         for replacing decls in standard include files (as compared to
46028         the string module), somewhat as an experiment.
46029
46030         * config/srclist.txt: Comment out mktime.c for now.
46031         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46032         since it doesn't apply any more.  Use generic wording instead.
46033         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46034         'time'.
46035         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46036         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46037         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46038         Don't include <sys/types.h>; no longer needed since we assume C89.
46039         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46040         * lib/strftime.c: Likewise.
46041         * lib/time_r.c: Likewise.
46042         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46043         * lib/nanosleep.c: Include <time.h> first, to check interface.
46044         * lib/strptime.c: Likewise.
46045         * lib/time_r.c: Likewise.
46046         * lib/timegm.c: Likewise.
46047         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46048         needed.
46049         * lib/timegm.c: Don't include timegm.h; no longer needed.
46050         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46051         time.h now handles any problems in that area.
46052         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46053         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46054         that time.h defines struct timespec.
46055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46056         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46057         handles that.
46058         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46059         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46060         needed.  Set REPLACE_LOCALTIME.
46061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46062         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46063         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46064         nanosleep; time_h.m4 now does that.  Don't require
46065         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46066         module handles this now.
46067         * modules/getdate (Depends-on): Remove timespec.  Add time.
46068         * modules/nanosleep (Depends-on): Likewise.
46069         * modules/stat-time (Depends-on): Likewise.
46070         * modules/nanosleep (Include): Include time.h, not timespec.h.
46071         * modules/strptime (Files): Remove lib/strptime.h.
46072         (Depends-on): Add extensions, time.
46073         (Include): Include time.h, not strptime.h.
46074         * modules/time_r (Files): Remove lib/time_r.h.
46075         (Depends-on): Add time.
46076         (Include): Include time.h, not time_r.h.
46077         * modules/timegm: Likewise.
46078         * modules/timespec (Description): Now does timespec-related decls
46079         of our own, instead of struct timespec itself.
46080         (Depends-on): Add time; remove extensions.
46081         (Maintainer): Add self.
46082         * modules/utimecmp (Depends-on): Add time; remove timespec.
46083         * modules/utimens (Depends-on): Likewise.
46084         * modules/xnanosleep (Depends-on): Likewise.
46085
46086 2007-02-11  Bruno Haible  <bruno@clisp.org>
46087
46088         * lib/c-strstr.c: Include allocsa.h.
46089         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46090         * lib/c-strcasestr.c: Include allocsa.h.
46091         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46092         * lib/strcasestr.c: Include allocsa.h.
46093         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46094         * lib/mbsstr.c: Include allocsa.h.
46095         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46096         allocsa/freesa instead of malloc/free.
46097         * lib/mbscasestr.c: Include allocsa.h.
46098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46099         allocsa/freesa instead of malloc/free.
46100         * modules/c-strstr (Depends-on): Add allocsa.
46101         * modules/c-strcasestr (Depends-on): Likewise.
46102         * modules/strcasestr (Depends-on): Likewise.
46103         * modules/mbsstr (Depends-on): Likewise.
46104         * modules/mbscasestr (Depends-on): Likewise.
46105
46106 2007-02-11  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46109
46110         * modules/mbsspn-tests: New file.
46111         * tests/test-mbsspn.sh: New file.
46112         * tests/test-mbsspn.c: New file.
46113
46114 2007-02-11  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46117
46118         * modules/mbspbrk-tests: New file.
46119         * tests/test-mbspbrk.sh: New file.
46120         * tests/test-mbspbrk.c: New file.
46121
46122 2007-02-11  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46125         unneeded cast.
46126
46127         * modules/mbscspn-tests: New file.
46128         * tests/test-mbscspn.sh: New file.
46129         * tests/test-mbscspn.c: New file.
46130
46131 2007-02-11  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/mbscasecmp-tests: New file.
46134         * tests/test-mbscasecmp.sh: New file.
46135         * tests/test-mbscasecmp.c: New file.
46136
46137 2007-02-11  Bruno Haible  <bruno@clisp.org>
46138
46139         Ensure O(n) worst-case complexity of mbscasestr.
46140         * lib/mbscasestr.c: Include stdbool.h.
46141         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46142         functions.
46143         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46144         the bookkeeping indicates that it's worth it.
46145         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46146
46147         * modules/mbscasestr-tests: New file.
46148         * tests/test-mbscasestr1.c: New file.
46149         * tests/test-mbscasestr2.sh: New file.
46150         * tests/test-mbscasestr2.c: New file.
46151         * tests/test-mbscasestr3.sh: New file.
46152         * tests/test-mbscasestr3.c: New file.
46153         * tests/test-mbscasestr4.sh: New file.
46154         * tests/test-mbscasestr4.c: New file.
46155         * m4/locale-tr.m4: New file.
46156
46157 2007-02-11  Bruno Haible  <bruno@clisp.org>
46158
46159         Ensure O(n) worst-case complexity of mbsstr.
46160         * lib/mbsstr.c: Include stdbool.h.
46161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46162         functions.
46163         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46164         bookkeeping indicates that it's worth it.
46165         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46166
46167         * modules/mbsstr-tests: New file.
46168         * tests/test-mbsstr1.c: New file.
46169         * tests/test-mbsstr2.sh: New file.
46170         * tests/test-mbsstr2.c: New file.
46171         * tests/test-mbsstr3.sh: New file.
46172         * tests/test-mbsstr3.c: New file.
46173         * m4/locale-fr.m4: New file.
46174
46175 2007-02-11  Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/mbsrchr.c (mbsrchr): Fix bug.
46178
46179         * modules/mbsrchr-tests: New file.
46180         * tests/test-mbsrchr.sh: New file.
46181         * tests/test-mbsrchr.c: New file.
46182
46183 2007-02-11  Bruno Haible  <bruno@clisp.org>
46184
46185         * lib/mbschr.c (mbschr): Fix bug.
46186
46187         * modules/mbschr-tests: New file.
46188         * tests/test-mbschr.sh: New file.
46189         * tests/test-mbschr.c: New file.
46190         * m4/locale-zh.m4: New file.
46191
46192 2007-02-11  Bruno Haible  <bruno@clisp.org>
46193
46194         Support for copying multibyte string iterators.
46195         * lib/mbiter.h: Include <string.h>.
46196         (mbiter_multi_copy): New function.
46197         (mbi_copy): New macro.
46198         * lib/mbuiter.h: Include <string.h>.
46199         (mbuiter_multi_copy): New function.
46200         (mbui_copy): New macro.
46201
46202 2007-02-11  Bruno Haible  <bruno@clisp.org>
46203
46204         New module mbslen.
46205         * modules/mbslen: New file.
46206         * lib/mbslen.c: New file.
46207         * lib/string_.h (mbslen): New declaration.
46208         * m4/mbslen.m4: New file.
46209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46210         GNULIB_MBSLEN.
46211         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46212         * MODULES.html.sh (Internationalization functions): Add mbslen.
46213
46214 2007-02-11  Bruno Haible  <bruno@clisp.org>
46215
46216         Ensure O(n) worst-case complexity of strcasestr substitute.
46217         * lib/strcasestr.c: Include stdbool.h.
46218         (knuth_morris_pratt): New function.
46219         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46220         bookkeeping indicates that it's worth it.
46221         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46222
46223         * modules/strcasestr-tests: New file.
46224         * tests/test-strcasestr.c: New file.
46225
46226 2007-02-11  Bruno Haible  <bruno@clisp.org>
46227
46228         Ensure O(n) worst-case complexity of c_strcasestr.
46229         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46230         (knuth_morris_pratt): New function.
46231         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46232         the bookkeeping indicates that it's worth it.
46233         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46234
46235         * modules/c-strcasestr-tests: New file.
46236         * tests/test-c-strcasestr.c: New file.
46237
46238 2007-02-11  Bruno Haible  <bruno@clisp.org>
46239
46240         Ensure O(n) worst-case complexity of c_strstr.
46241         * lib/c-strstr.c: Include stdbool.h, string.h.
46242         (knuth_morris_pratt): New function.
46243         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46244         bookkeeping indicates that it's worth it.
46245         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46246
46247         * lib/c-strstr.c: Complete rewrite for maintainability.
46248
46249         * modules/c-strstr-tests: New file.
46250         * tests/test-c-strstr.c: New file.
46251
46252 2007-02-11  Bruno Haible  <bruno@clisp.org>
46253
46254         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46255         5.2.1 and earlier, whereby \055 was treated just like the range
46256         delimiter '-'.
46257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46258
46259 2007-02-08  Bruno Haible  <bruno@clisp.org>
46260
46261         * modules/regex (Depends-on): Add stdbool.
46262         Reported by Dalibor Topic <robilad@kaffe.org>.
46263
46264 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46265
46266         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46267         Prefer returning from main to exiting from it.
46268         Remove unnecessary parens after sizeof.
46269
46270 2007-02-05  Bruno Haible  <bruno@clisp.org>
46271
46272         New module mbssep.
46273         * modules/mbssep: New file.
46274         * lib/mbssep.c: New file.
46275         * lib/string_.h (strsep): Add a conditional link warning.
46276         (mbssep): New declaration.
46277         * m4/mbssep.m4: New file.
46278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46279         GNULIB_MBSSEP.
46280         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46281         * MODULES.html.sh (Internationalization functions): Add mbssep.
46282
46283 2007-02-05  Bruno Haible  <bruno@clisp.org>
46284
46285         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46286         Optimize search in case of 1 delimiter.
46287
46288 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46289
46290         * lib/acl.h: Include sys/types.h before sys/acl.h.
46291
46292 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46293
46294         Merge upstream fix for glibc bugzilla #3957:
46295
46296         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46297
46298         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46299         bit for RE_HAT_LISTS_NOT_NEWLINE.
46300         (build_charclass_op): Remove bogus comment.
46301
46302 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46303
46304         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46305
46306 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46307
46308         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46309         * lib/memmem.c [!defined _LIBC]: Include config.h.
46310
46311 2007-02-04  Bruno Haible  <bruno@clisp.org>
46312
46313         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46314         warning message.
46315
46316 2007-02-04  Bruno Haible  <bruno@clisp.org>
46317
46318         New module mbstok_r.
46319         * modules/mbstok_r: New file.
46320         * lib/mbstok_r.c: New file.
46321         * lib/string_.h (strtok_r): Change argument names to match the
46322         comments. Add a conditional link warning.
46323         (mbstok_r): New declaration.
46324         * m4/mbstok_r.m4: New file.
46325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46326         GNULIB_MBSTOK_R.
46327         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46328         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46329
46330 2007-02-04  Bruno Haible  <bruno@clisp.org>
46331
46332         New module mbsspn.
46333         * modules/mbsspn: New file.
46334         * lib/mbsspn.c: New file.
46335         * lib/string_.h (strspn): Add a conditional link warning.
46336         (mbsspn): New declaration.
46337         * m4/mbsspn.m4: New file.
46338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46339         GNULIB_MBSSPN.
46340         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46341         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46342
46343 2007-02-04  Bruno Haible  <bruno@clisp.org>
46344
46345         New module mbspbrk.
46346         * modules/mbspbrk: New file.
46347         * lib/mbspbrk.c: New file.
46348         * lib/string_.h (strpbrk): Add a conditional link warning.
46349         (mbspbrk): New declaration.
46350         * m4/mbspbrk.m4: New file.
46351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46352         GNULIB_MBSPBRK.
46353         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46354         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46355
46356 2007-02-04  Bruno Haible  <bruno@clisp.org>
46357
46358         New module mbscspn.
46359         * modules/mbscspn: New file.
46360         * lib/mbscspn.c: New file.
46361         * lib/string_.h (strcspn): Add a conditional link warning.
46362         (mbscspn): New declaration.
46363         * m4/mbscspn.m4: New file.
46364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46365         GNULIB_MBSCSPN.
46366         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46367         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46368
46369 2007-02-04  Bruno Haible  <bruno@clisp.org>
46370
46371         New module mbscasestr, reduced goal of strcasestr.
46372         * modules/mbscasestr: New file.
46373         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46374         (mbscasestr): Renamed from strcasestr.
46375         * lib/strcasestr.c: Don't include mbuiter.h.
46376         (strcasestr): Remove support for multibyte locales.
46377         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46378         Change the conditional link warning.
46379         (mbscasestr): New declaration.
46380         * m4/mbscasestr.m4: New file.
46381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46382         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46383         REPLACE_STRCASESTR.
46384         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46386         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46388         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46389         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46390         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46391         (Depends-on): Remove mbuiter.
46392         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46393
46394 2007-02-04  Bruno Haible  <bruno@clisp.org>
46395
46396         Simplify handling of strncasecmp.
46397         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46398         the conditional link warning.
46399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46400         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46402         * modules/strcase (configure.ac): Don't invoke
46403         gl_STRING_MODULE_INDICATOR.
46404         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46405
46406 2007-02-04  Bruno Haible  <bruno@clisp.org>
46407
46408         New module mbscasecmp, reduced goal of strcasecmp.
46409         * modules/mbscasecmp: New file.
46410         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46411         (mbscasecmp): Renamed from strcasecmp.
46412         * lib/strcasecmp.c: Don't include mbuiter.h.
46413         (strcasecmp): Remove support for multibyte locales.
46414         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46415         Change the conditional link warning.
46416         (mbscasecmp): New declaration.
46417         * m4/mbscasecmp.m4: New file.
46418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46419         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46420         REPLACE_STRCASECMP.
46421         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46423         GNULIB_MBSCASECMP.
46424         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46425         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46426         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46427         (Depends-on): Remove mbuiter.
46428         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46429
46430 2007-02-04  Bruno Haible  <bruno@clisp.org>
46431
46432         New module mbsstr. Remove module strstr.
46433         * modules/mbsstr: New file.
46434         * modules/strstr: Remove file.
46435         * lib/mbsstr.c: Renamed from lib/strstr.c.
46436         (mbsstr): Renamed from strstr.
46437         * lib/string_.h (strstr): Remove declaration. Change the conditional
46438         link warning.
46439         (mbsstr): New declaration.
46440         * m4/mbsstr.m4: New file.
46441         * m4/strstr.m4: Remove file.
46442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46443         REPLACE_STRSTR.
46444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46445         Don't initialize GNULIB_STRSTR.
46446         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46447         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46448         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46449         (Support for systems lacking ANSI C 89): Remove strstr.
46450
46451 2007-02-04  Bruno Haible  <bruno@clisp.org>
46452
46453         New module mbsrchr.
46454         * modules/mbsrchr: New file.
46455         * lib/mbsrchr.c: New file.
46456         * lib/string_.h (strrchr): Add a conditional link warning.
46457         (mbsrchr): New declaration.
46458         * m4/mbsrchr.m4: New file.
46459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46460         GNULIB_MBSRCHR.
46461         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46462         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46463
46464 2007-02-04  Bruno Haible  <bruno@clisp.org>
46465
46466         New module mbschr.
46467         * modules/mbschr: New file.
46468         * lib/mbschr.c: New file.
46469         * lib/string_.h (strchr): Add a conditional link warning.
46470         (mbschr): New declaration.
46471         * m4/mbschr.m4: New file.
46472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46473         GNULIB_MBSCHR.
46474         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46475         * MODULES.html.sh (Internationalization functions): Add mbschr.
46476
46477 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46478
46479         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46480
46481         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46482
46483 2007-02-04  Bruno Haible  <bruno@clisp.org>
46484
46485         New module description section 'configure.ac-early'.
46486         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46487         (func_get_autoconf_early_snippet): New function.
46488         (func_import, func_create_testdir): Use it. Remove special cases for
46489         modules 'extensions' and 'lock'.
46490         * modules/extensions (configure.ac-early): Require
46491         gl_USE_SYSTEM_EXTENSIONS.
46492         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46493
46494 2007-02-04  Bruno Haible  <bruno@clisp.org>
46495
46496         Make use of gcj-4.3's -fsource and -ftarget option.
46497         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46498         and if so try the options -fsource and -ftarget.
46499         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46500         source_version, ftarget_option, target_version arguments.
46501         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46502         (is_envjavac_oldgcj_14_14_usable): Renamed from
46503         is_envjavac_gcj_14_14_usable.
46504         (is_envjavac_oldgcj_14_13_usable): Renamed from
46505         is_envjavac_gcj_14_13_usable.
46506         (is_gcj_present): Update.
46507         (is_gcj_43, is_gcj43_usable): New functions.
46508         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46509         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46510         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46511         try the options -fsource and -ftarget.
46512
46513 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46514
46515         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46516         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46517         larger value.
46518
46519 2007-02-03  Jim Meyering  <jim@meyering.net>
46520
46521         Give tools a better chance to allocate space for very large buffers.
46522         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46523
46524         Make pwd and readlink work also when run with an unreadable parent dir
46525         on systems with openat support.
46526         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46527         provided getcwd function, even when we have openat support.
46528         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46529
46530 2007-02-02  Bruno Haible  <bruno@clisp.org>
46531
46532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46533         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46534         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46535         portability problems if one of these functions is only used on specific
46536         platforms.
46537         Reported by Paul Eggert.
46538
46539 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46540
46541         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46542         is causing more trouble than it's curing.
46543         * lib/regex_internal.h (__mempcpy): Remove.
46544         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46545         (and make the code a tad smaller to boot).
46546         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46547
46548 2007-02-02  Jim Meyering  <jim@meyering.net>
46549
46550         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46551         section, not in the Makefile.am: one.
46552
46553 2007-02-02  Eric Blake  <ebb9@byu.net>
46554
46555         * lib/strchrnul.c: Always include config.h first.
46556
46557         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46558         gnulib strstr is not necessary here.
46559
46560 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46561
46562         * m4/socklen.m4: Fix typo.
46563
46564 2007-02-02  Eric Blake  <ebb9@byu.net>
46565
46566         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46567         * modules/netinet_in (Makefile.am): Likewise.
46568
46569 2007-02-01  Bruno Haible  <bruno@clisp.org>
46570
46571         * lib/string_.h (GL_LINK_WARNING): New macro.
46572         (strcasecmp, strstr, strcasestr): If provided by the system,
46573         conditionally define as a macro that leads to a warning instead of to
46574         an error.
46575         (strncasecmp): Conditionally define as a macro that leads to a warning.
46576
46577 2007-02-01  Karl Berry  <karl@gnu.org>
46578
46579         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46580
46581 2007-02-01  Bruno Haible  <bruno@clisp.org>
46582
46583         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46584         renamings.
46585
46586 2007-02-01  Eric Blake  <ebb9@byu.net>
46587
46588         * modules/regex (Depends-on): Revert dependence on mempcpy.
46589         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46590         module's definition of mempcpy.
46591         Reported by Paul Eggert.
46592
46593 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46594
46595         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46596         the symbol XYZ before redefining it.  This fixes a problem with
46597         programs that don't use XYZ, when compiled on systems that define
46598         XYZ to something else.
46599
46600 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46601
46602         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46603         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46604         writeable to group or other and (2) is intended to have a special
46605         mode bit that is set or cleared.  In such a case, the directory
46606         should be neither group- nor other-writeable until the special
46607         mode bits are right.
46608
46609 2007-01-31  Eric Blake  <ebb9@byu.net>
46610
46611         * modules/mountlist (Depends-on): Add strstr.
46612
46613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46614         bug.
46615         * modules/string (Makefile.am): Remove redundant replacement.
46616         * modules/regex (Depends-on): Add mempcpy.
46617
46618 2007-01-31  Bruno Haible  <bruno@clisp.org>
46619
46620         New module description field 'Link'.
46621         * gnulib-tool (func_usage): Document --extract-link-directive.
46622         (sed_extract_prog): Recognize 'Link' directive.
46623         (func_get_link_directive): New function.
46624         (func_import): Show summary of link directives.
46625         Handle --extract-link-directive option.
46626         * modules/acl (Link): New section.
46627         * modules/clock-time (Link): New section.
46628         * modules/euidaccess (Link): New section.
46629         * modules/gettext (Link): New section.
46630         * modules/iconv (Link): New section.
46631         * modules/lock (Link): New section.
46632         * modules/nanosleep (Link): New section.
46633         * modules/readline (Link): New section.
46634
46635 2007-01-27  Bruno Haible  <bruno@clisp.org>
46636
46637         Enforce the use of gnulib modules for unportable <string.h> functions.
46638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46640         (gl_HEADER_STRING_H_BODY): Require it.
46641         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46642         the symbol XYZ to one that gives a link error.
46643         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46644         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46645         * modules/mempcpy (configure.ac): Likewise.
46646         * modules/memrchr (configure.ac): Likewise.
46647         * modules/stpcpy (configure.ac): Likewise.
46648         * modules/stpncpy (configure.ac): Likewise.
46649         * modules/strcase (configure.ac): Likewise.
46650         * modules/strcasestr (configure.ac): Likewise.
46651         * modules/strchrnul (configure.ac): Likewise.
46652         * modules/strdup (configure.ac): Likewise.
46653         * modules/strndup (configure.ac): Likewise.
46654         * modules/strnlen (configure.ac): Likewise.
46655         * modules/strpbrk (configure.ac): Likewise.
46656         * modules/strsep (configure.ac): Likewise.
46657         * modules/strstr (configure.ac): Likewise.
46658         * modules/strtok_r (configure.ac): Likewise.
46659
46660 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46661
46662         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46663
46664 2007-01-30  Jim Meyering  <jim@meyering.net>
46665
46666         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46667
46668 2007-01-29  Bruno Haible  <bruno@clisp.org>
46669
46670         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46671         * lib/execute.c: Likewise.
46672         * lib/pipe.c: Likewise.
46673         * lib/printf-args.h: Likewise.
46674         * lib/printf-args.c: Likewise.
46675         * lib/printf-parse.c: Likewise.
46676         * lib/vasnprintf.c: Likewise.
46677
46678 2007-01-29  Eric Blake  <ebb9@byu.net>
46679
46680         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46681         declaration.
46682
46683 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46684
46685         * lib/strptime.h (strptime): Use 'restrict' for args where
46686         POSIX requires this.
46687         * lib/strptime.c (strptime): Likewise.
46688         Change license notice from LGPL to GPL, since gnulib-tool will
46689         change this as needed.
46690         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46691         defined.
46692         Include "strptime.h" first, to check interface.
46693         Do not #undef _LIBC and _NL_CURRENT.
46694         Do not include <stdlib.h>; no longer needed.
46695         Include "time_r.h" and declare ptime_locale_status
46696         only if _LIBC is not defined.
46697         (__P): Remove unused macro.
46698         (match_string): Bring back glibc version, but use it only if _LIBC
46699         is defined.
46700         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46701         Remove unnecessary assertion and abort() call.
46702         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46703         * m4/strptime.m4: Fix serial number comment.
46704         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46705         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46706         (Depends-on): Add time_r.
46707
46708 2007-01-29  Bruno Haible  <bruno@clisp.org>
46709
46710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46711         strptime.
46712         * modules/strptime (Depends-on): Add stdbool.
46713         * lib/strptime.h: Include <time.h> always. Add comments.
46714
46715 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46716
46717         * modules/strptime: New file.
46718         * lib/strptime.h: New file.
46719         * lib/strptime.c: New file.
46720         * m4/strptime.m4: New file.
46721
46722 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46723
46724         * MODULES.html.sh: New module mpsort.
46725         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46726
46727         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46728         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46730         All uses changed.
46731         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46732         All uses changed.
46733         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46734         to _Restrict_.
46735         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46736         the parameter matches the prototype.
46737
46738 2007-01-28  Jim Meyering  <jim@meyering.net>
46739
46740         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46741         sys/time.h here, reverting that part of the previous patch:
46742         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46743
46744 2007-01-28  Bruno Haible  <bruno@clisp.org>
46745
46746         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46747         value of $(SYS_TIME_H).
46748         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46749         remove it conditionally, too. [added by Jim Meyering]
46750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46752         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46753         GETTIMEOFDAY_REPLACEMENT to 1.
46754
46755 2007-01-28  Bruno Haible  <bruno@clisp.org>
46756
46757         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46758         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46760         Set UNISTD_H instead of UNISTD_H2.
46761         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46762
46763 2007-01-28  Bruno Haible  <bruno@clisp.org>
46764
46765         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46766         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46767
46768 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46769
46770         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46771         (func_create_testdir): Ensure C locale for `grep' and `tr'
46772         character ranges.
46773         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46774         ACLOCAL_AMFLAGS parsing state machine.
46775
46776 2007-01-27  Bruno Haible  <bruno@clisp.org>
46777
46778         * modules/unistr/base: Update.
46779
46780 2007-01-27  Bruno Haible  <bruno@clisp.org>
46781
46782         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46783         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46784         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46785         modules/unistr/u32-mbtouc.
46786         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46787         * lib/unistr.h: Update.
46788         * lib/linebreak.c: Update.
46789         * modules/unistr/u32-mbtouc: Renamed from
46790         modules/unistr/u32-mbtouc-safe.
46791         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46792         * lib/unistr.h: Update.
46793         * lib/unistr/u32-to-u8.c: Update.
46794         * lib/unistr/u32-to-u16.c: Update.
46795
46796 2007-01-27  Bruno Haible  <bruno@clisp.org>
46797
46798         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46799         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46800         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46801         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46802         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46803         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46804         modules/unistr/u16-mbtouc.
46805         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46806         * lib/unistr.h: Update.
46807         * lib/linebreak.c: Update.
46808         * modules/linebreak: Update.
46809         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46810         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46811         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46812         * modules/unistr/u16-mbtouc: Renamed from
46813         modules/unistr/u16-mbtouc-safe.
46814         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46815         * lib/unistr.h: Update.
46816         * lib/unistr/u16-to-u8.c: Update.
46817         * modules/unistr/u16-to-u8: Update.
46818         * lib/unistr/u16-to-u32.c: Update.
46819         * modules/unistr/u16-to-u32: Update.
46820
46821 2007-01-27  Bruno Haible  <bruno@clisp.org>
46822
46823         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46824         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46825         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46826         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46827         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46828         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46829         modules/unistr/u8-mbtouc.
46830         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46831         * lib/unistr.h: Update.
46832         * lib/striconveh.c: Update.
46833         * modules/striconveh: Update.
46834         * lib/linebreak.c: Update.
46835         * modules/linebreak: Update.
46836         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46837         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46838         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46839         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46840         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46841         * lib/unistr.h: Update.
46842         * lib/striconveh.c: Update.
46843         * modules/striconveh: Update.
46844         * lib/unistr/u8-to-u16.c: Update.
46845         * modules/unistr/u8-to-u16: Update.
46846         * lib/unistr/u8-to-u32.c: Update.
46847         * modules/unistr/u8-to-u32: Update.
46848
46849 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46850
46851         Sync from Libtool.
46852         * lib/argz.c: Do not include strings.h nor memory.h, include
46853         string.h unconditionally.  Patch by Simon Josefsson.
46854
46855 2007-01-27  Bruno Haible  <bruno@clisp.org>
46856
46857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46858         from gl_HEADER_STRING_H_BODY.
46859         (gl_HEADER_STRING_H_BODY): Require it.
46860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46861         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46865         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46867         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46868         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46872         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46873         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46875
46876 2007-01-27  Bruno Haible  <bruno@clisp.org>
46877
46878         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46879         check_PROGRAMS into noinst_PROGRAMS.
46880         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46881         check_PROGRAMS in this case.
46882         (func_import): Set for_test to false.
46883         (func_create_testdir): Set for_test to true.
46884
46885 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46886             Bruno Haible  <bruno@clisp.org>
46887
46888         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46889         (Depends-on): Add string.
46890         (Includes): Use <string.h> instead of strcasestr.h.
46891         * modules/string (Makefile.am): Also substitute the value of
46892         REPLACE_STRCASESTR.
46893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46894         assume strcasestr is declared in <string.h> not <strings.h>. Also
46895         set REPLACE_STRCASESTR.
46896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46897         REPLACE_STRCASESTR.
46898         * lib/strcasestr.h: Remove file.
46899         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46900         * lib/string_.h (strcasestr): New declaration.
46901
46902 2007-01-27  Bruno Haible  <bruno@clisp.org>
46903
46904         * lib/string_.h: Use 'extern'.
46905
46906 2007-01-27  Jim Meyering  <jim@meyering.net>
46907
46908         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46909         of set-but-not-used local, "q".
46910
46911         * lib/mempcpy.c: Include <config.h> before <string.h>.
46912         This fixes a compilation error on HP-UX, due to the system's
46913         "restrict"-using mempcpy prototype.
46914
46915 2007-01-26  Bruno Haible  <bruno@clisp.org>
46916
46917         Small optimization.
46918         * lib/javacomp.c: Include c-strstr.h.
46919          (is_envjavac_gcj): Use c_strstr instead of strstr.
46920         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46921
46922 2007-01-26  Bruno Haible  <bruno@clisp.org>
46923
46924         * MODULES.html.sh (Unicode string functions): Add the new modules.
46925
46926         * modules/uniconv/u32-strconv-to-locale: New file.
46927         * lib/uniconv/u32-strconv-to-locale.c: New file.
46928
46929         * modules/uniconv/u16-strconv-to-locale: New file.
46930         * lib/uniconv/u16-strconv-to-locale.c: New file.
46931
46932         * modules/uniconv/u8-strconv-to-locale: New file.
46933         * lib/uniconv/u8-strconv-to-locale.c: New file.
46934
46935         * modules/uniconv/u32-strconv-from-locale: New file.
46936         * lib/uniconv/u32-strconv-from-locale.c: New file.
46937
46938         * modules/uniconv/u16-strconv-from-locale: New file.
46939         * lib/uniconv/u16-strconv-from-locale.c: New file.
46940
46941         * modules/uniconv/u8-strconv-from-locale: New file.
46942         * lib/uniconv/u8-strconv-from-locale.c: New file.
46943
46944         * modules/uniconv/u32-strconv-to-enc: New file.
46945         * lib/uniconv/u32-strconv-to-enc.c: New file.
46946         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46947         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46948
46949         * modules/uniconv/u16-strconv-to-enc: New file.
46950         * lib/uniconv/u16-strconv-to-enc.c: New file.
46951         * lib/uniconv/u-strconv-to-enc.h: New file.
46952         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46953         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46954
46955         * modules/uniconv/u8-strconv-to-enc: New file.
46956         * lib/uniconv/u8-strconv-to-enc.c: New file.
46957         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46958         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46959
46960         * modules/uniconv/u32-strconv-from-enc: New file.
46961         * lib/uniconv/u32-strconv-from-enc.c: New file.
46962         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46963         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46964
46965         * modules/uniconv/u16-strconv-from-enc: New file.
46966         * lib/uniconv/u16-strconv-from-enc.c: New file.
46967         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46968         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46969
46970         * modules/uniconv/u8-strconv-from-enc: New file.
46971         * lib/uniconv/u8-strconv-from-enc.c: New file.
46972         * lib/uniconv/u-strconv-from-enc.h: New file.
46973         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46974         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46975
46976         * modules/uniconv/u32-conv-from-enc: New file.
46977         * lib/uniconv/u32-conv-from-enc.c: New file.
46978         * modules/uniconv/u32-conv-from-enc-tests: New file.
46979         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46980
46981         * modules/uniconv/u16-conv-from-enc: New file.
46982         * lib/uniconv/u16-conv-from-enc.c: New file.
46983         * lib/uniconv/u-conv-from-enc.h: New file.
46984         * modules/uniconv/u16-conv-from-enc-tests: New file.
46985         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46986
46987         * modules/uniconv/u8-conv-from-enc: New file.
46988         * lib/uniconv/u8-conv-from-enc.c: New file.
46989         * modules/uniconv/u8-conv-from-enc-tests: New file.
46990         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46991
46992         * modules/uniconv/base: New file.
46993         * lib/uniconv.h: New file.
46994
46995 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46996
46997         * doc/gnulib-tool.texi (Initial import): Update to match current
46998         behavior with strdup module.
46999         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47000         * lib/memmem.h: Remove; all uses removed.  This is now done
47001         by <string.h>.
47002         * lib/mempcpy.h: Likewise.
47003         * lib/memrchr.h: Likewise.
47004         * lib/stpcpy.h: Likewise.
47005         * lib/stpncpy.h: Likewise.
47006         * lib/strcase.h: Likewise.
47007         * lib/strchrnul.h: Likewise.
47008         * lib/strdup.h: Likewise.
47009         * lib/strndup.h: Likewise.
47010         * lib/strnlen.h: Likewise.
47011         * lib/strpbrk.h: Likewise.
47012         * lib/strsep.h: Likewise.
47013         * lib/strstr.h: Likewise.
47014         * lib/strtok_r.h: Likewise.
47015         * lib/string_.h: New file.
47016         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47017         Rely on <string.h> instead.
47018         * lib/canon-host.c: Likewise.
47019         * lib/chdir-long.c: Likewise.
47020         * lib/concatpath.c: Likewise.
47021         * lib/exclude.c: Likewise.
47022         * lib/fchdir.c: Likewise.
47023         * lib/getaddrinfo.c: Likewise.
47024         * lib/getcwd.c: Likewise.
47025         * lib/getsubopt.c: Likewise.
47026         * lib/glob.c: Likewise.
47027         * lib/hard-locale.c: Likewise.
47028         * lib/iconvme.c: Likewise.
47029         * lib/javacomp.c: Likewise.
47030         * lib/mempcpy.c: Likewise.
47031         * lib/memrchr.c: Likewise.
47032         * lib/regex_internal.h: Likewise.
47033         * lib/stpncpy.c: Likewise.
47034         * lib/strcasecmp.c: Likewise.
47035         * lib/strchrnul.c: Likewise.
47036         * lib/strdup.c: Likewise.
47037         * lib/striconv.c: Likewise.
47038         * lib/striconveh.c: Likewise.
47039         * lib/striconveha.c: Likewise.
47040         * lib/strncasecmp.c: Likewise.
47041         * lib/strndup.c: Likewise.
47042         * lib/strnlen.c: Likewise.
47043         * lib/strsep.c: Likewise.
47044         * lib/strstr.c: Likewise.
47045         * lib/strtok_r.c: Likewise.
47046         * lib/userspec.c: Likewise.
47047         * lib/w32spawn.h: Likewise.
47048         * lib/xstrndup.c: Likewise.
47049         * lib/mountlist.c (strstr): Remove decl.
47050         * m4/string_h.m4: New file.
47051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47053         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47055         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47056         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47057         Set REPLACE_STRCASECMP if necessary.
47058         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47060         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47062         HAVE_DECL_STRDUP if necessary.
47063         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47064         since gl_FUNC_STRNDUP does that now.
47065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47066         Check for decl here...
47067         (gl_PREREQ_STRNLEN): ... not here.
47068         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47069         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47070         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47072         necessary.
47073         * modules/string: New file.
47074         * modules/memmem (Files): Remove special-purpose include file.
47075         (Depends-on): Add string.
47076         (Include): Include <string.h>, not the removed file.
47077         * modules/mempcpy: Likewise.
47078         * modules/memrchr: Likewise.
47079         * modules/stpcpy: Likewise.
47080         * modules/stpncpy: Likewise.
47081         * modules/strcase: Likewise.
47082         * modules/strchrnul: Likewise.
47083         * modules/strdup: Likewise.
47084         * modules/strndup: Likewise.
47085         * modules/strnlen: Likewise.
47086         * modules/strpbrk: Likewise.
47087         * modules/strsep: Likewise.
47088         * modules/strstr: Likewise.
47089         * modules/strtok_r: Likewise.
47090         * tests/test-dirname.c: Don't include "strdup.h", since
47091         <string.h> now suffices.
47092         * tests/test-memmem.c: Don't include "memmem.h", since
47093         <string.h> now suffices.
47094
47095 2007-01-25  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47098         *resultp is 0.
47099
47100         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47101         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47102         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47103         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47104
47105         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47106         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47107         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47108         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47109         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47110         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47111
47112 2007-01-24  Bruno Haible  <bruno@clisp.org>
47113
47114         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47116         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47117         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47118         gl_FUNC_FTS_CORE.
47119         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47120         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47123         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47124         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47125         gl_FUNC_FCHOWNAT.
47126         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47127         gl_FUNC_STRFTIME.
47128         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47129         Reported by Ralf Wildenhues.
47130
47131 2007-01-24  Bruno Haible  <bruno@clisp.org>
47132
47133         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47134         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47135         gl_GETADDRINFO.
47136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47137         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47138         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47139
47140 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47141
47142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47143         Don't use 'exit'; just return from 'main'.
47144         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47145
47146         * lib/fnmatch_.h: Readjust white space and comments to match
47147         glibc, to avoid spurious diffs.
47148
47149 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47150
47151         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47152         2004-12-01 change by Jakub Jelinek, since this code won't compile
47153         if !LIBC.  Problem reported by Bob Proulx.
47154
47155 2007-01-23  Bruno Haible  <bruno@clisp.org>
47156
47157         * lib/striconveh.c: Include c-strcaseeq.h.
47158         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47159         * modules/striconveh (Depends-on): Add c-strcaseeq.
47160
47161 2007-01-23  Bruno Haible  <bruno@clisp.org>
47162
47163         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47164
47165         * modules/c-strcaseeq: New file.
47166         * lib/c-strcaseeq.h: New file.
47167
47168         * modules/streq: New file.
47169         * lib/streq.h: New file.
47170
47171 2007-01-23  Bruno Haible  <bruno@clisp.org>
47172
47173         * modules/striconveha-tests: New file.
47174         * tests/test-striconveha.c: New file.
47175
47176         * lib/striconveha.h: Include <stdbool.h>.
47177         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47178         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47179         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47180         (mem_iconveha): New function.
47181         (str_iconveha_notranslit): Renamed from str_iconveha.
47182         (str_iconveha): New function.
47183         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47184         c-strcase.
47185
47186 2007-01-23  Bruno Haible  <bruno@clisp.org>
47187
47188         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47189         encodings without forgiving before trying any encoding with handler.
47190         (str_iconveha): Try all encodings without forgiving before trying any
47191         encoding with handler.
47192
47193 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47194
47195         Import the following changes from libc.
47196
47197         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47198
47199         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47200
47201         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47202
47203         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47204         normal_bracket label.
47205
47206         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47207
47208         [BZ #361]
47209         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47210         to normal_bracket after fetching the next character.
47211
47212 2007-01-22  Bruno Haible  <bruno@clisp.org>
47213
47214         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47215         argument.
47216         * lib/striconveh.c (iconv_carefully_1): New function.
47217         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47218         argument.
47219         (str_cd_iconveh): Update.
47220         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47221         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47222         * tests/test-striconveh.c (MAGIC): New macro.
47223         (new_offsets): New function.
47224         (main): Test call with and without offsets.
47225
47226 2007-01-22  Bruno Haible  <bruno@clisp.org>
47227
47228         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47229         * modules/sys_select (Makefile.am): Likewise.
47230         * modules/sys_socket (Makefile.am): Likewise.
47231         * modules/sys_time (Makefile.am): Likewise.
47232
47233 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47234
47235         * modules/gettimeofday (License): Change from GPL to LGPL, since
47236         gettimeofday is a library function.
47237
47238 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47239
47240         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47241
47242 2007-01-21  Bruno Haible  <bruno@clisp.org>
47243
47244         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47245
47246 2007-01-21  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/striconveha: New file.
47249         * lib/striconveha.h: New file.
47250         * lib/striconveha.c: New file.
47251         * MODULES.html.sh (Internationalization functions): Add striconveha.
47252         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47253         string.
47254         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47255
47256 2007-01-21  Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47259         * lib/striconveh.c (str_iconveh): Likewise.
47260
47261 2007-01-21  Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/striconveh.h (mem_iconveh): New declaration.
47264         * lib/striconveh.c (mem_iconveh): New function.
47265         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47266
47267 2007-01-21  Bruno Haible  <bruno@clisp.org>
47268
47269         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47270
47271         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47272         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47273         original result buffer.
47274         (str_cd_iconveh): Update.
47275         * tests/test-striconveh.c (main): Update.
47276
47277         * lib/striconv.h (mem_cd_iconv): Change specification.
47278         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47279         result buffer.
47280         (str_cd_iconv): Update.
47281         * tests/test-striconv.c (main): Update.
47282
47283 2007-01-21  Bruno Haible  <bruno@clisp.org>
47284
47285         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47286
47287 2007-01-20  Jim Meyering  <jim@meyering.net>
47288
47289         * lib/userspec.c (parse_with_separator): If a user or group string
47290         starts with "+", skip the corresponding name-to-ID look-up, since
47291         such a look-up must fail: user and group names may not include "+".
47292
47293 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47294
47295         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47296         since we now assume the sys_time module.
47297         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47298         check for sys/time.h; no longer needed.
47299         * modules/poll (Depends-on): Depend on sys_time.
47300
47301 2007-01-18  Bruno Haible  <bruno@clisp.org>
47302
47303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47305
47306         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47307         gettimeofday.
47308
47309         * tests/test-gettimeofday.c: Include <time.h>.
47310         (dummy): Remove variable.
47311
47312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47313         gl_HEADER_SYS_TIME_H.
47314         (gl_HEADER_SYS_TIME_H): New macro.
47315
47316         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47317         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47319         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47320         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47322         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47323         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47324         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47325         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47326         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47327
47328         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47329         last change; it caused a compilation error when cross-compiling to
47330         Cygwin.
47331
47332 2007-01-18  Jim Meyering  <jim@meyering.net>
47333
47334         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47335         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47336         than the race-prone "test -d sys || mkdir sys".
47337         (configure.ac): Use AC_PROG_MKDIR_P.
47338         * modules/sys_select: Likewise.
47339         * modules/sys_socket: Likewise.
47340         * modules/sys_time: Likewise.
47341
47342 2007-01-18  Eric Blake  <ebb9@byu.net>
47343
47344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47345         replace gettimeofday.
47346         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47347         name, to avoid infinite recursion.
47348
47349 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47350
47351         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47352         module sys_time.
47353         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47354         assume timespec.h defines struct timeval.
47355         * lib/settime.c: Likewise.
47356         * lib/utimens.c: Likewise.
47357         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47358         since we now assume the gettimeofday module.
47359         * lib/tempname.c (__gen_tempname): Likewise.
47360         * lib/gettimeofday.h: Remove.
47361         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47362         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47363         Include <time.h>, for 'time()'.
47364         (localtime_buffer_addr): Also use this workaround if
47365         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47366         to simplify the uses.  All uses changed.
47367         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47368         that #undef is inside {}, and 'const' follows type name consistently.
47369         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47370         (gettimeofday): Do not use the maximum possible value for
47371         tv->tv_usec, since that might break usages other than ls.c.
47372         Instead, we'll leave ls.c alone.  This undoes today's patch
47373         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47374         we've never observed the problem but might as well keep the
47375         canary.
47376         * lib/nanosleep.c: Include timespec.h first, for interface check.
47377         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47378         now assume the sys_time module.
47379         * lib/tempname.c: Likewise.
47380         * lib/timespec.h: Likewise.
47381         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47382         needed.
47383         * lib/strftime.c: Likewise.
47384         * lib/timespec.h: Likewise.
47385         * lib/posixtm.c: Include posixtm.h first, for interface check.
47386         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47387         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47388         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47389         * lib/sys_time_.h: New file.
47390         * lib/timespec.h (struct timespec): Use long int, not long.
47391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47392         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47393         Remove obsolescent call to AC_HEADER_TIME.
47394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47397         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47398         Likewise.
47399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47400         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47402         into the sys_time module.  Check for gettimeofday just once.
47403         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47404         for gettimeofday signature to just check the signature.  Merely
47405         compile it, since linking doesn't test signature.  Improve test for
47406         whether gettimeofday.o is actually needed.
47407         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47408         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47409         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47410         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47412         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47413         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47414         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47415         than worrying about sys/time.h.
47416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47417         Don't bother worrying about TIME_WITH_SYS_TIME.
47418         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47419         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47420         * m4/sys_time_h.m4: New file.
47421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47422         Don't include sys/time.h.  Return from main rather than exiting.
47423         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47424         all uses changed.
47425         * modules/gethrxtime (Depends-on): Add sys_time.
47426         * modules/gettime (Depends-on): Likewise.
47427         * modules/gettimeofday (Depends-on): Likewise.
47428         * modules/nanosleep (Depends-on): Likewise.
47429         * modules/settime (Depends-on): Likewise.
47430         * modules/tempname (Depends-on): Likewise.
47431         * modules/utimens (Depends-on): Likewise.
47432         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47433         (Include:) Change back to <sys/time.h>.
47434         (Maintainer:) Add self.
47435         * modules/sys_time: New file.
47436         * modules/tempname (Depends-on): Add gettimeofday.
47437         * tests/test-gettimeofday.c: Include <sys/time.h>
47438         rather than gettimeofday.h.
47439
47440 2007-01-17  Bruno Haible  <bruno@clisp.org>
47441
47442         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47443         the license default to GPL.
47444         (func_create_testdir): Don't complain if a module is LGPL and its
47445         tests module depends on GPLed modules.
47446
47447 2007-01-17  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/gettimeofday.c (gettimeofday): Add code for the case
47450         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47451         maximum possible value for tv->tv_usec, rather than the minimum one.
47452
47453 2005-10-08  Martin Lambers  <marlam@marlam.de>
47454 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47455 2007-01-16  Bruno Haible  <bruno@clisp.org>
47456
47457         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47458         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47459         gl_FUNC_GETTIMEOFDAY.
47460         (Include): Add gettimeofday.h.
47461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47463         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47464         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47465         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47466         * lib/gettimeofday.h: New file.
47467         * lib/gettimeofday.c: Include <sys/timeb.h>.
47468         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47469         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47470         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47471         fall back on time().
47472
47473         * tests/test-gettimeofday.c: New file.
47474         * modules/gettimeofday-tests: New file.
47475
47476 2007-01-16  Eric Blake  <ebb9@byu.net>
47477
47478         * modules/fnmatch (Depends-on): Depend on wchar.
47479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47480         * m4/fnmatch.m4: Likewise.
47481         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47482         * m4/mbchar.m4: Likewise.
47483         * modules/mbswidth (Depends-on): Depend on wchar.
47484         * lib/mbswidth.c: Assume <wchar.h>.
47485         * m4/mbswidth.m4: Likewise.
47486         * modules/quotearg (Depends-on): Depend on wchar.
47487         * lib/quotearg.c: Assume <wchar.h>.
47488         * m4/quotearg.m4: Likewise.
47489         * modules/regex (Depends-on): Depend on wchar.
47490         * lib/regex_internal.h: Assume <wchar.h>.
47491         * m4/regex.m4: Likewise.
47492         * modules/stdint (Depends-on): Depend on wchar.
47493         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47494         * m4/stdint.m4: Likewise.
47495         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47496         * modules/strftime (Depends-on): Depend on wchar.
47497         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47498         * modules/strtol (Depends-on): Depend on wchar.
47499         * lib/strtol.c: Assume <wchar.h>.
47500         * modules/wcwidth (Depends-on): Depend on wchar.
47501         * lib/wcwidth.h: Assume <wchar.h>.
47502         * m4/wcwidth.m4: Likewise.
47503
47504 2007-01-16  Bruno Haible  <bruno@clisp.org>
47505
47506         * modules/csharpexec-script: New, created from...
47507         * modules/csharpexec: ... this.
47508
47509 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47510
47511         * modules/javaexec-script: New, created from...
47512         * modules/javaexec: ... this.
47513
47514 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47515
47516         * modules/poll (Dependencies): Add sys_select.
47517
47518 2007-01-15  Jim Meyering  <jim@meyering.net>
47519
47520         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47521         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47522         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47523         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47524
47525 2007-01-15  Bruno Haible  <bruno@clisp.org>
47526
47527         * modules/striconveh: New file.
47528         * lib/striconveh.h: New file.
47529         * lib/striconveh.c: New file.
47530         * MODULES.html.sh (Internationalization functions): Add striconveh.
47531
47532         * modules/striconveh-tests: New file.
47533         * tests/test-striconveh.c: New file.
47534
47535 2007-01-15  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47538         not from GNU libiconv or GNU libc.
47539
47540 2007-01-15  Bruno Haible  <bruno@clisp.org>
47541
47542         * doc/gnulib-intro.texi (Copyright): Explain the different license
47543         terms for module descriptions, autoconf macros, tests, documentation.
47544
47545 2007-01-14  Bruno Haible  <bruno@clisp.org>
47546
47547         * modules/striconv-tests: New file.
47548         * tests/test-striconv.c: New file.
47549
47550 2007-01-14  Bruno Haible  <bruno@clisp.org>
47551
47552         * modules/iconv-tests: New file.
47553         * tests/test-iconv.c: New file.
47554
47555 2007-01-14  Bruno Haible  <bruno@clisp.org>
47556
47557         * gnulib-tool (func_get_license): For test modules, use the license of
47558         the main module.
47559
47560 2007-01-14  Bruno Haible  <bruno@clisp.org>
47561
47562         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47563         if iconv is found to exist.
47564
47565 2007-01-14  Bruno Haible  <bruno@clisp.org>
47566
47567         * modules/c-ctype-tests: New file.
47568         * tests/test-c-ctype.c: New file.
47569
47570 2007-01-14  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/binary-io-tests: New file.
47573         * tests/test-binary-io.sh: New file.
47574         * tests/test-binary-io.c: New file.
47575
47576 2007-01-14  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/array-oset-tests: New file.
47579         * tests/test-array_oset.c: New file.
47580
47581 2007-01-14  Bruno Haible  <bruno@clisp.org>
47582
47583         * modules/array-list-tests: New file.
47584         * tests/test-array_list.c: New file.
47585
47586 2007-01-14  Bruno Haible  <bruno@clisp.org>
47587
47588         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47589         and make.
47590         Reported by Simon Josefsson in
47591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47592
47593 2007-01-14  Bruno Haible  <bruno@clisp.org>
47594
47595         * modules/allocsa-tests: New file.
47596         * tests/test-allocsa.c: New file.
47597
47598 2007-01-14  Bruno Haible  <bruno@clisp.org>
47599
47600         * modules/fchdir (Depends-on): Add absolute-header.
47601         * modules/unistd (Depends-on): Likewise.
47602
47603 2006-12-30  Bruno Haible  <bruno@clisp.org>
47604
47605         * modules/fchdir: New file.
47606         * modules/unistd (Files): Add lib/unistd_.h.
47607         (Makefile.am): Generate unistd.h from unistd_.h.
47608         * lib/fchdir.c: New file.
47609         * lib/dirent_.h: New file.
47610         * lib/unistd_.h: New file.
47611         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47612         * m4/fchdir.m4: New file.
47613         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47614         (gl_HEADER_UNISTD): Invoke it.
47615         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47616         function.
47617         * lib/backupfile.c (opendir, closedir): Undefine.
47618         * lib/chown.c (open, close): Undefine.
47619         * lib/clean-temp.c (open, close): Undefine.
47620         * lib/copy-file.c (open, close): Undefine.
47621         * lib/execute.c (open, close): Undefine.
47622         * lib/fsusage.c (open, close): Undefine.
47623         * lib/gc-gnulib.c (open, close): Undefine.
47624         * lib/getcwd.c (opendir, closedir): Undefine.
47625         * lib/glob.c (opendir, closedir): Undefine.
47626         * lib/javacomp.c (open, close): Undefine.
47627         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47628         * lib/openat-proc.c (open, close): Undefine.
47629         * lib/pagealign_alloc.c (open, close): Undefine.
47630         * lib/pipe.c (open, close): Undefine.
47631         * lib/progreloc.c (open, close): Undefine.
47632         * lib/savedir.c (opendir, closedir): Undefine.
47633         * lib/utime.c (open, close): Undefine.
47634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47635
47636 2007-01-10  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47639
47640 2007-01-12  Eric Blake  <ebb9@byu.net>
47641
47642         Provide a robust <wchar.h>.  Further simplifications are now
47643         possible in other modules, but not included here.
47644         * modules/wchar: New module.
47645         * m4/wchar.m4: New file.
47646         * lib/wchar_.h: Likewise.
47647         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47648         of the new module.
47649         * MODULES.html.sh (Extended multibyte and wide character utilities):
47650         New section.
47651
47652 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47653
47654         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47655         to a reasonable default for memory allocation.
47656         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47657         file system that reports garbage st_size values for symlinks.
47658         Problem reported by Liyang Hu.
47659
47660 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47661
47662         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47663         Emacs .#* auto-save files).
47664
47665 2007-01-11  Bruno Haible  <bruno@clisp.org>
47666
47667         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47668         directory.
47669
47670 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47671
47672         Use @...@ consistently in lib/wctype_.h.
47673         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47674         on it being set to 1 or 0.
47675         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47676         go back to AC_SUBSTing it.
47677         * modules/wctype (Makefile.am): Undo previous change.
47678
47679 2007-01-10  Eric Blake  <ebb9@byu.net>
47680
47681         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47682         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47683         * modules/wctype (Makefile.am): Likewise.
47684         Reported by Chris McGuire.
47685
47686 2007-01-10  Jim Meyering  <jim@meyering.net>
47687
47688         fts.c: a small readability/maintainability improvement
47689         * lib/fts.c (fts_read): Make this code slightly more readable and
47690         maintainable by hoisting the "sp->fts_cur = p" assignments to
47691         immediately follow the statements that set P.  Derived from
47692         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47693
47694 2007-01-10  Eric Blake  <ebb9@byu.net>
47695
47696         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47697         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47699         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47700         Reported by Chris McGuire.
47701
47702 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47703
47704         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47705         in sed script.
47706
47707 2007-01-09  Bruno Haible  <bruno@clisp.org>
47708
47709         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47710         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47711         variables.
47712         (func_module): Use them.
47713
47714 2007-01-09  Bruno Haible  <bruno@clisp.org>
47715
47716         * modules/unistr/base: New file.
47717         * lib/unistr.h: New file.
47718
47719         * modules/unistr/u8-to-u16: New file.
47720         * lib/unistr/u8-to-u16.c: New file.
47721
47722         * modules/unistr/u8-to-u32: New file.
47723         * lib/unistr/u8-to-u32.c: New file.
47724
47725         * modules/unistr/u16-to-u8: New file.
47726         * lib/unistr/u16-to-u8.c: New file.
47727
47728         * modules/unistr/u16-to-u32: New file.
47729         * lib/unistr/u16-to-u32.c: New file.
47730
47731         * modules/unistr/u32-to-u8: New file.
47732         * lib/unistr/u32-to-u8.c: New file.
47733
47734         * modules/unistr/u32-to-u16: New file.
47735         * lib/unistr/u32-to-u16.c: New file.
47736
47737         * modules/unistr/u8-check: New file.
47738         * modules/unistr/u16-check: New file.
47739         * modules/unistr/u32-check: New file.
47740         * lib/unistr/u8-check.c: New file.
47741         * lib/unistr/u16-check.c: New file.
47742         * lib/unistr/u32-check.c: New file.
47743
47744         * modules/unistr/u8-chr: New file.
47745         * modules/unistr/u16-chr: New file.
47746         * modules/unistr/u32-chr: New file.
47747         * lib/unistr/u8-chr.c: New file.
47748         * lib/unistr/u16-chr.c: New file.
47749         * lib/unistr/u32-chr.c: New file.
47750
47751         * modules/unistr/u8-cmp: New file.
47752         * modules/unistr/u16-cmp: New file.
47753         * modules/unistr/u32-cmp: New file.
47754         * lib/unistr/u8-cmp.c: New file.
47755         * lib/unistr/u16-cmp.c: New file.
47756         * lib/unistr/u32-cmp.c: New file.
47757
47758         * modules/unistr/u8-cpy: New file.
47759         * modules/unistr/u16-cpy: New file.
47760         * modules/unistr/u32-cpy: New file.
47761         * lib/unistr/u8-cpy.c: New file.
47762         * lib/unistr/u16-cpy.c: New file.
47763         * lib/unistr/u32-cpy.c: New file.
47764         * lib/unistr/u-cpy.h: New file.
47765
47766         * modules/unistr/u8-cpy-alloc: New file.
47767         * modules/unistr/u16-cpy-alloc: New file.
47768         * modules/unistr/u32-cpy-alloc: New file.
47769         * lib/unistr/u8-cpy-alloc.c: New file.
47770         * lib/unistr/u16-cpy-alloc.c: New file.
47771         * lib/unistr/u32-cpy-alloc.c: New file.
47772         * lib/unistr/u-cpy-alloc.h: New file.
47773
47774         * modules/unistr/u8-endswith: New file.
47775         * modules/unistr/u16-endswith: New file.
47776         * modules/unistr/u32-endswith: New file.
47777         * lib/unistr/u8-endswith.c: New file.
47778         * lib/unistr/u16-endswith.c: New file.
47779         * lib/unistr/u32-endswith.c: New file.
47780         * lib/unistr/u-endswith.h: New file.
47781
47782         * modules/unistr/u8-mblen: New file.
47783         * modules/unistr/u16-mblen: New file.
47784         * modules/unistr/u32-mblen: New file.
47785         * lib/unistr/u8-mblen.c: New file.
47786         * lib/unistr/u16-mblen.c: New file.
47787         * lib/unistr/u32-mblen.c: New file.
47788
47789         * modules/unistr/u8-mbtouc: New file.
47790         * modules/unistr/u16-mbtouc: New file.
47791         * modules/unistr/u32-mbtouc: New file.
47792         * lib/unistr/u8-mbtouc.c: New file.
47793         * lib/unistr/u16-mbtouc.c: New file.
47794         * lib/unistr/u32-mbtouc.c: New file.
47795
47796         * modules/unistr/u8-mbtouc-safe: New file.
47797         * modules/unistr/u16-mbtouc-safe: New file.
47798         * modules/unistr/u32-mbtouc-safe: New file.
47799         * lib/unistr/u8-mbtouc-safe.c: New file.
47800         * lib/unistr/u16-mbtouc-safe.c: New file.
47801         * lib/unistr/u32-mbtouc-safe.c: New file.
47802
47803         * modules/unistr/u8-move: New file.
47804         * modules/unistr/u16-move: New file.
47805         * modules/unistr/u32-move: New file.
47806         * lib/unistr/u8-move.c: New file.
47807         * lib/unistr/u16-move.c: New file.
47808         * lib/unistr/u32-move.c: New file.
47809         * lib/unistr/u-move.h: New file.
47810
47811         * modules/unistr/u8-next: New file.
47812         * modules/unistr/u16-next: New file.
47813         * modules/unistr/u32-next: New file.
47814         * lib/unistr/u8-next.c: New file.
47815         * lib/unistr/u16-next.c: New file.
47816         * lib/unistr/u32-next.c: New file.
47817
47818         * modules/unistr/u8-prev: New file.
47819         * modules/unistr/u16-prev: New file.
47820         * modules/unistr/u32-prev: New file.
47821         * lib/unistr/u8-prev.c: New file.
47822         * lib/unistr/u16-prev.c: New file.
47823         * lib/unistr/u32-prev.c: New file.
47824
47825         * modules/unistr/u8-set: New file.
47826         * modules/unistr/u16-set: New file.
47827         * modules/unistr/u32-set: New file.
47828         * lib/unistr/u8-set.c: New file.
47829         * lib/unistr/u16-set.c: New file.
47830         * lib/unistr/u32-set.c: New file.
47831         * lib/unistr/u-set.h: New file.
47832
47833         * modules/unistr/u8-startswith: New file.
47834         * modules/unistr/u16-startswith: New file.
47835         * modules/unistr/u32-startswith: New file.
47836         * lib/unistr/u8-startswith.c: New file.
47837         * lib/unistr/u16-startswith.c: New file.
47838         * lib/unistr/u32-startswith.c: New file.
47839         * lib/unistr/u-startswith.h: New file.
47840
47841         * modules/unistr/u8-stpcpy: New file.
47842         * modules/unistr/u16-stpcpy: New file.
47843         * modules/unistr/u32-stpcpy: New file.
47844         * lib/unistr/u8-stpcpy.c: New file.
47845         * lib/unistr/u16-stpcpy.c: New file.
47846         * lib/unistr/u32-stpcpy.c: New file.
47847         * lib/unistr/u-stpcpy.h: New file.
47848
47849         * modules/unistr/u8-stpncpy: New file.
47850         * modules/unistr/u16-stpncpy: New file.
47851         * modules/unistr/u32-stpncpy: New file.
47852         * lib/unistr/u8-stpncpy.c: New file.
47853         * lib/unistr/u16-stpncpy.c: New file.
47854         * lib/unistr/u32-stpncpy.c: New file.
47855         * lib/unistr/u-stpncpy.h: New file.
47856
47857         * modules/unistr/u8-strcat: New file.
47858         * modules/unistr/u16-strcat: New file.
47859         * modules/unistr/u32-strcat: New file.
47860         * lib/unistr/u8-strcat.c: New file.
47861         * lib/unistr/u16-strcat.c: New file.
47862         * lib/unistr/u32-strcat.c: New file.
47863         * lib/unistr/u-strcat.h: New file.
47864
47865         * modules/unistr/u8-strchr: New file.
47866         * modules/unistr/u16-strchr: New file.
47867         * modules/unistr/u32-strchr: New file.
47868         * lib/unistr/u8-strchr.c: New file.
47869         * lib/unistr/u16-strchr.c: New file.
47870         * lib/unistr/u32-strchr.c: New file.
47871
47872         * modules/unistr/u8-strcmp: New file.
47873         * modules/unistr/u16-strcmp: New file.
47874         * modules/unistr/u32-strcmp: New file.
47875         * lib/unistr/u8-strcmp.c: New file.
47876         * lib/unistr/u16-strcmp.c: New file.
47877         * lib/unistr/u32-strcmp.c: New file.
47878
47879         * modules/unistr/u8-strcpy: New file.
47880         * modules/unistr/u16-strcpy: New file.
47881         * modules/unistr/u32-strcpy: New file.
47882         * lib/unistr/u8-strcpy.c: New file.
47883         * lib/unistr/u16-strcpy.c: New file.
47884         * lib/unistr/u32-strcpy.c: New file.
47885         * lib/unistr/u-strcpy.h: New file.
47886
47887         * modules/unistr/u8-strcspn: New file.
47888         * modules/unistr/u16-strcspn: New file.
47889         * modules/unistr/u32-strcspn: New file.
47890         * lib/unistr/u8-strcspn.c: New file.
47891         * lib/unistr/u16-strcspn.c: New file.
47892         * lib/unistr/u32-strcspn.c: New file.
47893         * lib/unistr/u-strcspn.h: New file.
47894
47895         * modules/unistr/u8-strdup: New file.
47896         * modules/unistr/u16-strdup: New file.
47897         * modules/unistr/u32-strdup: New file.
47898         * lib/unistr/u8-strdup.c: New file.
47899         * lib/unistr/u16-strdup.c: New file.
47900         * lib/unistr/u32-strdup.c: New file.
47901         * lib/unistr/u-strdup.h: New file.
47902
47903         * modules/unistr/u8-strlen: New file.
47904         * modules/unistr/u16-strlen: New file.
47905         * modules/unistr/u32-strlen: New file.
47906         * lib/unistr/u8-strlen.c: New file.
47907         * lib/unistr/u16-strlen.c: New file.
47908         * lib/unistr/u32-strlen.c: New file.
47909         * lib/unistr/u-strlen.h: New file.
47910
47911         * modules/unistr/u8-strmblen: New file.
47912         * modules/unistr/u16-strmblen: New file.
47913         * modules/unistr/u32-strmblen: New file.
47914         * lib/unistr/u8-strmblen.c: New file.
47915         * lib/unistr/u16-strmblen.c: New file.
47916         * lib/unistr/u32-strmblen.c: New file.
47917
47918         * modules/unistr/u8-strmbtouc: New file.
47919         * modules/unistr/u16-strmbtouc: New file.
47920         * modules/unistr/u32-strmbtouc: New file.
47921         * lib/unistr/u8-strmbtouc.c: New file.
47922         * lib/unistr/u16-strmbtouc.c: New file.
47923         * lib/unistr/u32-strmbtouc.c: New file.
47924
47925         * modules/unistr/u8-strncat: New file.
47926         * modules/unistr/u16-strncat: New file.
47927         * modules/unistr/u32-strncat: New file.
47928         * lib/unistr/u8-strncat.c: New file.
47929         * lib/unistr/u16-strncat.c: New file.
47930         * lib/unistr/u32-strncat.c: New file.
47931         * lib/unistr/u-strncat.h: New file.
47932
47933         * modules/unistr/u8-strncmp: New file.
47934         * modules/unistr/u16-strncmp: New file.
47935         * modules/unistr/u32-strncmp: New file.
47936         * lib/unistr/u8-strncmp.c: New file.
47937         * lib/unistr/u16-strncmp.c: New file.
47938         * lib/unistr/u32-strncmp.c: New file.
47939
47940         * modules/unistr/u8-strncpy: New file.
47941         * modules/unistr/u16-strncpy: New file.
47942         * modules/unistr/u32-strncpy: New file.
47943         * lib/unistr/u8-strncpy.c: New file.
47944         * lib/unistr/u16-strncpy.c: New file.
47945         * lib/unistr/u32-strncpy.c: New file.
47946         * lib/unistr/u-strncpy.h: New file.
47947
47948         * modules/unistr/u8-strnlen: New file.
47949         * modules/unistr/u16-strnlen: New file.
47950         * modules/unistr/u32-strnlen: New file.
47951         * lib/unistr/u8-strnlen.c: New file.
47952         * lib/unistr/u16-strnlen.c: New file.
47953         * lib/unistr/u32-strnlen.c: New file.
47954         * lib/unistr/u-strnlen.h: New file.
47955
47956         * modules/unistr/u8-strpbrk: New file.
47957         * modules/unistr/u16-strpbrk: New file.
47958         * modules/unistr/u32-strpbrk: New file.
47959         * lib/unistr/u8-strpbrk.c: New file.
47960         * lib/unistr/u16-strpbrk.c: New file.
47961         * lib/unistr/u32-strpbrk.c: New file.
47962         * lib/unistr/u-strpbrk.h: New file.
47963
47964         * modules/unistr/u8-strrchr: New file.
47965         * modules/unistr/u16-strrchr: New file.
47966         * modules/unistr/u32-strrchr: New file.
47967         * lib/unistr/u8-strrchr.c: New file.
47968         * lib/unistr/u16-strrchr.c: New file.
47969         * lib/unistr/u32-strrchr.c: New file.
47970
47971         * modules/unistr/u8-strspn: New file.
47972         * modules/unistr/u16-strspn: New file.
47973         * modules/unistr/u32-strspn: New file.
47974         * lib/unistr/u8-strspn.c: New file.
47975         * lib/unistr/u16-strspn.c: New file.
47976         * lib/unistr/u32-strspn.c: New file.
47977         * lib/unistr/u-strspn.h: New file.
47978
47979         * modules/unistr/u8-strstr: New file.
47980         * modules/unistr/u16-strstr: New file.
47981         * modules/unistr/u32-strstr: New file.
47982         * lib/unistr/u8-strstr.c: New file.
47983         * lib/unistr/u16-strstr.c: New file.
47984         * lib/unistr/u32-strstr.c: New file.
47985         * lib/unistr/u-strstr.h: New file.
47986
47987         * modules/unistr/u8-strtok: New file.
47988         * modules/unistr/u16-strtok: New file.
47989         * modules/unistr/u32-strtok: New file.
47990         * lib/unistr/u8-strtok.c: New file.
47991         * lib/unistr/u16-strtok.c: New file.
47992         * lib/unistr/u32-strtok.c: New file.
47993         * lib/unistr/u-strtok.h: New file.
47994
47995         * modules/unistr/u8-uctomb: New file.
47996         * modules/unistr/u16-uctomb: New file.
47997         * modules/unistr/u32-uctomb: New file.
47998         * lib/unistr/u8-uctomb.c: New file.
47999         * lib/unistr/u16-uctomb.c: New file.
48000         * lib/unistr/u32-uctomb.c: New file.
48001
48002         * MODULES.html.sh (Unicode string functions): Add the new modules.
48003
48004 2007-01-08  Bruno Haible  <bruno@clisp.org>
48005
48006         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48007         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48008         subdirectories.
48009
48010 2007-01-08  Karl Berry  <karl@gnu.org>
48011
48012         * doc/error.texi: mention that main() fns must set program_name
48013         when progname is used.
48014
48015 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48016
48017         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48018         WCTYPE_H is empty, for the benefit of builds from non-distclean
48019         directories.  Problem reported by Eric Blake in
48020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48021
48022 2007-01-08  Bruno Haible  <bruno@clisp.org>
48023
48024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48025         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48026         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48027         PROVIDE_CANONICALIZE_FILENAME_MODE.
48028         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48029
48030 2007-01-08  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48033         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48034         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48035         * lib/fts.c: Likewise.
48036         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48037
48038 2006-12-25  Bruno Haible  <bruno@clisp.org>
48039
48040         * modules/utf8-ucs4-safe: New file.
48041         * lib/utf8-ucs4-safe.h: New file.
48042         * lib/unistr/utf8-ucs4-safe.c: New file.
48043
48044         * modules/utf16-ucs4-safe: New file.
48045         * lib/utf16-ucs4-safe.h: New file.
48046         * lib/unistr/utf16-ucs4-safe.c: New file.
48047
48048         * MODULES.html.sh (Unicode string functions): Add the new modules.
48049
48050 2007-01-08  Bruno Haible  <bruno@clisp.org>
48051
48052         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48053         (Depends-on): Add unitypes.
48054         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48055         (u8_mbtouc_aux): Move out to separate file.
48056         (u8_mbtouc): Use ucs4_t, uint8_t types.
48057         * lib/unistr/utf8-ucs4.c: New file.
48058
48059         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48060         (Depends-on): Add unitypes.
48061         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48062         (u16_mbtouc_aux): Move out to separate file.
48063         (u16_mbtouc): Use ucs4_t, uint16_t types.
48064         * lib/unistr/utf16-ucs4.c: New file.
48065
48066         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48067         (Depends-on): Add unitypes.
48068         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48069         (u8_uctomb_aux): Move out to separate file.
48070         (u8_uctomb): Use ucs4_t, uint8_t types.
48071         * lib/unistr/ucs4-utf8.c: New file.
48072
48073         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48074         (Depends-on): Add unitypes.
48075         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48076         (u16_uctomb_aux): Move out to separate file.
48077         (u16_uctomb): Use ucs4_t, uint16_t types.
48078         * lib/unistr/ucs4-utf16.c: New file.
48079
48080 2006-12-25  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/unitypes: New file.
48083         * lib/unitypes.h: New file.
48084         * MODULES.html.sh (func_all_modules): New section "Unicode string
48085         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48086         this section. Add unitypes.
48087
48088 2007-01-08  Bruno Haible  <bruno@clisp.org>
48089
48090         Avoid variable names that conflict with those from libtool.
48091         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48092         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48093         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48094         library_names_spec to acl_library_names_spec, hardcode_* to
48095         acl_hardcode_*.
48096         Reported by Ralf Wildenhues.
48097
48098 2007-01-08  Bruno Haible  <bruno@clisp.org>
48099
48100         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48101         definition.
48102         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48103         definition.
48104         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48105         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48106         definition.
48107         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48108         definition.
48109         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48110         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48111         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48112         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48113         definition.
48114         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48115         definition.
48116         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48117         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48118         GC_USE_<algorithm>.
48119         * lib/gc-libgcrypt.c: Likewise.
48120         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48121         * modules/gc-arctwo (configure.ac): Likewise.
48122         * modules/gc-des (configure.ac): Likewise.
48123         * modules/gc-hmac-md5 (configure.ac): Likewise.
48124         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48125         * modules/gc-md2 (configure.ac): Likewise.
48126         * modules/gc-md4 (configure.ac): Likewise.
48127         * modules/gc-md5 (configure.ac): Likewise.
48128         * modules/gc-random (configure.ac): Likewise.
48129         * modules/gc-rijndael (configure.ac): Likewise.
48130         * modules/gc-sha1 (configure.ac): Likewise.
48131
48132 2007-01-08  Bruno Haible  <bruno@clisp.org>
48133
48134         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48135         macro definition.
48136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48137         definition.
48138         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48139         definition.
48140         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48141         * modules/fcntl-safer (configure.ac): Likewise.
48142         * modules/fopen-safer (configure.ac): Likewise.
48143         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48144         GNULIB_FWRITEERROR macro definition.
48145
48146 2007-01-08  Bruno Haible  <bruno@clisp.org>
48147
48148         * m4/gnulib-common.m4: New file.
48149         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48150         (func_get_filelist): Add m4/gnulib-common.m4.
48151
48152 2007-01-08  Bruno Haible  <bruno@clisp.org>
48153
48154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48155         command.
48156
48157 2007-01-08  Jim Meyering  <jim@meyering.net>
48158
48159         Use a more robust test for a "can't happen" condition.
48160         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48161         narrowed the st_size value.  Presuming the "can't happen" condition
48162         is true, that narrowing could conceivably convert an invalid st_size
48163         value into a valid one.  Instead, use a change based on Matthew
48164         Woehlke's original patch.
48165
48166         Slight readability improvement: use an assert-like macro
48167         in place of literal "abort ()" uses.
48168         * lib/fts.c (fts_assert): Define.
48169         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48170         Use this macro instead of a bare 'abort'.
48171
48172 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48175         simply work around them.
48176         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48177         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48178         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48179         declaring.
48180         Don't bother to define as macros, since the standard doesn't require it.
48181         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48182         longer worry about IRIX 5.3.
48183         (HAVE_WCTYPE_CTMP_BUG): Remove.
48184
48185 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48186
48187         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48188         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48189         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48190         Problems reported by Georg Schwarz for IRIX 5.3.
48191
48192         * gnulib-tool (autoconf_minversion): Take the maximum version number
48193         found, not the minimum.  Problem reported by James Youngman.
48194
48195 2007-01-03  Karl Berry  <karl@gnu.org>
48196
48197         * doc/error.texi: new file, explaining interaction with progname.
48198         * doc/gnulib.texi: include it.  Update copyright.
48199
48200 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48201
48202         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48203         AC_CANONICAL_HOST, to improve autobuild outputs.
48204
48205 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48206             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48207
48208         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48209         sockets, server sockets, and other file descriptors.  Count errors
48210         to compute the return value.  Reorder the code a bit to be easier
48211         to follow.  Don't set event bits that were not requested (except
48212         POLLERR and POLLHUP).
48213
48214 2007-01-01  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48217
48218 2007-01-03  Jim Meyering  <jim@meyering.net>
48219
48220         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48221
48222 2007-01-02  Bruno Haible  <bruno@clisp.org>
48223
48224         * modules/settime (Include): Require timespec.h.
48225         * modules/nanosleep (Include): Likewise.
48226
48227 2007-01-01  Bruno Haible  <bruno@clisp.org>
48228
48229         * gnulib-tool (func_emit_copyright_notice): Bump year.
48230         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48231
48232 2007-01-01  Bruno Haible  <bruno@clisp.org>
48233
48234         Improve support for OpenBSD.
48235         * build-aux/config.rpath (libname_spec): Export.
48236         (library_names_spec): New variable. Export.
48237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48238         library_names_spec from the config.rpath output. Locate shared library
48239         through the name pattern in library_names_spec.
48240
48241 2007-01-01  Eric Blake  <ebb9@byu.net>
48242
48243         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48244
48245 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48246
48247         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48248         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48249         assume the C locale, and avoid an "eval" that could cause trouble.
48250         Problem with SORT reported by Bob Proulx.
48251
48252         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48253         Define.  Trivial patch from Henning Nielsen Lund, originally
48254         sent to bug-grep@gnu.org today.
48255
48256 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48257
48258         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48259         struct stat.  Problem reported by Henning Nielsen Lund.
48260         * lib/acl.c: Include acl.h first, to check interface.  Don't
48261         bother to include sys/types.h and sys/stat.h again.
48262
48263 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48264
48265         Import the following change from libc; problem reported by
48266         Sven Verdoolaege.
48267
48268         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48269
48270         [BZ #1373]
48271         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48272
48273 2006-12-28  Jim Meyering  <jim@meyering.net>
48274
48275         * build-aux/announce-gen: Do not assume that the package
48276         builds any of tar.gz, tar.bz2, and .xdelta files.
48277         Suggestion from Simon Josefsson.
48278
48279 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48280
48281         * modules/announce-gen: New file.
48282
48283 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48284
48285         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48286         handles its gotchas now.
48287         * lib/mbswidth.c: Likewise.
48288         * lib/wcwidth.h: Likewise.
48289         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48290         and iswcntrl; the wctype module does this stuff now.
48291         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48293         * modules/mbchar (Depends-on): Add wctype.
48294         * modules/mbswidth (Depends-on): Likewise.
48295         * modules/wcwidth (Depends-on): Likewise.
48296
48297 2006-12-27  Eric Blake  <ebb9@byu.net>
48298
48299         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48300         module uses more than what <wctype.h> is required to provide.
48301
48302 2006-12-26  Eric Blake  <ebb9@byu.net>
48303
48304         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48305
48306 2006-12-26  Eric Blake  <ebb9@byu.net>
48307
48308         * modules/absolute-header: New module.
48309         * modules/fcntl (Depends-on): Depend on it.
48310         * modules/inttypes (Depends-on): Likewise.
48311         * modules/stdint (Depends-on): Likewise.
48312         * modules/sys_stat (Depends-on): Likewise.
48313         * modules/wctype (Depends-on): Likewise.
48314         * MODULES.html.sh (Support for building libraries and
48315         executables): Document it.
48316
48317 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48318
48319         * gnulib-tool (SED): Remove, undoing previous change.
48320         The problem was that it broke coreutils on Solaris, because
48321         "sed --posix" leaked into a makefile.
48322         (sed): New alias, if 'alias' and GNU sed.
48323
48324 2006-12-24  Jim Meyering  <jim@meyering.net>
48325
48326         Work around an fchownat bug in glibc-2.4:
48327         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48328         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48329         in spite of the -P option.
48330         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48331         New macros.
48332         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48333         * modules/openat (Files): Add lib/fchownat.c.
48334         * lib/openat.c (fchownat): Don't define here.  Move to...
48335         * lib/fchownat.c: ...this new file.
48336
48337 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48338
48339         Fix bug reported by Bruno Haible in
48340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48341         where quotearg.c didn't compile on Mac OS X 10.2 because it
48342         lacks <wchar.h> and wint_t.
48343         * lib/wctype_.h (__wctype_wint_t): New type.
48344         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48345         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48346         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48347         Arg is now of type __wctype_wint_t, not wint_t.
48348         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48349         substitute HAVE_WINT_T.
48350         * modules/wctype (Files): Add m4/wint_t.m4.
48351         (wctype.h): Substitute HAVE_WINT_T.
48352
48353 2006-12-23  Bruno Haible  <bruno@clisp.org>
48354
48355         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48356
48357 2006-12-23  Bruno Haible  <bruno@clisp.org>
48358
48359         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48360         S_ISLNK.
48361         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48362         mingw.
48363
48364 2006-12-22  Bruno Haible  <bruno@clisp.org>
48365
48366         * lib/copy-file.c: Include acl.h.
48367         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48368         Close the file descriptors only after being done with copy_acl.
48369         * modules/copy-file (Depends-on): Add acl.
48370
48371 2006-12-22  Bruno Haible  <bruno@clisp.org>
48372
48373         * gnulib-tool (SED): New variable.
48374         Use $SED instead of sed everywhere.
48375
48376 2006-12-22  Bruno Haible  <bruno@clisp.org>
48377
48378         * modules/no-c++: New file.
48379         * m4/no-c++.m4: New file.
48380         * MODULES.html.sh (Support for building libraries and executables):
48381         Add no-c++.
48382
48383 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48384
48385         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48386         Include <limits.h>, and use its INT_MAX to rewrite the
48387         j loop so that it does not overflow 'int'.  Problem reported by
48388         Ralf Wildenhues in
48389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48390         Play it safe by shifting left by 1 rather than multiplying by 2,
48391         as GCC is less likely to optimize this away when the value
48392         is signed (when it assumes overflow leads to undefined behavior).
48393         Also, don't assume time_t uses two's complement.
48394
48395 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48396
48397         * MODULES.html.sh: New module wctype.
48398         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48399         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48400         <wctype.h>, since the new wctype module should fix this.
48401         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48402         the wctype module should arrange for it.
48403         * lib/regex_internal.h: Likewise.
48404         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48405         since the wctype module should handle this now.
48406         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48407         * modules/fnmatch (Depends-on): Add wctype.
48408         * modules/quotearg (Depends-on): Likewise.
48409         * modules/regex (Depends-on): Likewise.
48410
48411 2006-12-19  Bruno Haible  <bruno@clisp.org>
48412
48413         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48414         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48415
48416 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48417
48418         * modules/savewd (Depends-on): Fix dependency on fcntl.
48419
48420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48421
48422         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48423         conforms to C99, rather than relying on the user's environment
48424         setting of STDINT_H.
48425
48426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48427         and Eric Blake  <ebb9@byu.net>
48428
48429         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48430         This is more consistent with the other defines here.
48431         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48432         Port to z/OS.  Problem reported by Paul Gilmartin.
48433         Change local vars to use gl_ prefix rather than ac_.
48434         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48435         with other defines.
48436         * modules/double-slash-root: New module.
48437         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48438         (Depends-on): Add double-slash-root.
48439         * MODULES.html.sh (File system functions): Mention new module.
48440
48441 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48442
48443         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48444         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48445         This is for the benefit of gzip, which doesn't do i18n.
48446
48447 2006-12-12  Jim Meyering  <jim@meyering.net>
48448
48449         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48450         Reported by Andreas Schwab <schwab@suse.de>.
48451
48452 2006-12-12  Bruno Haible  <bruno@clisp.org>
48453
48454         Merge these changes.
48455         2006-09-05  Bruno Haible  <bruno@clisp.org>
48456         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48457         iconv_alloc succeeded.
48458         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48459         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48460         test for " && dest " at the end - dest is always != NULL there. Call
48461         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48462         with 2xNULL arguments, also to flush the state storage. Handle the
48463         IRIX iconv behaviour. Realloc the final result, to throw away unused
48464         memory.
48465
48466 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48467
48468         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48469         and fchmodat unconditionally, since glibc 2.4 has them.
48470         Problem reported by Arkadiusz Miskiewicz.
48471
48472 2006-12-10  Bruno Haible  <bruno@clisp.org>
48473
48474         * gnulib-tool (func_import): Show the include files only for those
48475         modules that are copied and specified.
48476         Reported by Karl Berry.
48477
48478 2006-12-08  Jim Meyering  <jim@meyering.net>
48479
48480         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48481         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48482
48483         * build-aux/announce-gen: Add two new options, both optional:
48484         --bootstrap-tools=TOOL_LIST
48485               a comma-separated list of tools, e.g.,
48486               autoconf,automake,bison,gnulib
48487         --gnulib-snapshot-date=DATE
48488               if gnulib is in the bootstrap tool list,
48489               then report this as the snapshot date.
48490               If not specified, use the current date/time.
48491               If you specify a date here, be sure it's UTC.
48492
48493 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48494
48495         * tests/test-argp-2.sh: Fix test to match actual output.
48496         (func_compare): Fix sed script to be portable.
48497
48498 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48499
48500         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48501         workaround for this case.  It is not autoconfigured now; offhand
48502         it's hard to see how to autoconfigure it.
48503
48504 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48505
48506         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48507         a directory that is about to be chowned.  Such a directory's
48508         initial file permissions should permit the owner only and this
48509         should not be changed until after the chown, since the group and
48510         other bits would be incorrect if they granted permission before
48511         the chown.
48512
48513         Fix porting problem for iswctype reported by Georg Schwarz in:
48514         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48515         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48516         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48518         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48519
48520 2006-12-03  Jim Meyering  <jim@meyering.net>
48521
48522         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48523         p->fts_statp may not yet be defined.
48524         (fts_read): Instead, set it in the caller, once p->fts_statp is
48525         sure to be defined, and corresponds to a top-level directory.
48526         This bug made du -x fail.  Here's the coreutils test case:
48527         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48528         Reported by Mike Frysinger.
48529
48530 2006-12-01  Jim Meyering  <jim@meyering.net>
48531
48532         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48533         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48534         Reported by Simon Josefsson.
48535
48536 2006-11-30  Jim Meyering  <jim@meyering.net>
48537
48538         * m4/warning.m4: Use the all-permissive copyright notice
48539         recommended by RMS (rather than LGPL).
48540         * m4/vararrays.m4: Likewise.
48541         * m4/flexmember.m4: Likewise.
48542
48543 2006-11-29  Bruno Haible  <bruno@clisp.org>
48544
48545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48546         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48547         using +=.
48548         Reported by Simon Josefsson <simon@josefsson.org>.
48549
48550 2006-11-28  James Youngman <jay@gnu.org>
48551
48552         * README: Advise users that they might find the bug-gnulib@gnu.org
48553         and autotools-announce@gnu.org mailing lists useful.
48554
48555 2006-11-28  Bruno Haible  <bruno@clisp.org>
48556
48557         * m4/ptrdiff_max.m4: Remove file.
48558
48559 2006-11-21  Bruno Haible  <bruno@clisp.org>
48560
48561         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48562         _AC_COMPUTE_INT.
48563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48564         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48565         _AC_COMPUTE_INT.
48566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48567         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48568         _AC_COMPUTE_INT.
48569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48570
48571 2006-11-28  Jim Meyering  <jim@meyering.net>
48572
48573         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48574         warning from "gcc -Wshadow" about shadowing the builtin.
48575
48576 2006-11-27  Bruno Haible  <bruno@clisp.org>
48577
48578         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48579         _AC_COMPUTE_INT.
48580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48581
48582 2006-11-27  Bruno Haible  <bruno@clisp.org>
48583             Paul Eggert  <eggert@cs.ucla.edu>
48584
48585         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48586
48587 2006-11-26  Bruno Haible  <bruno@clisp.org>
48588
48589         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48590         noinst_LTLIBRARIES.
48591
48592 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48593             Bruno Haible  <bruno@clisp.org>
48594
48595         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48596         if compiling with "gcc -ansi".
48597
48598 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48599
48600         Fix some incompatibilities with gcc -ansi -pedantic.
48601         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48602         if compiling pedantically with GCC, unless it's C99 or later.
48603         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48604         it mishandles gcc -ansi -pedantic as well.
48605         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48606         if gcc -pedantic.
48607         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48608         initializers for struct if -pedantic, unless it's C99 or later.
48609
48610 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48611
48612         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48613         Don't close an fd more than once. Identical atimes indicate
48614         success, not failure.
48615
48616 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48617
48618         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48619
48620 2006-11-23  Jim Meyering  <jim@meyering.net>
48621
48622         * build-aux/announce-gen: New file.  From coreutils.
48623
48624 2006-11-22  Jim Meyering  <jim@meyering.net>
48625
48626         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48627         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48628         (fts_read): Use a temporary to narrow the overused st_size member
48629         before using it in a switch statement.  Reported by Matthew Woehlke.
48630
48631         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48633
48634 2006-11-20  Bruno Haible  <bruno@clisp.org>
48635
48636         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48637         changequote instead of pairs of brackets.
48638         Reported by Andreas Schwab <schwab@suse.de>.
48639
48640 2006-11-21  Jim Meyering  <jim@meyering.net>
48641
48642         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48643         so as to remain compatible with older compilers.
48644         Patch from Michael Deutschmann.
48645
48646 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48647
48648         * MODULES.html.sh (File system functions): Add openat.
48649
48650         * lib/openat.h (rpl_fstatat): New macro, if
48651         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48652         (fstatat): Define to rpl_fstatat under the same conditions,
48653         unless COMPILING_FSTATAT.
48654         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48655         seems to have the bug.
48656         * lib/fstatat.c: New file.
48657         * modules/openat (Files): Add it.
48658
48659 2006-11-20  Bruno Haible  <bruno@clisp.org>
48660
48661         * Makefile: New file.
48662
48663 2006-11-20  Jim Meyering  <jim@meyering.net>
48664
48665         The beginnings of syntax-related checks for gnulib.
48666         * lib/Makefile: New file.
48667         * lib/t-idcache: New script.  Ensure that the two halves of
48668         idcache.c stay in sync.
48669
48670         * lib/idcache.c: Adjust comments in user- and group- portions to
48671         be more accurate, and to be consistent with one another.
48672
48673 2006-11-20  Jim Meyering  <jim@meyering.net>
48674
48675         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48676         continue using the flexible array member (thus, this module performs
48677         half as many malloc calls), with the addition that...
48678         (getgroup, getuser): Consistently record a non-match via an empty
48679         "name" string, and map an empty string match to a NULL return value.
48680         * modules/idcache (Depends-on): Re-add flexmember.
48681
48682         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48683         (getuidbyname, getgroup, getgidbyname): Likewise.
48684
48685         Use cleaner syntax: NULL rather than 0.
48686         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48687
48688 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48691         It mishandled the case where the group was missing.
48692         Problem reported by Greg Schafer.
48693         * modules/idcache: Likewise.
48694
48695 2006-11-18  Jim Meyering  <jim@meyering.net>
48696
48697         * check-module (%exempt_header): Add exception for some
48698         conditionally-included headers.
48699
48700         * modules/i-ring (Depends-on): Add verify.
48701         (License): Change to LGPL.
48702
48703 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48704
48705         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48706         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48707         and inttostr.h.  Use snprintf rather than uinttostr, so that
48708         LGPLed code doesn't depend on GPLed.
48709
48710 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48711
48712         * modules/inline (License): Change from GPL to LGPL.
48713
48714 2006-11-17  Jim Meyering  <jim@meyering.net>
48715
48716         * modules/d-type (License): Switch to LGPL.
48717
48718 2006-11-15  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48721
48722 2006-11-15  Eric Blake  <ebb9@byu.net>
48723
48724         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48725         the module dependency.
48726
48727 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48728             Bruno Haible  <bruno@clisp.org>
48729
48730         * gnulib-tool (func_create_testdir): Add license consistency check.
48731
48732 2006-11-15  Eric Blake  <ebb9@byu.net>
48733
48734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48735         random "(cached)" in configure output.
48736
48737 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48738
48739         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48740         test for conforming inttypes.h is both announced and cached.
48741
48742         * MODULES.html.sh (seen_modules, seen_files): New variables.
48743         (func_module): Rewrite to use a few less gnulib-tool and sed
48744         invocations.  Avoid a couple of quadratic algorithms for ...
48745         (missed_modules, missed_files): ... these, with ...
48746         (func_append, func_tmpdir): ... these new functions, from
48747         gnulib-tool.  Analogously, install traps for cleanup.
48748
48749         * tests/test-gc.c (main): Remove unused variables.
48750         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48751
48752 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48753
48754         * modules/inttostr (License): Change to LGPL.
48755
48756 2006-11-14  Eric Blake  <ebb9@byu.net>
48757
48758         * modules/tempname (License): Change to LGPL.
48759
48760 2006-11-14  Eric Blake  <ebb9@byu.net>
48761
48762         * doc/functions.texi (Function Portability): *printf functions on
48763         Cygwin now understand all POSIX size specifiers.
48764
48765 2006-11-14  Bruno Haible  <bruno@clisp.org>
48766
48767         * modules/c-ctype (License): Change to LGPL.
48768
48769 2006-11-12  Bruno Haible  <bruno@clisp.org>
48770
48771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48772         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48773         for GNOME libraries, for which the include files are installed in
48774         subdirectories of $prefix/include.
48775
48776 2006-11-12  Bruno Haible  <bruno@clisp.org>
48777
48778         * m4/lib-link.m4: Require at least autoconf-2.54.
48779         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48780         name to underscores for the --with option.
48781
48782 2006-11-13  Bruno Haible  <bruno@clisp.org>
48783
48784         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48785         the tests directory.
48786         Reported by Ralf Wildenhues.
48787
48788 2006-11-13  Bruno Haible  <bruno@clisp.org>
48789
48790         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48791         (func_emit_initmacro_end): Undo the override here.
48792         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48793         Works around the famous automake error in coreutils.
48794
48795 2006-11-13  Eric Blake  <ebb9@byu.net>
48796
48797         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48798         element, not its node.
48799
48800 2006-11-12  Bruno Haible  <bruno@clisp.org>
48801
48802         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48803         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48804
48805 2006-11-12  Bruno Haible  <bruno@clisp.org>
48806
48807         * gnulib-tool: New option --local-symlink.
48808         (func_usage): Document it.
48809         (lsymbolic): New variable.
48810         (func_import, func_create_testdir): If --symlink was not specified,
48811         test whether --local-symlink was specified and the file comes from
48812         the local_gnulib_dir.
48813
48814 2006-11-12  Bruno Haible  <bruno@clisp.org>
48815
48816         * gnulib-tool (func_ln): New function.
48817         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48818
48819 2006-11-12  Bruno Haible  <bruno@clisp.org>
48820
48821         Finish support for source files in subdirectories.
48822         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48823         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48824         AUTOMAKE_OPTIONS.
48825         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48826
48827 2006-11-12  Bruno Haible  <bruno@clisp.org>
48828
48829         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48830         EXTRA_lib_SOURCES augmentation.
48831         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48832
48833 2006-11-12  Jim Meyering  <jim@meyering.net>
48834
48835         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48836         file descriptors.  This also averts a failure on systems with
48837         native openat support when a traversed directory lacks "x" access.
48838         * lib/fts_.h: Include "i-ring.h"
48839         (struct FTS) [fts_fd_ring]: New member.
48840         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48841         (FCHDIR): Add parentheses.
48842         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48843         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48844         When descending, rather than simply closing the previous
48845         fts_cwd_fd value, push that file descriptor onto the ring.
48846         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48847         (fts_open): Initialize the new fd_ring member.
48848         (fts_close): Clear the ring.
48849         (fts_safe_changedir): When possible, use our new fd_ring to skip
48850         the diropen and fstat and dev/ino comparison that would normally
48851         accompany a virtual `chdir ("..")'.
48852
48853         * modules/fts (Depends-on): Add i-ring.
48854         * modules/i-ring: New module.
48855         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48856         * m4/i-ring.m4: New file.
48857
48858 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48859
48860         * gnulib-tool (func_create_testdir): Fix replacement of
48861         `build-aux' in configure.ac.  Run autotools in gltests
48862         subdirectory.
48863         (func_create_testdir, func_create_megatestdir, test): There is
48864         no need for '--force' in most autotool invocations in a new
48865         tree.  Actually fail the whole test if any of the tools, or the
48866         configure or make stages fail.
48867
48868         Sync from Automake.
48869         * build-aux/gnupload: Revert last change.  Add pointer to upload
48870         instructions of the GNU Maintenance Instructions.
48871         Suggestion by Karl Berry.
48872
48873 2006-11-10  Jim Meyering  <jim@meyering.net>
48874
48875         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48876
48877 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48880         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48881         (bind_textdomain_codeset) [! ENABLE_NLS]:
48882         Evaluate all the arguments.  That way, callers get compatible behavior
48883         if the arguments have side effects.  Also, it avoids some GCC
48884         diagnostics in some cases; Joel E. Denny reported problems when Bison
48885         was configured with --enable-gcc-warnigs.
48886
48887 2006-11-10  Jim Meyering  <jim@meyering.net>
48888
48889         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48890         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48891         account.
48892
48893 2006-11-10  Jim Meyering  <jim@meyering.net>
48894
48895         * modules/inline: New file/module.
48896         * modules/xalloc (Files): Remove m4/inline.m4.
48897         (Depends-on): Add inline, instead.
48898         * modules/oset: Likewise.
48899         * modules/list: Likewise.
48900
48901 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48904         Problem reported by Matthew Woehlke.
48905
48906 2006-11-09  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/tempname.c (gen_tempname): Remove variant that invokes
48909         __gen_tempname.
48910         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48911         __gen_tempname.
48912
48913 2006-11-08  Bruno Haible  <bruno@clisp.org>
48914
48915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48916         to 'yes' instead of 'cross-compiling'.
48917
48918 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48919
48920         * lib/quotearg.h (quotearg_free): New decl.
48921         * lib/quotearg.c (quotearg_free): New function.
48922         (slot0, nslots, slotvec0, slotvec):
48923         Now file-scope so that quotearg_free can get at them.
48924
48925 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48926
48927         Sync from Automake.
48928         * build-aux/gnupload: Add missing 'gnu' to example URL.
48929         Report by Karl Berry.
48930
48931 2006-11-08  Bruno Haible  <bruno@clisp.org>
48932
48933         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48934         Suggested by Paul Eggert.
48935
48936 2006-11-08  Jim Meyering  <jim@meyering.net>
48937
48938         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48939         It's already included if !_LIBC.
48940         (fts_safe_changedir): Add a comment.
48941
48942 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48943
48944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48945         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48946         Matthew Woehlke.
48947
48948         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48949         definitions up, to avoid colliding with change below.
48950         (static_inline) [HAVE_INLINE]: New macro.
48951         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48952         Provide extern decls when !HAVE_INLINE.  Do not define unless
48953         static_inline is defined, either by us or by xmalloc.c.  Use
48954         static_inline rather than static inline.
48955         (XCALLOC): Optimize sizeof(T) = 1 case.
48956         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48957
48958 2006-11-07  Bruno Haible  <bruno@clisp.org>
48959
48960         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48962         AC_C_INLINE.
48963         * modules/xalloc (Files): Add m4/inline.m4.
48964
48965 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48966
48967         * README: Fix typo.
48968         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48969         (Miscellanous Notes): ...from this.
48970
48971 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48972
48973         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48974         Mention that offsetof should be used instead of sizeof.
48975         From Bruno Haible.
48976
48977 2006-11-07  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48980
48981 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48982
48983         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48984         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48985         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48986         (gl_tree_add_before, gl_tree_add_after):
48987         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48988         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48989         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48990         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48991         (gl_linked_add_after, gl_linked_add_at): Likewise.
48992         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48993         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48994         (gl_tree_add_before, gl_tree_add_after): Likewise.
48995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48996         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48998
48999 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49000
49001         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49002
49003 2006-11-06  Bruno Haible  <bruno@clisp.org>
49004
49005         * m4/inline.m4: New file.
49006         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49007         * modules/list (Files): Add m4/inline.m4.
49008         * modules/oset (Files): Likewise.
49009
49010 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49011
49012         * lib/idcache.c: Include <stddef.h>, for offsetof.
49013         (struct userid.name): Change from char * to a flexible array member.
49014         All uses changed.
49015         * modules/idcache (Depends-on): Add flexmember.
49016
49017         * MODULES.html.sh (Core language properties): New module flexmember.
49018         * modules/flexmember, m4/flexmember.m4: New files.
49019
49020         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49021         inline functions that are identical with the old xnmalloc_inline,
49022         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49023         that we can avoid some unnecessary integer multiplications and
49024         divisions in the common case where the element size is known at
49025         compile time.
49026         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49027         needed.
49028         (xnboundedmalloc): Remove.
49029         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49030         arguments, for consistency with rest of this header.
49031         (xcharalloc): Rewrite using XNMALLOC.
49032         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49033         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49034         versions have been moved to lib/xalloc.h and renamed to be the
49035         non-*_inline versions.
49036         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49037         and xnrealloc functions, since those functions are now inline and
49038         now call us.
49039         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49040         renaming described above.
49041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49042         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49043         captures the dependency in AC_C_INLINE.
49044
49045         New module canonicalize-lgpl, proposed by Charles Wilson in
49046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49047         with a few small changes afterwards.
49048         * MODULES.html.sh (File system functions): New module
49049         canonicalize-lgpl.
49050         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49051         and canonicalize_file_name.
49052         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49053         * modules/canonicalize-lgpl: New files.
49054
49055 2006-11-05  Bruno Haible  <bruno@clisp.org>
49056
49057         * gnulib-tool (func_import, func_create_testdir): Create directories
49058         also for files in subdirectories of lib/.
49059
49060 2006-11-05  Bruno Haible  <bruno@clisp.org>
49061
49062         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49063         ANSI C compliant.
49064
49065 2006-11-03  Bruno Haible  <bruno@clisp.org>
49066
49067         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49068         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49069         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49070         (xnboundedmalloc): New inline function.
49071         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49072         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49073         xmalloc.
49074         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49075         xmalloc.
49076         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49077         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49078         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49079         xmalloc.
49080         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49081         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49082         xmalloc.
49083         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49085         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49086         xmalloc.
49087         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49088         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49089         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49090         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49091         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49092         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49093         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49094
49095 2006-11-03  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/c-ctype.h [C++]: Define functions without name mangling.
49098         * lib/fwriteerror.h [C++]: Likewise.
49099         * lib/gcd.h [C++]: Likewise.
49100         * lib/linebreak.h [C++]: Likewise.
49101
49102 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49103
49104         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49105         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49106         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49108         Check for functions and headers just once.
49109         Check for declaration of canonicalize_file_name.
49110         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49111
49112 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49113
49114         * gnulib-tool (func_import): Fix typo in actioncmd.
49115
49116 2006-11-02  Bruno Haible  <bruno@clisp.org>
49117
49118         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49119         newline sequence in the Makefile.am snippet as a space, like "make"
49120         does.
49121         Reported by Roger Persson <perrog@gmail.com>.
49122
49123 2006-11-01  Bruno Haible  <bruno@clisp.org>
49124
49125         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49126         already declared in <string.h>.
49127         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49128
49129 2006-11-01  Bruno Haible  <bruno@clisp.org>
49130
49131         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49132         * lib/strcase.h: Include <string.h>.
49133         (strcasecmp): Define to rpl_strcasecmp here.
49134
49135 2006-11-01  Bruno Haible  <bruno@clisp.org>
49136
49137         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49138
49139 2006-11-01  Eric Blake  <ebb9@byu.net>
49140
49141         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49142
49143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49144
49145 2006-10-29  Bruno Haible  <bruno@clisp.org>
49146
49147         Make it compile in C++ mode.
49148         * lib/full-write.c (full_rw): Add a cast.
49149
49150 2006-11-01  Bruno Haible  <bruno@clisp.org>
49151
49152         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49153         be POSIX compliant.
49154         Reported by Roger Persson <perrog@gmail.com>.
49155
49156 2006-11-01  Eric Blake  <ebb9@byu.net>
49157
49158         * lib/getopt_.h: Fix comments.
49159
49160 2006-10-31  Eric Blake  <ebb9@byu.net>
49161
49162         * modules/tmpdir (Depends-on): Add sys_stat.
49163         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49164         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49165         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49166         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49167         tempname.
49168
49169 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49170
49171         Avoid some C++ diagnostics reported by Bruno Haible.
49172         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49173         xmalloc.
49174         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49175         (struct slotvec): Move to top level.
49176         (quotearg_n_options): Rewrite to avoid xmalloc.
49177         * lib/xalloc.h (xcharalloc): New function.
49178         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49179         [defined __cplusplus]: Add function template that provides result
49180         type propagation.  This part of the change is from Bruno Haible.
49181
49182 2006-10-29  Bruno Haible  <bruno@clisp.org>
49183
49184         Make it compile in C++ mode.
49185         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49186         * lib/strnlen1.c (strnlen1): Cast memchr result.
49187         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49188         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49189         (create_temp_dir): Rename local variable 'template'.
49190         (compile_csharp_using_sscli): Add cast.
49191         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49192         * lib/findprog.c (find_in_path): Likewise.
49193         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49194         * lib/wait-process.c (register_slave_subprocess): Likewise.
49195
49196 2006-10-22  Bruno Haible  <bruno@clisp.org>
49197
49198         * modules/tsearch: New file.
49199         * lib/tsearch.h: New file.
49200         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49201         * m4/tsearch.m4: New file.
49202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49203
49204 2006-10-29  Eric Blake  <ebb9@byu.net>
49205
49206         * lib/arcfour.c: Assume config.h.
49207         * lib/arctwo.c: Likewise.
49208         * lib/base64.c: Likewise.
49209         * lib/check-version.c: Likewise.
49210         * lib/crc.c: Likewise.
49211         * lib/des.c: Likewise.
49212         * lib/gc-gnulib.c: Likewise.
49213         * lib/gc-libgcrypt.c: Likewise.
49214         * lib/gc-pbkdf2-sha1.c: Likewise.
49215         * lib/getaddrinfo.c: Likewise.
49216         * lib/getdelim.c: Likewise.
49217         * lib/getline.c: Likewise.
49218         * lib/hmac-md5.c: Likewise.
49219         * lib/hmac-sha1.c: Likewise.
49220         * lib/iconvme.c: Likewise.
49221         * lib/md2.c: Likewise.
49222         * lib/md4.c: Likewise.
49223         * lib/memxor.c: Likewise.
49224         * lib/read-file.c: Likewise.
49225         * lib/readline.c: Likewise.
49226         * lib/rijndael-alg-fst.c: Likewise.
49227         * lib/rijndael-api-fst.c: Likewise.
49228         * lib/xgetdomainname.c: Likewise.
49229
49230 2006-10-28  Eric Blake  <ebb9@byu.net>
49231
49232         * lib/xstrndup.c: Assume config.h.
49233
49234 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49237         stat-macros.h is now for our own macros, whereas stat_h is for
49238         macros in the <sys/stat.h> name space.
49239         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49240         (STAT_MACROS_H): Remove.
49241         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49242         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49243         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49244         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49245         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49246         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49247         Move these macros to ...
49248         * lib/stat_.h: here.  Don't include stat-macros.h.
49249         * lib/canonicalize.c: Don't include stat-macros.h.
49250         * lib/chown.c: Likewise.
49251         * lib/euidaccess.c: Likewise.
49252         * lib/file-type.c: Likewise.
49253         * lib/filemode.c: Likewise.
49254         * lib/glob.c: Likewise.
49255         * lib/isapipe.c: Likewise.
49256         * lib/lchown.c: Likewise.
49257         * lib/lstat.c: Likewise.
49258         * lib/mkdir-p.c: Likewise.
49259         * lib/rmdir.c: Likewise.
49260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49262         unless mkdir isn't declared, to speed up 'configure'.
49263         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49264         would define all the S_* symbols.
49265         * modules/canonicalize (Depends-on):
49266         Depend on sys_stat, not stat-macros.
49267         * modules/chown: Likewise.
49268         * modules/euidaccess: Likewise.
49269         * modules/filemode: Likewise.
49270         * modules/file-type: Likewise.
49271         * modules/glob: Likewise.
49272         * modules/isapipe: Likewise.
49273         * modules/lchown: Likewise.
49274         * modules/lstat: Likewise.
49275         * modules/mkancesdirs: Likewise.
49276         * modules/rmdir: Likewise.
49277         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49278         * modules/modechange: Likewise.
49279         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49280         (configure.ac): Remove gl_STAT_MACROS.
49281         * modules/sys_stat (Depends-on): Remove stat-macros.
49282
49283 2006-10-27  Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/signed.m4: Remove file.
49286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49287         invocation.
49288         * modules/vasnprintf (Files): Remove m4/signed.m4.
49289
49290 2006-10-27  Bruno Haible  <bruno@clisp.org>
49291
49292         Update to GNU gettext 0.16.
49293         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49294         m4/inttypes-h.m4, m4/signed.m4.
49295         * m4/gettext.m4: Update to GNU gettext 0.16.
49296         * m4/intl.m4: New file, from GNU gettext.
49297         * m4/intldir.m4: New file, from GNU gettext.
49298         * config/srclist.txt: Update
49299
49300 2006-10-27  Eric Blake  <ebb9@byu.net>
49301
49302         * MODULES.html.sh: Document tempname.
49303         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49304         dependencies.
49305         (Files): Move lib/tempname.c...
49306         * modules/tempname: ...to this new module.
49307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49308         (gl_PREREQ_TEMPNAME): Move...
49309         * m4/tempname.m4: ...to this new file.
49310         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49311         * modules/sys_stat (Depends-on): Add stat-macros.
49312         * lib/stat_.h (includes): Pick up stat macros.
49313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49314         if stat macros are broken.
49315         * lib/tempname.c (includes): No need to include "stat-macros.h".
49316         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49317         (direxists, __path_search) [!_LIBC]: Don't compile these in
49318         gnulib; the tmpdir module covers that.
49319         * lib/tempname.h: New file.
49320
49321 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49322
49323         * COPYING: Explain how gnulib-tool converts licence headers.
49324         Almost all wording by Eric Blake.
49325
49326 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * lib/mbchar.h (is_basic_table): Make read-only.
49329         * lib/mbchar.c (is_basic_table): Likewise.
49330         Reported by John Darrington.
49331
49332 2006-10-25  Bruno Haible  <bruno@clisp.org>
49333
49334         * lib/progname.h (set_program_name): Undefine before defining.
49335
49336 2006-10-25  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49339         false for non-gcc C++ compilers.
49340         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49341
49342 2006-10-24  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49345         iconv implementations like Irix iconv.
49346
49347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * modules/vararrays: New file.
49350         * m4/vararrays.m4: New file, taken from diffutils.
49351         * MODULES.html.sh: New module vararrays.
49352
49353 2006-10-24  Karl Berry  <karl@gnu.org>
49354
49355         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49356         Don't call GNU Unix.
49357
49358 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49359
49360         * users.txt: Add Libtool.
49361
49362         Sync from Libtool:
49363
49364         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49365
49366         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49367         to gnulib's policy of including config.h unconditionally.
49368
49369 2006-10-24  Bruno Haible  <bruno@clisp.org>
49370
49371         * modules/wcwidth (Files): Add m4/wint_t.m4.
49372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49373         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49374
49375 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49376
49377         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49378         to pacify GCC with some -W flags enabled.  Problem reported by
49379         Bruno Haible.
49380
49381 2006-10-24  Jim Meyering  <jim@meyering.net>
49382
49383         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49384         Reported by Karl Berry.
49385
49386 2006-10-23  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49389
49390 2006-10-24  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/gl_list.h: Use C comment style, not C++ comment style.
49393
49394 2006-10-23  Eric Blake  <ebb9@byu.net>
49395
49396         * lib/getaddrinfo.c (includes): Add missing include.
49397
49398 2006-10-23  Bruno Haible  <bruno@clisp.org>
49399             Paul Eggert  <eggert@cs.ucla.edu>
49400
49401         Ability to rename obstack_free.
49402         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49403         obstack_free.
49404         (obstack_free): Invoke the __obstack_free macro.
49405         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49406
49407 2006-10-23  Bruno Haible  <bruno@clisp.org>
49408             Paul Eggert  <eggert@cs.ucla.edu>
49409
49410         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49411         __argc, __argv from the declaration. (They are defined as macros on
49412         mingw.)
49413
49414 2006-10-22  Bruno Haible  <bruno@clisp.org>
49415
49416         * doc/gnulib-intro.texi: New file.
49417         * doc/gnulib.texi: Include it.
49418
49419 2006-10-21  Bruno Haible  <bruno@clisp.org>
49420
49421         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49422         "Introduction", "Miscellanous Notes", "Particular Modules".
49423
49424 2006-10-21  Bruno Haible  <bruno@clisp.org>
49425
49426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49427         Change mostlyclean-local rule to avoid sh syntax error from bash
49428         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49429
49430 2006-10-23  Jim Meyering  <jim@meyering.net>
49431
49432         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49433         in place of snprintf.
49434
49435         * modules/inttostr (Files): Add lib/uinttostr.c.
49436         * lib/uinttostr.c (inttostr): New file/function.
49437         * lib/inttostr.h (uinttostr): Declare.
49438         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49439         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49440         Add uinttostr.
49441         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49442
49443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         * lib/canonicalize.c (ELOOP): Define if not already defined.
49446         Problem reported by Bruno Haible in
49447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49448
49449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49450
49451         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49452         Problem reported by Perry Smith and Ville Laurikari.
49453
49454         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49455         uses.
49456
49457 2006-10-19  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49460         for mingw.
49461
49462 2006-10-19  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49465         Needed for mingw.
49466
49467 2006-10-19  Bruno Haible  <bruno@clisp.org>
49468
49469         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49470
49471 2006-10-19  Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49474         it.
49475
49476 2006-10-19  Bruno Haible  <bruno@clisp.org>
49477
49478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49479         invocation.
49480
49481 2006-10-19  Bruno Haible  <bruno@clisp.org>
49482
49483         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49484         mountlist by default.
49485
49486 2006-10-16  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/c-strstr.c: Include c-strstr.h.
49489
49490 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49491
49492         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49493         in a slash.
49494
49495 2006-10-18  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/lock.h [C++]: Wrap definitions in extern "C".
49498
49499 2006-10-18  Bruno Haible  <bruno@clisp.org>
49500
49501         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49502         gl_LIBOBJS list.
49503
49504 2006-10-18  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49507
49508 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49509
49510         * lib/xstrtol.h: Include gettext.h.
49511         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49512         Problem reported by Eric Blake.
49513         * modules/xstrtol (Depends-on): Add gettext-h.
49514
49515 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49516
49517         * lib/strftime.c (advance): New macro.
49518         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49519         incomplete type, so you can't add 0 to it.  Problem and patch
49520         reported by Eelco Dolstra for dietlibc.
49521
49522 2006-10-18  Jim Meyering  <jim@meyering.net>
49523
49524         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49525         type for a local, and rename it: s/up/user_proc/.
49526
49527 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49528
49529         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49530         READ_UTMP_USER_PROCESS.
49531         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49532
49533 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49534
49535         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49536         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49537
49538 2006-10-17  Eric Blake  <ebb9@byu.net>
49539
49540         * lib/sigprocmask.c (sigprocmask): Fix typo.
49541
49542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49543
49544         * modules/clean-temp (Makefile.am): Don't add to make output...
49545         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49546         config.h.
49547
49548 2006-10-17  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49551         differently if DEFAULT_TEXT_DOMAIN is set.
49552
49553 2006-10-16  Bruno Haible  <bruno@clisp.org>
49554
49555         * lib/clean-temp.c: Include fwriteerror.h.
49556
49557 2006-10-16  Bruno Haible  <bruno@clisp.org>
49558
49559         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49560
49561 2006-10-16  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49564         * lib/sigprocmask.h: Include <sys/types.h>.
49565         (sigset_t): Use the system's definition if present.
49566
49567 2006-10-17  Eric Blake  <ebb9@byu.net>
49568
49569         * lib/xvasprintf.c (includes): Assume config.h.
49570         * lib/xasprintf.c (includes): Likewise.
49571
49572 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49573
49574         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49575         at least as wide as intmax_t.
49576
49577 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49578
49579         (Imported from Automake.)
49580         * build-aux/gnupload: Update to version 1.1 of directive file.
49581
49582 2006-10-16  Eric Blake  <ebb9@byu.net>
49583
49584         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49585         match Automake 1.10a.
49586
49587 2006-10-14  Bruno Haible  <bruno@clisp.org>
49588
49589         * modules/sigprocmask: New file.
49590         * lib/sigprocmask.h: New file.
49591         * lib/sigprocmask.c: New file.
49592         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49593         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49594         request sigprocmask.o.
49595         (gl_PREREQ_SIGPROCMASK): New macro.
49596         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49597         (Depends-on): Add sigprocmask.
49598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49599         gt_SIGNALBLOCKING. Test for 'raise' only once.
49600         * lib/fatal-signal.c: Include sigprocmask.h.
49601         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49602         unblock_fatal_signals): Define always.
49603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49604         sigprocmask.
49605
49606 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         Sync from Automake.
49609         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49610         which incorrectly sets the mode of an existing destination
49611         directory.  In some cases the unpatched install-sh could do the
49612         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49613         system.  We hope this is rare in practice, but it's clearly worth
49614         fixing.  Problem reported by Alex Unleashed in
49615         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49616         Also, don't bother to check for -m bugs unless we're using -m;
49617         suggested by Stepan Kasal.
49618
49619 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49620
49621         Sync from Automake.
49622         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49623         `-c' flag, so they appear at the same position as in %FASTDEP%
49624         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49625         which ignores unknown options only after the first non-option.
49626         Bug report against M4 by Nelson H. F. Beebe.
49627
49628 2006-10-13  Jim Meyering  <jim@meyering.net>
49629
49630         Fix a bug in yesterday's change.
49631         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49632         p->fts_statp->st_dev would be used uninitialized.
49633         Ensures that we always call fts_stat on the very first entry.
49634         Miklos Szeredi reported that find -xdev stopped working.
49635
49636 2006-10-12  Bruno Haible  <bruno@clisp.org>
49637
49638         * gnulib-tool (func_get_automake_snippet): Append an automatically
49639         computed EXTRA_DIST augmentation.
49640         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49641         * modules/alloca-opt (Makefile.am): Likewise.
49642         * modules/allocsa (Makefile.am): Likewise.
49643         * modules/arcfour (Makefile.am): Likewise.
49644         * modules/arctwo (Makefile.am): Likewise.
49645         * modules/argmatch (Makefile.am): Likewise.
49646         * modules/argz (Makefile.am): Likewise.
49647         * modules/atexit (Makefile.am): Likewise.
49648         * modules/backupfile (Makefile.am): Likewise.
49649         * modules/byteswap (Makefile.am): Likewise.
49650         * modules/c-strtod (Makefile.am): Likewise.
49651         * modules/c-strtold (Makefile.am): Likewise.
49652         * modules/calloc (Makefile.am): Likewise.
49653         * modules/canon-host (Makefile.am): Likewise.
49654         * modules/canonicalize (Makefile.am): Likewise.
49655         * modules/chdir-long (Makefile.am): Likewise.
49656         * modules/chdir-safer (Makefile.am): Likewise.
49657         * modules/check-version (Makefile.am): Likewise.
49658         * modules/chown (Makefile.am): Likewise.
49659         * modules/cloexec (Makefile.am): Likewise.
49660         * modules/close-stream (Makefile.am): Likewise.
49661         * modules/closeout (Makefile.am): Likewise.
49662         * modules/crc (Makefile.am): Likewise.
49663         * modules/csharpexec (Makefile.am): Likewise.
49664         * modules/cycle-check (Makefile.am): Likewise.
49665         * modules/des (Makefile.am): Likewise.
49666         * modules/dev-ino (Makefile.am): Likewise.
49667         * modules/dirfd (Makefile.am): Likewise.
49668         * modules/dirname (Makefile.am): Likewise.
49669         * modules/dup2 (Makefile.am): Likewise.
49670         * modules/eealloc (Makefile.am): Likewise.
49671         * modules/error (Makefile.am): Likewise.
49672         * modules/euidaccess (Makefile.am): Likewise.
49673         * modules/exclude (Makefile.am): Likewise.
49674         * modules/exitfail (Makefile.am): Likewise.
49675         * modules/fcntl-safer (Makefile.am): Likewise.
49676         * modules/fcntl (Makefile.am): Likewise.
49677         * modules/file-type (Makefile.am): Likewise.
49678         * modules/fileblocks (Makefile.am): Likewise.
49679         * modules/filemode (Makefile.am): Likewise.
49680         * modules/filenamecat (Makefile.am): Likewise.
49681         * modules/fnmatch (Makefile.am): Likewise.
49682         * modules/fopen-safer (Makefile.am): Likewise.
49683         * modules/fpending (Makefile.am): Likewise.
49684         * modules/fprintftime (Makefile.am): Likewise.
49685         * modules/free (Makefile.am): Likewise.
49686         * modules/fsusage (Makefile.am): Likewise.
49687         * modules/ftruncate (Makefile.am): Likewise.
49688         * modules/fts (Makefile.am): Likewise.
49689         * modules/gc-arcfour (Makefile.am): Likewise.
49690         * modules/gc-des (Makefile.am): Likewise.
49691         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49692         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49693         * modules/gc-md4 (Makefile.am): Likewise.
49694         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49695         * modules/gc-sha1 (Makefile.am): Likewise.
49696         * modules/gc (Makefile.am): Likewise.
49697         * modules/getaddrinfo (Makefile.am): Likewise.
49698         * modules/getcwd (Makefile.am): Likewise.
49699         * modules/getdelim (Makefile.am): Likewise.
49700         * modules/getdomainname (Makefile.am): Likewise.
49701         * modules/getgroups (Makefile.am): Likewise.
49702         * modules/gethostname (Makefile.am): Likewise.
49703         * modules/gethrxtime (Makefile.am): Likewise.
49704         * modules/getline (Makefile.am): Likewise.
49705         * modules/getloadavg (Makefile.am): Likewise.
49706         * modules/getlogin_r (Makefile.am): Likewise.
49707         * modules/getndelim2 (Makefile.am): Likewise.
49708         * modules/getopt (Makefile.am): Likewise.
49709         * modules/getpagesize (Makefile.am): Likewise.
49710         * modules/getpass-gnu (Makefile.am): Likewise.
49711         * modules/getpass (Makefile.am): Likewise.
49712         * modules/getsubopt (Makefile.am): Likewise.
49713         * modules/gettime (Makefile.am): Likewise.
49714         * modules/gettimeofday (Makefile.am): Likewise.
49715         * modules/getugroups (Makefile.am): Likewise.
49716         * modules/getusershell (Makefile.am): Likewise.
49717         * modules/glob (Makefile.am): Likewise.
49718         * modules/group-member (Makefile.am): Likewise.
49719         * modules/hard-locale (Makefile.am): Likewise.
49720         * modules/hash (Makefile.am): Likewise.
49721         * modules/hmac-md5 (Makefile.am): Likewise.
49722         * modules/hmac-sha1 (Makefile.am): Likewise.
49723         * modules/human (Makefile.am): Likewise.
49724         * modules/idcache (Makefile.am): Likewise.
49725         * modules/imaxabs (Makefile.am): Likewise.
49726         * modules/imaxdiv (Makefile.am): Likewise.
49727         * modules/inet_ntop (Makefile.am): Likewise.
49728         * modules/inet_pton (Makefile.am): Likewise.
49729         * modules/intprops (Makefile.am): Likewise.
49730         * modules/inttostr (Makefile.am): Likewise.
49731         * modules/inttypes (Makefile.am): Likewise.
49732         * modules/isapipe (Makefile.am): Likewise.
49733         * modules/javaversion (Makefile.am): Likewise.
49734         * modules/lchmod (Makefile.am): Likewise.
49735         * modules/lchown (Makefile.am): Likewise.
49736         * modules/localcharset (Makefile.am): Likewise.
49737         * modules/long-options (Makefile.am): Likewise.
49738         * modules/lstat (Makefile.am): Likewise.
49739         * modules/malloc (Makefile.am): Likewise.
49740         * modules/mathl (Makefile.am): Likewise.
49741         * modules/mbchar (Makefile.am): Likewise.
49742         * modules/md2 (Makefile.am): Likewise.
49743         * modules/md4 (Makefile.am): Likewise.
49744         * modules/md5 (Makefile.am): Likewise.
49745         * modules/memcasecmp (Makefile.am): Likewise.
49746         * modules/memchr (Makefile.am): Likewise.
49747         * modules/memcmp (Makefile.am): Likewise.
49748         * modules/memcoll (Makefile.am): Likewise.
49749         * modules/memcpy (Makefile.am): Likewise.
49750         * modules/memmem (Makefile.am): Likewise.
49751         * modules/memmove (Makefile.am): Likewise.
49752         * modules/mempcpy (Makefile.am): Likewise.
49753         * modules/memrchr (Makefile.am): Likewise.
49754         * modules/memset (Makefile.am): Likewise.
49755         * modules/memxor (Makefile.am): Likewise.
49756         * modules/mkancesdirs (Makefile.am): Likewise.
49757         * modules/mkdir-p (Makefile.am): Likewise.
49758         * modules/mkdir (Makefile.am): Likewise.
49759         * modules/mkdtemp (Makefile.am): Likewise.
49760         * modules/mkstemp (Makefile.am): Likewise.
49761         * modules/mktime (Makefile.am): Likewise.
49762         * modules/modechange (Makefile.am): Likewise.
49763         * modules/mountlist (Makefile.am): Likewise.
49764         * modules/nanosleep (Makefile.am): Likewise.
49765         * modules/obstack (Makefile.am): Likewise.
49766         * modules/openat (Makefile.am): Likewise.
49767         * modules/pagealign_alloc (Makefile.am): Likewise.
49768         * modules/pathmax (Makefile.am): Likewise.
49769         * modules/physmem (Makefile.am): Likewise.
49770         * modules/poll (Makefile.am): Likewise.
49771         * modules/posixtm (Makefile.am): Likewise.
49772         * modules/posixver (Makefile.am): Likewise.
49773         * modules/putenv (Makefile.am): Likewise.
49774         * modules/quote (Makefile.am): Likewise.
49775         * modules/quotearg (Makefile.am): Likewise.
49776         * modules/raise (Makefile.am): Likewise.
49777         * modules/read-file (Makefile.am): Likewise.
49778         * modules/readline (Makefile.am): Likewise.
49779         * modules/readlink (Makefile.am): Likewise.
49780         * modules/readtokens (Makefile.am): Likewise.
49781         * modules/readutmp (Makefile.am): Likewise.
49782         * modules/realloc (Makefile.am): Likewise.
49783         * modules/regex (Makefile.am): Likewise.
49784         * modules/rename-dest-slash (Makefile.am): Likewise.
49785         * modules/rename (Makefile.am): Likewise.
49786         * modules/rijndael (Makefile.am): Likewise.
49787         * modules/rmdir (Makefile.am): Likewise.
49788         * modules/rpmatch (Makefile.am): Likewise.
49789         * modules/safe-read (Makefile.am): Likewise.
49790         * modules/safe-write (Makefile.am): Likewise.
49791         * modules/same-inode (Makefile.am): Likewise.
49792         * modules/same (Makefile.am): Likewise.
49793         * modules/save-cwd (Makefile.am): Likewise.
49794         * modules/savedir (Makefile.am): Likewise.
49795         * modules/setenv (Makefile.am): Likewise.
49796         * modules/settime (Makefile.am): Likewise.
49797         * modules/sha1 (Makefile.am): Likewise.
49798         * modules/sig2str (Makefile.am): Likewise.
49799         * modules/snprintf (Makefile.am): Likewise.
49800         * modules/stat-macros (Makefile.am): Likewise.
49801         * modules/stat-time (Makefile.am): Likewise.
49802         * modules/stdbool (Makefile.am): Likewise.
49803         * modules/stdint (Makefile.am): Likewise.
49804         * modules/stdlib-safer (Makefile.am): Likewise.
49805         * modules/stpcpy (Makefile.am): Likewise.
49806         * modules/stpncpy (Makefile.am): Likewise.
49807         * modules/strcase (Makefile.am): Likewise.
49808         * modules/strcasestr (Makefile.am): Likewise.
49809         * modules/strchrnul (Makefile.am): Likewise.
49810         * modules/strcspn (Makefile.am): Likewise.
49811         * modules/strdup (Makefile.am): Likewise.
49812         * modules/strerror (Makefile.am): Likewise.
49813         * modules/strftime (Makefile.am): Likewise.
49814         * modules/strndup (Makefile.am): Likewise.
49815         * modules/strnlen (Makefile.am): Likewise.
49816         * modules/strpbrk (Makefile.am): Likewise.
49817         * modules/strsep (Makefile.am): Likewise.
49818         * modules/strstr (Makefile.am): Likewise.
49819         * modules/strtod (Makefile.am): Likewise.
49820         * modules/strtoimax (Makefile.am): Likewise.
49821         * modules/strtok_r (Makefile.am): Likewise.
49822         * modules/strtol (Makefile.am): Likewise.
49823         * modules/strtoll (Makefile.am): Likewise.
49824         * modules/strtoul (Makefile.am): Likewise.
49825         * modules/strtoull (Makefile.am): Likewise.
49826         * modules/strtoumax (Makefile.am): Likewise.
49827         * modules/strverscmp (Makefile.am): Likewise.
49828         * modules/sys_socket (Makefile.am): Likewise.
49829         * modules/sys_stat (Makefile.am): Likewise.
49830         * modules/sysexits (Makefile.am): Likewise.
49831         * modules/time_r (Makefile.am): Likewise.
49832         * modules/timegm (Makefile.am): Likewise.
49833         * modules/timespec (Makefile.am): Likewise.
49834         * modules/tmpfile-safer (Makefile.am): Likewise.
49835         * modules/trim (Makefile.am): Likewise.
49836         * modules/unistd-safer (Makefile.am): Likewise.
49837         * modules/unlinkdir (Makefile.am): Likewise.
49838         * modules/unlocked-io (Makefile.am): Likewise.
49839         * modules/userspec (Makefile.am): Likewise.
49840         * modules/utime (Makefile.am): Likewise.
49841         * modules/utimecmp (Makefile.am): Likewise.
49842         * modules/utimens (Makefile.am): Likewise.
49843         * modules/vasnprintf (Makefile.am): Likewise.
49844         * modules/vasprintf (Makefile.am): Likewise.
49845         * modules/vsnprintf (Makefile.am): Likewise.
49846         * modules/xalloc (Makefile.am): Likewise.
49847         * modules/xgetcwd (Makefile.am): Likewise.
49848         * modules/xnanosleep (Makefile.am): Likewise.
49849         * modules/xreadlink (Makefile.am): Likewise.
49850         * modules/xstrtod (Makefile.am): Likewise.
49851         * modules/xstrtol (Makefile.am): Likewise.
49852         * modules/xstrtold (Makefile.am): Likewise.
49853         * modules/yesno (Makefile.am): Likewise.
49854         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49855
49856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         * modules/error (Makefile.am): Distribute files through
49859         EXTRA_DIST, not lib_SOURCES.
49860
49861 2006-10-12  Eric Blake  <ebb9@byu.net>
49862
49863         * modules/error (Makefile.am): Distribute files in /lib.
49864         * modules/obstack (Makefile.am): Likewise.
49865
49866 2006-10-12  Bruno Haible  <bruno@clisp.org>
49867
49868         * modules/acl (Makefile.am): Distribute all files in lib/ through
49869         EXTRA_DIST.
49870         * modules/arcfour (Makefile.am): Likewise.
49871         * modules/arctwo (Makefile.am): Likewise.
49872         * modules/argmatch (Makefile.am): Likewise.
49873         * modules/argz (Makefile.am): Likewise.
49874         * modules/atexit (Makefile.am): Likewise.
49875         * modules/backupfile (Makefile.am): Likewise.
49876         * modules/c-strtod (Makefile.am): Likewise.
49877         * modules/c-strtold (Makefile.am): Likewise.
49878         * modules/calloc (Makefile.am): Likewise.
49879         * modules/canon-host (Makefile.am): Likewise.
49880         * modules/canonicalize (Makefile.am): Likewise.
49881         * modules/chdir-long (Makefile.am): Likewise.
49882         * modules/chdir-safer (Makefile.am): Likewise.
49883         * modules/check-version (Makefile.am): Likewise.
49884         * modules/chown (Makefile.am): Likewise.
49885         * modules/cloexec (Makefile.am): Likewise.
49886         * modules/close-stream (Makefile.am): Likewise.
49887         * modules/closeout (Makefile.am): Likewise.
49888         * modules/crc (Makefile.am): Likewise.
49889         * modules/cycle-check (Makefile.am): Likewise.
49890         * modules/des (Makefile.am): Likewise.
49891         * modules/dirfd (Makefile.am): Likewise.
49892         * modules/dirname (Makefile.am): Likewise.
49893         * modules/dup2 (Makefile.am): Likewise.
49894         * modules/euidaccess (Makefile.am): Likewise.
49895         * modules/exclude (Makefile.am): Likewise.
49896         * modules/exitfail (Makefile.am): Likewise.
49897         * modules/fcntl-safer (Makefile.am): Likewise.
49898         * modules/file-type (Makefile.am): Likewise.
49899         * modules/fileblocks (Makefile.am): Likewise.
49900         * modules/filemode (Makefile.am): Likewise.
49901         * modules/filenamecat (Makefile.am): Likewise.
49902         * modules/fnmatch (Makefile.am): Likewise.
49903         * modules/fopen-safer (Makefile.am): Likewise.
49904         * modules/fpending (Makefile.am): Likewise.
49905         * modules/fprintftime (Makefile.am): Likewise.
49906         * modules/free (Makefile.am): Likewise.
49907         * modules/fsusage (Makefile.am): Likewise.
49908         * modules/ftruncate (Makefile.am): Likewise.
49909         * modules/fts (Makefile.am): Likewise.
49910         * modules/gc (Makefile.am): Likewise.
49911         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49912         * modules/getaddrinfo (Makefile.am): Likewise.
49913         * modules/getcwd (Makefile.am): Likewise.
49914         * modules/getdelim (Makefile.am): Likewise.
49915         * modules/getdomainname (Makefile.am): Likewise.
49916         * modules/getgroups (Makefile.am): Likewise.
49917         * modules/gethostname (Makefile.am): Likewise.
49918         * modules/gethrxtime (Makefile.am): Likewise.
49919         * modules/getline (Makefile.am): Likewise.
49920         * modules/getloadavg (Makefile.am): Likewise.
49921         * modules/getlogin_r (Makefile.am): Likewise.
49922         * modules/getopt (Makefile.am): Likewise.
49923         * modules/getpass (Makefile.am): Likewise.
49924         * modules/getpass-gnu (Makefile.am): Likewise.
49925         * modules/getsubopt (Makefile.am): Likewise.
49926         * modules/gettime (Makefile.am): Likewise.
49927         * modules/gettimeofday (Makefile.am): Likewise.
49928         * modules/getugroups (Makefile.am): Likewise.
49929         * modules/getusershell (Makefile.am): Likewise.
49930         * modules/glob (Makefile.am): Likewise.
49931         * modules/group-member (Makefile.am): Likewise.
49932         * modules/hard-locale (Makefile.am): Likewise.
49933         * modules/hash (Makefile.am): Likewise.
49934         * modules/hmac-md5 (Makefile.am): Likewise.
49935         * modules/hmac-sha1 (Makefile.am): Likewise.
49936         * modules/human (Makefile.am): Likewise.
49937         * modules/idcache (Makefile.am): Likewise.
49938         * modules/imaxabs (Makefile.am): Likewise.
49939         * modules/imaxdiv (Makefile.am): Likewise.
49940         * modules/inet_ntop (Makefile.am): Likewise.
49941         * modules/inet_pton (Makefile.am): Likewise.
49942         * modules/inttostr (Makefile.am): Likewise.
49943         * modules/isapipe (Makefile.am): Likewise.
49944         * modules/lchown (Makefile.am): Likewise.
49945         * modules/long-options (Makefile.am): Likewise.
49946         * modules/lstat (Makefile.am): Likewise.
49947         * modules/malloc (Makefile.am): Likewise.
49948         * modules/mathl (Makefile.am): Likewise.
49949         * modules/mbchar (Makefile.am): Likewise.
49950         * modules/md2 (Makefile.am): Likewise.
49951         * modules/md4 (Makefile.am): Likewise.
49952         * modules/md5 (Makefile.am): Likewise.
49953         * modules/memcasecmp (Makefile.am): Likewise.
49954         * modules/memchr (Makefile.am): Likewise.
49955         * modules/memcmp (Makefile.am): Likewise.
49956         * modules/memcoll (Makefile.am): Likewise.
49957         * modules/memcpy (Makefile.am): Likewise.
49958         * modules/memmem (Makefile.am): Likewise.
49959         * modules/memmove (Makefile.am): Likewise.
49960         * modules/mempcpy (Makefile.am): Likewise.
49961         * modules/memrchr (Makefile.am): Likewise.
49962         * modules/memset (Makefile.am): Likewise.
49963         * modules/memxor (Makefile.am): Likewise.
49964         * modules/mkancesdirs (Makefile.am): Likewise.
49965         * modules/mkdir (Makefile.am): Likewise.
49966         * modules/mkdir-p (Makefile.am): Likewise.
49967         * modules/mkdtemp (Makefile.am): Likewise.
49968         * modules/mkstemp (Makefile.am): Likewise.
49969         * modules/mktime (Makefile.am): Likewise.
49970         * modules/modechange (Makefile.am): Likewise.
49971         * modules/mountlist (Makefile.am): Likewise.
49972         * modules/nanosleep (Makefile.am): Likewise.
49973         * modules/openat (Makefile.am): Likewise.
49974         * modules/pagealign_alloc (Makefile.am): Likewise.
49975         * modules/physmem (Makefile.am): Likewise.
49976         * modules/poll (Makefile.am): Likewise.
49977         * modules/posixtm (Makefile.am): Likewise.
49978         * modules/posixver (Makefile.am): Likewise.
49979         * modules/putenv (Makefile.am): Likewise.
49980         * modules/quote (Makefile.am): Likewise.
49981         * modules/quotearg (Makefile.am): Likewise.
49982         * modules/raise (Makefile.am): Likewise.
49983         * modules/read-file (Makefile.am): Likewise.
49984         * modules/readline (Makefile.am): Likewise.
49985         * modules/readlink (Makefile.am): Likewise.
49986         * modules/readtokens (Makefile.am): Likewise.
49987         * modules/readutmp (Makefile.am): Likewise.
49988         * modules/realloc (Makefile.am): Likewise.
49989         * modules/regex (Makefile.am): Likewise.
49990         * modules/rename (Makefile.am): Likewise.
49991         * modules/rename-dest-slash (Makefile.am): Likewise.
49992         * modules/rijndael (Makefile.am): Likewise.
49993         * modules/rmdir (Makefile.am): Likewise.
49994         * modules/rpmatch (Makefile.am): Likewise.
49995         * modules/safe-read (Makefile.am): Likewise.
49996         * modules/safe-write (Makefile.am): Likewise.
49997         * modules/same (Makefile.am): Likewise.
49998         * modules/save-cwd (Makefile.am): Likewise.
49999         * modules/savedir (Makefile.am): Likewise.
50000         * modules/setenv (Makefile.am): Likewise.
50001         * modules/settime (Makefile.am): Likewise.
50002         * modules/sha1 (Makefile.am): Likewise.
50003         * modules/sig2str (Makefile.am): Likewise.
50004         * modules/snprintf (Makefile.am): Likewise.
50005         * modules/stdlib-safer (Makefile.am): Likewise.
50006         * modules/stpcpy (Makefile.am): Likewise.
50007         * modules/stpncpy (Makefile.am): Likewise.
50008         * modules/strcase (Makefile.am): Likewise.
50009         * modules/strcasestr (Makefile.am): Likewise.
50010         * modules/strchrnul (Makefile.am): Likewise.
50011         * modules/strcspn (Makefile.am): Likewise.
50012         * modules/strdup (Makefile.am): Likewise.
50013         * modules/strerror (Makefile.am): Likewise.
50014         * modules/strftime (Makefile.am): Likewise.
50015         * modules/strndup (Makefile.am): Likewise.
50016         * modules/strnlen (Makefile.am): Likewise.
50017         * modules/strpbrk (Makefile.am): Likewise.
50018         * modules/strsep (Makefile.am): Likewise.
50019         * modules/strstr (Makefile.am): Likewise.
50020         * modules/strtod (Makefile.am): Likewise.
50021         * modules/strtoimax (Makefile.am): Likewise.
50022         * modules/strtok_r (Makefile.am): Likewise.
50023         * modules/strtol (Makefile.am): Likewise.
50024         * modules/strtoll (Makefile.am): Likewise.
50025         * modules/strtoul (Makefile.am): Likewise.
50026         * modules/strtoull (Makefile.am): Likewise.
50027         * modules/strtoumax (Makefile.am): Likewise.
50028         * modules/strverscmp (Makefile.am): Likewise.
50029         * modules/time_r (Makefile.am): Likewise.
50030         * modules/timegm (Makefile.am): Likewise.
50031         * modules/tmpfile-safer (Makefile.am): Likewise.
50032         * modules/unistd-safer (Makefile.am): Likewise.
50033         * modules/unlinkdir (Makefile.am): Likewise.
50034         * modules/userspec (Makefile.am): Likewise.
50035         * modules/utime (Makefile.am): Likewise.
50036         * modules/utimecmp (Makefile.am): Likewise.
50037         * modules/utimens (Makefile.am): Likewise.
50038         * modules/vasnprintf (Makefile.am): Likewise.
50039         * modules/vasprintf (Makefile.am): Likewise.
50040         * modules/vsnprintf (Makefile.am): Likewise.
50041         * modules/xalloc (Makefile.am): Likewise.
50042         * modules/xgetcwd (Makefile.am): Likewise.
50043         * modules/xnanosleep (Makefile.am): Likewise.
50044         * modules/xreadlink (Makefile.am): Likewise.
50045         * modules/xstrtod (Makefile.am): Likewise.
50046         * modules/xstrtol (Makefile.am): Likewise.
50047         * modules/xstrtold (Makefile.am): Likewise.
50048         * modules/yesno (Makefile.am): Likewise.
50049
50050 2006-10-12  Jim Meyering  <jim@meyering.net>
50051
50052         * m4/getloadavg.m4: Revert the change below.
50053
50054         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50055         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50056         fail with a symlink, which is what coreutils' ./bootstrap now
50057         creates by default.
50058
50059 2006-10-12  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50062         mingw.
50063         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50064         MSVC and mingw explicitly.
50065
50066 2006-10-11  Simon Josefsson  <jas@extundo.com>
50067             Bruno Haible  <bruno@clisp.org>
50068
50069         Add support for multiple gnulib-tool invocations in the scope of a
50070         single configure.ac file.
50071         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50072         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50073         with the same contents as the _LIBADD variable.
50074         (func_emit_initmacro_start, func_emit_initmacro_end,
50075         func_emit_initmacro_done): New functions.
50076         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50077         gl_LIBOBJS and gl_LTLIBOBJS.
50078
50079 2006-10-11  Bruno Haible  <bruno@clisp.org>
50080
50081         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50082         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50083         autoreconf. Instead, invoke autopoint explicitly but move back the
50084         *.m4 files from gnulib.
50085
50086 2006-10-11  Bruno Haible  <bruno@clisp.org>
50087
50088         * gnulib-tool (func_usage): Make module names after --create-testdir
50089         optional.
50090         (func_create_testdir): If no module was specified, use nearly all
50091         modules.
50092
50093 2006-10-12  Jim Meyering  <jim@meyering.net>
50094
50095         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50096         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50097         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50098         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50099         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50100         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50101         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50102         (fts_set_stat_required): New function.
50103         (fts_open): Defer the calls to fts_stat, if possible or requested.
50104         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50105         into fts_stat itself.
50106         (fts_read): Perform any required (deferred) fts_stat call.
50107         (fts_build): Likewise, for the directory we're about to open and read.
50108         In the readdir loop, carefully decide whether each entry will require
50109         an eventual call to fts_stat, using dirent.d_type info if available.
50110         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50111         a command line argument into this function.  Update all callers.
50112         Map a return value of FTS_DOT to FTS_D for a command line argument.
50113         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50114         Thanks to Miklos Szeredi for his tenacity and for the initial
50115         bug report about "find" failing on a FUSE-based file system.
50116
50117         * lib/fts.c (fts_open): Use consistent indentation.
50118
50119 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50120
50121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50122         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50123         reported by Jim Meyering.  All uses of cache variables renamed
50124         to match Autoconf's.
50125         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50126         the other one.
50127
50128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50129         Fix misspelling in diagnostic.
50130
50131 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50134         defined.  Problem reported by Matthew Woehlke.
50135
50136         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50137         Add support for Tandem NonStop R series.
50138         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50139         Use new macro.
50140
50141         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50142         (has_trailing_slash): Omit size arg; all callers changed.
50143         Omit 'inline', since it doesn't help performance and we'd
50144         need to configure it.
50145         Don't count //, ///, etc. as having a trailing slash.
50146         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50147         (rpl_rename_dest_slash): On failure, use rename's errno rather
50148         than (in some cases) an incorrect or junk errno.
50149         Simplify code by removing need to compute length; this does
50150         cause it to make two passes instead of one over the file name,
50151         but it's worth it.
50152
50153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50154         change, since Autoconf's version may no longer be appropriate now
50155         that we are using CVS Autoconf's version.  Add support for Tandem.
50156
50157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50158             Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50161         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50162         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50163         gl_AC_TYPE_LONG_LONG.
50164
50165         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50166         instead of HAVE_LONG_LONG.
50167         * lib/printf-args.c (printf_fetchargs): Likewise.
50168         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50169         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50170         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50171         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50172         gl_AC_TYPE_LONG_LONG.
50173
50174 2006-10-11  Bruno Haible  <bruno@clisp.org>
50175
50176         * m4/longlong.m4: Add comments.
50177         * m4/ulonglong.m4: Likewise.
50178
50179 2006-10-10  Bruno Haible  <bruno@clisp.org>
50180
50181         Make it possible to #define stpcpy, strdup to aliases.
50182         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50183         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50184
50185 2006-10-10  Bruno Haible  <bruno@clisp.org>
50186
50187         Make it possible to #define gcd to an alias.
50188         * lib/gcd.c: Include config.h.
50189
50190 2006-10-10  Bruno Haible  <bruno@clisp.org>
50191
50192         Make it possible to #define c_isascii to an alias.
50193         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50194         defined. Undefine the macros before defining them, to avoid gcc
50195         warnings.
50196         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50197         define NO_C_CTYPE_MACROS early.
50198
50199 2006-10-10  Bruno Haible  <bruno@clisp.org>
50200
50201         Make it possible to #define set_program_name to an alias.
50202         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50203         ENABLE_RELOCATABLE early.
50204
50205 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50206
50207         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50208         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50209         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50210         More generally, don't assume that 64-bit signed int is available
50211         if unsigned int is, and vice versa.
50212         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50213         unsigned symbols, not on their signed counterparts.
50214         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50215         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50216         (UINT64_C, UINTMAX_C):
50217         Likewise.
50218         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50219         unsigned counterparts.
50220         (Have_long_long, Unsigned): New macros.
50221         (Int): Renamed from INT.
50222         (strtoimax): Use the new macros.
50223         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50224         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50225         * modules/inttypes (inttypes.h): Substitute
50226         HAVE_UNSIGNED_LONG_LONG_INT.
50227         * modules/stdint (stdint.h): Likewise.
50228         (Files): Add m4/ulonglong.m4.
50229
50230 2006-10-10  Bruno Haible  <bruno@clisp.org>
50231
50232         Fix a gcc -Wshadow warning.
50233         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50234         to 'bucket'.
50235         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50236         gl_linked_indexof_from_to): Likewise.
50237         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50238         Likewise.
50239         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50240         Likewise.
50241         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50242         Reported by Eric Blake.
50243
50244 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50247         for NetBSD.  Problem reported by Bruno Haible.
50248
50249 2006-10-09  Jim Meyering  <jim@meyering.net>
50250
50251         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50252         Patch from Bruno Haible.
50253
50254 2006-10-09  Jim Meyering  <jim@meyering.net>
50255
50256         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50257         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50258         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50259
50260 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50261
50262         Don't include <config.h> twice; this doesn't work in some cases,
50263         e.g., when config.h has "#define intmax_t long long int" and
50264         we include <config.h>, <inttypes.h>, <config.h> in that order.
50265         Problem reported by Matthew Woehlke in:
50266         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50267         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50268         * lib/fts-cycle.c: Don't include config.h.
50269         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50270         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50271         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50272         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50273         inttypes.h.
50274         * lib/xstrtoumax.c: Likewise.
50275         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50276         __strtol and the like, so that this module is more like its siblings.
50277         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50278         Remove; no longer needed now that we assume gnulib inttypes.h.
50279
50280 2006-10-08  Bruno Haible  <bruno@clisp.org>
50281
50282         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50283         option.
50284
50285 2006-10-07  Jim Meyering  <jim@meyering.net>
50286
50287         * modules/inttypes (inttypes.h): Revert what seems to have been
50288         an inadvertent part of today's change: use "|", not "/" in the
50289         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50290
50291 2006-10-07  Bruno Haible  <bruno@clisp.org>
50292
50293         * modules/sublist: New file.
50294
50295 2006-10-07  Bruno Haible  <bruno@clisp.org>
50296
50297         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50298         * modules/argz (argz.h): Likewise.
50299         * modules/arpa_inet (arpa/inet.h): Likewise.
50300         * modules/byteswap (byteswap.h): Likewise.
50301         * modules/configmake (configmake.h): Likewise.
50302         * modules/fcntl (fcntl.h): Likewise.
50303         * modules/fnmatch (fnmatch.h): Likewise.
50304         * modules/getopt (getopt.h): Likewise.
50305         * modules/glob (glob.h): Likewise.
50306         * modules/inttypes (inttypes.h): Likewise.
50307         * modules/netinet_in (netinet/in.h): Likewise.
50308         * modules/poll (poll.h): Likewise.
50309         * modules/stdbool (stdbool.h): Likewise.
50310         * modules/stdint (stdint.h): Likewise.
50311         * modules/sys_select (sys/select.h): Likewise.
50312         * modules/sys_socket (sys/socket.h): Likewise.
50313         * modules/sys_stat (sys/stat.h): Likewise.
50314         * modules/sysexits (sysexits.h): Likewise.
50315         * modules/unistd (unistd.h): Likewise.
50316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50317         Add a "DO NOT EDIT" comment to the generated file.
50318         (func_import): Likewise for gnulib-comp.m4.
50319
50320 2006-10-07  Bruno Haible  <bruno@clisp.org>
50321
50322         * lib/gl_sublist.h: New file.
50323         * lib/gl_sublist.c: New file.
50324
50325 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50326
50327         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50328         name (relative to the original working directory) and the file
50329         name component (relative to the temporary working directory).  All
50330         callers changed.
50331         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50332         * lib/mkdir-p.c (make_dir_parents): Likewise.
50333         * lib/mkdir-p.h (make_dir_parents): Likewise.
50334
50335 2006-10-06  Eric Blake  <ebb9@byu.net>
50336
50337         Define several macros for use by the clean-temp module.
50338         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50340         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50341
50342         * lib/clean-temp.h (close_stream_temp): New declaration.
50343         * lib/clean-temp.c (includes): Pull in headers according to what
50344         other modules are in use.
50345         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50346
50347 2006-10-06  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50350         instead of fopen, fwriteerror.
50351
50352 2006-10-06  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50355         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50356         int.
50357         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50358         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50359         Return an error indicator.
50360         Suggested by Eric Blake.
50361
50362 2006-10-06  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50365         Reported by Eric Blake.
50366
50367 2006-10-06  Bruno Haible  <bruno@clisp.org>
50368
50369         * modules/closeout (Description): Mention stderr too.
50370
50371 2006-10-06  Bruno Haible  <bruno@clisp.org>
50372         and Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         * lib/closeout.c (close_stdout): Also close stderr.
50375         * lib/closeout.h: Update comment.
50376
50377 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50378
50379         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50380         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50381         * lib/dirchownmod.c: Include lchown.h.
50382         * lib/lchown.c: Don't include files that lchown.h now includes.
50383         Don't declare chown, since lchown.h now does that.
50384         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50385         (lchown): Define to rpl_chown if lchown is declared but
50386         does not exist.  Declare using a prototype if lchown is not
50387         declared.  Add a copyright notice.
50388         * lib/mkstemp.h: Include <unistd.h>.
50389         * lib/openat.c: Include lchown.h.
50390
50391         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50392         we now test for that separately.
50393         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50394         rather than O_NOFOLLOW, when testing whether it's possible to
50395         avoid a race condition reliably.
50396         * lib/savewd.c (savewd_chdir): Likewise.
50397
50398         Remove macros that are no longer needed now that stdint.h is
50399         reliable.
50400         * lib/fsusage.c (UINTMAX_MAX): Remove.
50401         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50402         * lib/utimecmp.c (SIZE_MAX): Remove.
50403
50404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50405
50406         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50407         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50408         O_NOATIME works.
50409
50410 2006-10-05  Bruno Haible  <bruno@clisp.org>
50411
50412         * lib/gl_list.h (gl_sortedlist_search_from_to,
50413         gl_sortedlist_indexof_from_to): New declarations.
50414         (gl_list_implementation): New fields sortedlist_search_from_to,
50415         sortedlist_indexof_from_to.
50416         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50417         inline functions.
50418         * lib/gl_list.c (gl_sortedlist_search_from_to,
50419         gl_sortedlist_indexof_from_to): New functions.
50420         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50421         function.
50422         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50423         (gl_array_sortedlist_search_from_to): New function.
50424         (gl_array_list_implementation): Update.
50425         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50426         function.
50427         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50428         (gl_carray_sortedlist_search_from_to): New function.
50429         (gl_carray_list_implementation): Update.
50430         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50431         gl_linked_sortedlist_indexof_from_to): New functions.
50432         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50433         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50434         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50435         gl_tree_sortedlist_indexof_from_to): New functions.
50436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50438         Update.
50439         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50440         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50441         Update.
50442
50443 2006-10-05  Bruno Haible  <bruno@clisp.org>
50444
50445         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50446         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50447         (struct gl_list_implementation): Add fields search_from_to,
50448         indexof_from_to. Remove fields search, indexof.
50449         (gl_list_search): Use the search_from_to method.
50450         (gl_list_search_from, gl_list_search_from_to): New functions.
50451         (gl_list_indexof): Use the indexof_from_to method.
50452         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50453         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50454         (gl_list_search_from, gl_list_search_from_to): New functions.
50455         (gl_list_indexof): Use the indexof_from_to method.
50456         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50457         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50458         gl_array_indexof. Add start_index, end_index arguments.
50459         (gl_array_search_from_to): Renamed from gl_array_search. Add
50460         start_index, end_index arguments.
50461         (gl_array_remove, gl_array_list_implementation): Update.
50462         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50463         gl_carray_indexof. Add start_index, end_index arguments.
50464         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50465         start_index, end_index arguments.
50466         (gl_carray_remove, gl_carray_list_implementation): Update.
50467         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50468         gl_linked_search. Add start_index, end_index arguments.
50469         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50470         start_index, end_index arguments.
50471         (gl_linked_remove): Update.
50472         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50473         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50474         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50475         field to 'size_t'.
50476         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50477         gl_tree_search. Add start_index, end_index arguments.
50478         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50479         start_index, end_index arguments.
50480         (gl_tree_remove): Update.
50481         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50482         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50483         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50484         function.
50485         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50486         gl_tree_search. Add start_index, end_index arguments.
50487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50488         start_index, end_index arguments.
50489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50490         Update.
50491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50492
50493 2006-10-05  Bruno Haible  <bruno@clisp.org>
50494
50495         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50496
50497         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50498         fwriteerror_temp): New declarations.
50499         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50500         (descriptors): New variable.
50501         (cleanup): First, close the descriptors.
50502         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50503         fclose_temp, fwriteerror_temp): New functions.
50504
50505 2006-10-04  Jim Meyering  <jim@meyering.net>
50506
50507         * lib/fts.c (fts_open): Tiny comment change.
50508
50509 2006-10-04  Bruno Haible  <bruno@clisp.org>
50510
50511         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50513         gl_LOCK_BODY.
50514         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50515         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50516         gl_LOCK_EARLY_BODY.
50517         (gl_LOCK): Require gl_LOCK_BODY.
50518
50519 2006-10-04  Bruno Haible  <bruno@clisp.org>
50520
50521         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50522         (gl_oset_search_atleast): New declaration.
50523         (struct gl_oset_implementation): Add field 'search_atleast'.
50524         (gl_oset_search_atleast): New inline function.
50525         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50526         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50527         (gl_array_oset_implementation): Update.
50528         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50529         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50530         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50531
50532 2006-10-04  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50535
50536 2006-10-03  Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50539         from gl_avltreehash_list_implementation.
50540
50541 2006-10-03  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/gl_oset.c (gl_oset_add): Fix return type.
50544
50545 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50546
50547         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50548
50549 2006-10-02  Eric Blake  <ebb9@byu.net>
50550
50551         * modules/strnlen (Depends-on): Add extensions.
50552
50553 2006-10-02  Eric Blake  <ebb9@byu.net>
50554
50555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50556         definition in 2.60+.
50557
50558 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50559
50560         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50561         checks.
50562
50563 2006-10-02  Bruno Haible  <bruno@clisp.org>
50564
50565         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50566         to the AUTOMAKE_OPTIONS.
50567         Reported by Jim Meyering.
50568
50569 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50570
50571         Work around bug in Solaris 10 /proc file system:
50572         /proc/self/fd/NNN/.. isn't the parent directory of
50573         the directory whose file descriptor is NNN.  This needs to
50574         be worked around at run time, not compile time, since a
50575         program might be built on Solaris 8, where things work, and
50576         run on Solaris 10.
50577         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50578         to use the following interface instead:
50579         (OPENAT_BUFFER_SIZE): New macro.
50580         (openat_proc_name): New function.
50581         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50582         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50583         Likewise.
50584         * lib/openat-proc.c: New file.
50585         * modules/openat (Files): Add lib/openat-proc.c.
50586         (Depends-on): Add same-inode, stdbool.
50587         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50588
50589 2006-09-29  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50592         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50593         argument. Set stdout_closed before testing for ferror, not after.
50594         (fwriteerror, fwriteerror_no_ebadf): New functions.
50595
50596 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50597
50598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50599
50600 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50601
50602         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50603         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50604
50605 2006-09-28  Jim Meyering  <jim@meyering.net>
50606
50607         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50608         Include <unistd.h>.
50609
50610 2006-09-28  Bruno Haible  <bruno@clisp.org>
50611
50612         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50613         * modules/linkedhash-list (Depends-on): Likewise.
50614         * modules/rbtreehash-list (Depends-on): Likewise.
50615
50616 2006-09-28  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/strndup.h: Simplify the redefinition of strndup.
50619         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50621
50622 2006-09-28  Bruno Haible  <bruno@clisp.org>
50623
50624         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50625         * lib/gl_linkedhash_list.c: Likewise.
50626         * lib/gl_rbtreehash_list.c: Likewise.
50627
50628 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50629
50630         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50631         getaddrinfo.
50632
50633         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50634         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50635         it causes <stdio_ext.h> to cause a compile-time error.
50636         Problem reported by Nelson H. F. Beebe.
50637         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50638         of HAVE_DECL___PENDING.
50639
50640         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50641         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50642         declaration.
50643
50644 2006-09-27  Jim Meyering  <jim@meyering.net>
50645
50646         This file could end up with a definition for a function
50647         named __strndup, rather than rpl_strndup on a system with
50648         incomplete weak_alias support.
50649         * lib/strndup.c (strndup): Rename from __strndup.
50650         Remove #defines that used to map __strndup to strndup.
50651         Don't use K&R prototypes.
50652         Remove LIBC-related code, since this file is not sync'd with glibc.
50653         * lib/strndup.h: Revamp, accordingly.
50654         * m4/strndup.m4: Modernize.
50655
50656 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         * modules/savewd (Depends-on): Add 'raise'.
50659         * lib/savewd.c: Include <signal.h>, for 'raise'.
50660
50661 2006-09-26  Jim Meyering  <jim@meyering.net>
50662
50663         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50664         when we detect Darwin 8.7.0's acl_get_file bug.
50665         Rearrange to perform the new (below) run-test while $LIBS
50666         contains any acl-related library.  Set USE_ACL at the end.
50667         (gl_ACL_GET_FILE): New function.
50668
50669 2006-09-26  Eric Blake  <ebb9@byu.net>
50670
50671         * lib/verror.c: Include <config.h> unconditionally.
50672
50673 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50674
50675         * modules/clock-time (Maintainer): Add self.
50676         * modules/getlogin_r (Depends-on): Add extensions.
50677
50678 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50679
50680         * modules/clock-time: New module.
50681         * modules/nanosleep (Depends-on): Add clock-time.
50682         * modules/gethrxtime (Depends-on): Likewise.
50683         * modules/gettime (Depends-on): Likewise.
50684         * modules/settime (Depends-on): Likewise.
50685
50686         * modules/fts-lgpl: Depend on openat.
50687         * modules/mkancesdirs: Depend on savewd.
50688         * modules/mkdir-p: Likewise.
50689
50690 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50691
50692         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50693
50694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50695         `gl_have_arbitrary_file_name_length_limit' to
50696         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50697         actually works between configure runs.
50698
50699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50700             Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50703
50704 2006-09-25  Jim Meyering  <jim@meyering.net>
50705
50706         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50707         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50708
50709 2006-09-25  Eric Blake  <ebb9@byu.net>
50710
50711         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50712         exec's in 2006-09-18 patch when shuffling fds.
50713
50714 2006-09-25  Bruno Haible  <bruno@clisp.org>
50715
50716         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50717         Reported by Jim Meyering.
50718
50719 2006-09-24  Jim Meyering  <jim@meyering.net>
50720
50721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50722         compare a pointer against a literal "0".  That caused failures with
50723         at least HP-UX's hpcc.
50724
50725 2006-09-22  Simon Josefsson  <jas@extundo.com>
50726
50727         * modules/gc-sha1:
50728         * modules/gc-md4:
50729         * modules/gc-hmac-sha1:
50730         * modules/gc-hmac-md5:
50731         * modules/gc-des:
50732         * modules/gc-arcfour: Distribute more files.
50733
50734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50735
50736         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50737         (gl_linked_iterator_from_to): Initialize struct completely.
50738         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50739         (gl_tree_iterator_from_to): Likewise
50740         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50741         * lib/gl_array_list.c [lint] (gl_array_iterator)
50742         (gl_array_iterator_from_to): Likewise.
50743         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50744         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50745         (gl_carray_iterator_from_to): Likewise.
50746
50747         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50748         * lib/md4.c (md4_process_block): Remove unused variable.
50749         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50750         parentheses for clarity.
50751
50752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50753
50754         * modules/bison-i18n (Depends-on): Add gettext.
50755
50756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50757
50758         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50760         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50761         also add missing comma that caused broken test.
50762         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50763         stdlib.h, for `abort'.
50764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50765         variables.
50766         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50767         include unistd.h if present, for `rmdir'.
50768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50769         variables.
50770         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50771         in the process include standard headers for prototypes.
50772         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50773         gets declared on GNU/Linux.
50774         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50775         unistd.h, for `rmdir'.
50776         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50777
50778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50779         always true.
50780         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50781
50782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50783
50784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50785
50786         * gnulib-tool (func_version): Create output all at once.  This
50787         may help avoid triggering unnecessary SIGPIPEs, and at any
50788         rate it doesn't hurt.
50789
50790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50791             Bruno Haible  <bruno@clisp.org>
50792
50793         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50795         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50796
50797         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50798         (gl_FUNC_VASPRINTF): Invoke it.
50799
50800 2006-09-22  Bruno Haible  <bruno@clisp.org>
50801
50802         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50803         getloadavg.c as first argument.
50804
50805 2006-09-22  Bruno Haible  <bruno@clisp.org>
50806
50807         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50808         at the beginning of the gl_INIT macro.
50809         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50810         gl_GETLOADAVG.
50811
50812 2006-09-22  Bruno Haible  <bruno@clisp.org>
50813
50814         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50815         module.
50816         Suggested by Ralf Wildenhues.
50817
50818 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         Import this patch from libc:
50821
50822         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50823
50824         * lib/regex_internal.c (re_string_reconstruct): Handle
50825         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50826         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50827         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50828         re_string_context_at.
50829
50830         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50831         now requires it.
50832         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50833         gl_REGEX now does it for us.
50834         (gl_REGEX): Add test taken from
50835         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50836
50837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50838         Check that large offsets work.  Modernize Autoconf usages.
50839         Prefer "yes" to mean a good thing rather than a bad.
50840         Don't put "#define mkstemp" in config.h, as this might interfere
50841         with standard system headers that "#define mkstemp mkstemp64".
50842
50843         * modules/mkstemp (Depends-on): Add extensions, so that
50844         mkstemp is visible on some platforms.
50845         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50846         (Include): Change to "mkstemp.h" from <stdlib.h>.
50847         (Files): Add mkstemp.h.
50848
50849         * lib/mkstemp.h: New file, since some standard headers
50850         #define mkstemp.
50851         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50852         Include "mkstemp.h".
50853         Make the _LIBC code resemble glibc original more,
50854         e.g., use K&R style.
50855         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50856         (mkstemp): Remove, since mkstemp.h does this for us.
50857         * lib/stdlib--.h: Include mkstemp.h.
50858
50859         Import this patch from libc:
50860
50861         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50862
50863         * lib/tempname.c (__gen_tempname): Change attempts_min
50864         into a macro.  Use preprocessor to decide how to initialize
50865         attempts [Coverity CID 67].
50866
50867 2006-09-20  Bruno Haible  <bruno@clisp.org>
50868
50869         * lib/mkdtemp.c: Import from libc.
50870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50871                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50872                 attempts_min into a macro.  Use preprocessor to decide how to
50873                 initialize attempts [Coverity CID 67].
50874         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50875                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50876                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50877
50878 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50879
50880         * gnulib-tool (func_exit): New function, to allow to pass the
50881         exit status portably through the trap.  Use everywhere.
50882         (--help, --version): Signal a write error.
50883         (trap): catch SIGPIPE, for write errors.
50884         Exit at the end of the trap, with the correct exit status.
50885
50886 2006-09-19  Karl Berry  <karl@gnu.org>
50887
50888         * doc/gnulib.texi: note about the license texinfo files.
50889
50890 2006-09-19  Eric Blake  <ebb9@byu.net>
50891
50892         * gnulib-tool: Avoid space-tab.
50893
50894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50895
50896         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50897         that prevented coreutils 6.1 from building.  Problem reported
50898         by Petter Reinholdtsen.
50899
50900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * gnulib-tool (avoidlist): Fix typo that broke options like
50903         --avoid=lock that are used by coreutils bootstrap.
50904
50905 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50906
50907         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50908         more systematically.
50909
50910 2006-09-18  Jim Meyering  <jim@meyering.net>
50911
50912         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50913
50914 2006-09-18  Bruno Haible  <bruno@clisp.org>
50915
50916         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50917
50918 2006-09-18  Bruno Haible  <bruno@clisp.org>
50919
50920         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50921         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50922         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50923         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50924         * m4/gettext.m4: Require autoconf >= 2.52.
50925         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50926         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50927         of gl_cv_header_inttypes_h.
50928
50929 2006-09-18  Bruno Haible  <bruno@clisp.org>
50930
50931         * lib/javaversion.c: Include configmake.h.
50932
50933 2006-09-18  Bruno Haible  <bruno@clisp.org>
50934
50935         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50936         avoid that the while loops be executed in a subshell.
50937
50938 2006-09-18  Bruno Haible  <bruno@clisp.org>
50939
50940         * MODULES.html.sh (func_module): Break long lines.
50941         Suggested by Bruce Korb <bkorb@gnu.org>.
50942
50943 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50944
50945         Speed up by a factor of 1.12.
50946         * gnulib-tool (nl): New variable.
50947         (func_import): Rewrite include directive extraction to only read each
50948         directive once.
50949
50950 2006-09-17  Bruno Haible  <bruno@clisp.org>
50951
50952         * modules/javaversion (Makefile.am): Remove DEFS setting.
50953         (Depends-on): Add configmake, for PKGDATADIR definition.
50954
50955 2006-09-17  Bruno Haible  <bruno@clisp.org>
50956
50957         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50958
50959 2006-09-17  Bruno Haible  <bruno@clisp.org>
50960
50961         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50962         (func_modules_transitive_closure, func_modules_add_dummy,
50963         func_modules_to_filelist, func_import, func_create_testdir,
50964         func_create_megatestdir, ...): Use it wherever possible.
50965         Suggested by Ralf Wildenhues.
50966
50967 2006-09-16  Karl Berry  <karl@gnu.org>
50968
50969         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50970         to avoid sectioning errors.
50971         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50972         [ifinfo]: blank line after @center-ed titles.
50973         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50974         Spell FSF address consistently with others.
50975         (These changes approved by rms.)
50976
50977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50978
50979         Speed up by a factor of 1.61.
50980         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50981         already checked module names again.
50982
50983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50984
50985         Speed up by a factor of 1.13.
50986         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50987         for new_files, and the input to func_add_or_update.
50988
50989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50990
50991         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50992         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50993
50994 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * modules/mkancesdirs (Depends-on): Add fcntl.
50997         * modules/savewd: New file.
50998         * MODULES.html.sh (File system functions): Add savewd.
50999
51000         * modules/configmake (Makefile.am): Add support for the
51001         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51002
51003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51004
51005         * m4/savewd.m4: New file.
51006
51007 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51008
51009         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51010         (dirchownmod): New arg FD.  All callers changed.
51011         Use FD rather than opening the directory ourself, as opening is
51012         now the caller's responsibility.
51013         * lib/dirchownmod.h: Likewise.
51014         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51015         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51016         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51017         (test_dir): Remove.
51018         (mkancesdirs): Return length of prefix of FILE that has already
51019         been made, or -2 if there is a child doing the work.  Redo
51020         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51021         ".", and treat ".." specially since it might stray back into
51022         already-created areas.  Use a subprocess if necessary.  New arg
51023         WD; all users changed.  MAKE_DIR function should now return 1
51024         if it creates a directory that is not readable.  Return -2 if
51025         a child process is spun off.
51026         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51027         Adjust signature to match code.
51028         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51029         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51030         all users changed.
51031         * lib/savewd.c, lib/savewd.h: New files.
51032
51033 2006-09-15  Jim Meyering  <jim@meyering.net>
51034
51035         * modules/rename-dest-slash: New module.
51036         * MODULES.html.sh (posix_compat): Add it here.
51037
51038         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51039
51040 2006-09-15  Jim Meyering  <jim@meyering.net>
51041
51042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51043         file.
51044
51045         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51046
51047 2006-09-15  Jim Meyering  <jim@meyering.net>
51048
51049         * lib/rename-dest-slash.c (has_trailing_slash): Use
51050         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51051         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51052         test before testing whether SRC is a directory.
51053         Suggestions from Bruno Haible.
51054
51055         Avoid a warning about an unused variable.
51056         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51057         into the #ifdef block where it's used.
51058
51059         * lib/rename-dest-slash.c: New file.
51060
51061 2006-09-14  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/allocsa.c: Include <config.h> unconditionally.
51064         * lib/asnprintf.c: Likewise.
51065         * lib/asprintf.c: Likewise.
51066         * lib/c-strcasecmp.c: Likewise.
51067         * lib/c-strcasestr.c: Likewise.
51068         * lib/c-strncasecmp.c: Likewise.
51069         * lib/c-strstr.c: Likewise.
51070         * lib/classpath.c: Likewise.
51071         * lib/clean-temp.c: Likewise.
51072         * lib/concatpath.c: Likewise.
51073         * lib/copy-file.c: Likewise.
51074         * lib/csharpcomp.c: Likewise.
51075         * lib/csharpexec.c: Likewise.
51076         * lib/execute.c: Likewise.
51077         * lib/fatal-signal.c: Likewise.
51078         * lib/findprog.c: Likewise.
51079         * lib/fwriteerror.c: Likewise.
51080         * lib/gl_array_list.c: Likewise.
51081         * lib/gl_array_oset.c: Likewise.
51082         * lib/gl_avltree_list.c: Likewise.
51083         * lib/gl_avltree_oset.c: Likewise.
51084         * lib/gl_avltreehash_list.c: Likewise.
51085         * lib/gl_carray_list.c: Likewise.
51086         * lib/gl_linked_list.c: Likewise.
51087         * lib/gl_linkedhash_list.c: Likewise.
51088         * lib/gl_list.c: Likewise.
51089         * lib/gl_oset.c: Likewise.
51090         * lib/gl_rbtree_list.c: Likewise.
51091         * lib/gl_rbtree_oset.c: Likewise.
51092         * lib/gl_rbtreehash_list.c: Likewise.
51093         * lib/imaxabs.c: Likewise.
51094         * lib/imaxdiv.c: Likewise.
51095         * lib/javacomp.c: Likewise.
51096         * lib/javaexec.c: Likewise.
51097         * lib/javaversion.c: Likewise.
51098         * lib/linebreak.c: Likewise.
51099         * lib/localcharset.c: Likewise.
51100         * lib/lock.c: Likewise.
51101         * lib/mbchar.c: Likewise.
51102         * lib/mbswidth.c: Likewise.
51103         * lib/mkdtemp.c: Likewise.
51104         * lib/pipe.c: Likewise.
51105         * lib/printf-args.c: Likewise.
51106         * lib/printf-parse.c: Likewise.
51107         * lib/progname.c: Likewise.
51108         * lib/progreloc.c: Likewise.
51109         * lib/readlink.c: Likewise.
51110         * lib/sh-quote.c: Likewise.
51111         * lib/stpcpy.c: Likewise.
51112         * lib/stpncpy.c: Likewise.
51113         * lib/strcasecmp.c: Likewise.
51114         * lib/strcasestr.c: Likewise.
51115         * lib/strcspn.c: Likewise.
51116         * lib/striconv.c: Likewise.
51117         * lib/strncasecmp.c: Likewise.
51118         * lib/strnlen1.c: Likewise.
51119         * lib/strstr.c: Likewise.
51120         * lib/strtok_r.c: Likewise.
51121         * lib/tls.c: Likewise.
51122         * lib/tmpdir.c: Likewise.
51123         * lib/unicodeio.c: Likewise.
51124         * lib/unsetenv.c: Likewise.
51125         * lib/vasnprintf.c: Likewise.
51126         * lib/vasprintf.c: Likewise.
51127         * lib/wait-process.c: Likewise.
51128         * lib/xallocsa.c: Likewise.
51129         * lib/xsetenv.c: Likewise.
51130         * lib/xstriconv.c: Likewise.
51131
51132 2006-09-13  Simon Josefsson  <jas@extundo.com>
51133
51134         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51135         that internally, suggested by Ralf Wildenhues
51136         <Ralf.Wildenhues@gmx.de>.
51137
51138 2006-09-13  Simon Josefsson  <jas@extundo.com>
51139
51140         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51141         @LIBOBJS@.
51142         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51143
51144 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51147         longer worry about uses that don't define HAVE_CONFIG_H.
51148         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51149         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51150         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51151         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51152         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51153         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51154         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51155         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51156         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51157         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51158         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51159         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51160         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51161         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51162         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51163         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51164         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51165         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51166         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51167         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51168         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51169         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51170         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51171         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51172         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51173         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51174         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51175         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51176         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51177         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51178         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51179         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51180         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51181         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51182         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51183         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51184         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51185         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51186         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51187         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51188         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51189         Likewise.
51190
51191 2006-09-13  Eric Blake  <ebb9@byu.net>
51192
51193         * lib/getopt.c: Fix typo in last commit.
51194
51195 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51196
51197         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51198         dgettext.
51199
51200 2006-09-12  Jim Meyering  <jim@meyering.net>
51201
51202         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51203         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51204         Reported by Nelson H. F. Beebe.
51205
51206 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51207
51208         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51209         program_invocation_name and program_invocation_short_name are
51210         initialized.
51211         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51212         and program_invocation_short_name to argp.h, so they are visible
51213         to user programs.
51214         * lib/argp.h: Likewise
51215
51216 2006-09-10  Bruno Haible  <bruno@clisp.org>
51217
51218         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51219         m4/inttypes_h.m4, m4/uintmax_t.m4.
51220
51221 2006-09-10  Bruno Haible  <bruno@clisp.org>
51222
51223         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51224         gl_AC_TYPE_UINTMAX_T.
51225
51226 2006-09-10  Bruno Haible  <bruno@clisp.org>
51227
51228         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51229
51230 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51231
51232         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51233         convention.  Text proposed by Bruno Haible.
51234         (struct argp_option): Document the use of N_() wrappers.
51235
51236         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51237         '\v', and translate the two parts separately, instead of feeding
51238         the whole string to gettext.  This allows to exclude
51239         '\v' from the strings visible to the translator by writing doc
51240         strings as N_("..") "\v" N_("..").
51241
51242 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51243
51244         * config/srclist.txt: Undo latest change; the bug was fixed.
51245
51246 2006-09-09  Bruno Haible  <bruno@clisp.org>
51247
51248         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51249         assignments if building a library without libtool.
51250         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51251         in func_emit_lib_Makefile_am.
51252         (func_import): When building a static library libfoo.a, arrange to
51253         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51254         (func_create_testdir): Likewise.
51255         * modules/gc (configure.ac, Makefile.am): If building statically,
51256         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51257         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51258         * modules/striconv (configure.ac, Makefile.am): Likewise.
51259         Based on a suggestion by Ralf Wildenhues.
51260
51261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51262
51263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51264         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51265         Also:
51266
51267         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51268         Add year_2050_test to catch glibc bug 2821
51269         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51270
51271         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51272         Prefer #ifdef to #if.
51273
51274         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51275         Return from 'main' instead of calling 'exit'.
51276
51277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51278
51279         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51280         returned the maximum time_t value rather than (time_t) -1.
51281         Problem originally reported by William Bardwell
51282         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51283
51284         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51285         Moved to here ...
51286         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51287         ... from here.
51288
51289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51290
51291         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51292         2821 is fixed.
51293
51294 2006-09-08  Jim Meyering  <jim@meyering.net>
51295
51296         Don't make generated files read-only.  That would bother too many
51297         people.  However, do retain the ability to work when targets are
51298         read-only: remove the destination and temporary files before writing
51299         them (when generated via sed or echo), or by using the -f option for
51300         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51301         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51302         * modules/byteswap, modules/configmake, modules/fcntl:
51303         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51304         * modules/localcharset, modules/netinet_in, modules/poll:
51305         * modules/stdbool, modules/stdint, modules/sys_select:
51306         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51307
51308 2006-09-08  Jim Meyering  <jim@meyering.net>
51309
51310         Avoid new build failure on FreeBSD 6.0.
51311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51312         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51313         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51314
51315 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51316
51317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51318
51319 2006-09-07  Jim Meyering  <jim@meyering.net>
51320
51321         Fix global typo in last change: use chmod u-w, not chmod u-x.
51322         Spotted by Paul Eggert and Bruce Korb.
51323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51324         * modules/byteswap, modules/configmake, modules/fcntl:
51325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51326         * modules/localcharset, modules/netinet_in, modules/poll:
51327         * modules/stdbool, modules/stdint, modules/sys_select:
51328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51329
51330 2006-09-06  Jim Meyering  <jim@meyering.net>
51331
51332         Make generated files be read-only.
51333         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51334         Ensure that each generated file is now read-only.
51335         * modules/argz: Likewise.
51336         * modules/arpa_inet: Likewise.
51337         * modules/byteswap: Likewise.
51338         * modules/configmake: Likewise.
51339         * modules/fcntl: Likewise.
51340         * modules/fnmatch: Likewise.
51341         * modules/getopt: Likewise.
51342         * modules/glob: Likewise.
51343         * modules/inttypes: Likewise.
51344         * modules/netinet_in: Likewise.
51345         * modules/poll: Likewise.
51346         * modules/stdbool: Likewise.
51347         * modules/stdint: Likewise.
51348         * modules/sys_select: Likewise.
51349         * modules/sys_socket: Likewise.
51350         * modules/sys_stat: Likewise.
51351         * modules/sysexits: Likewise.
51352         * modules/localcharset: Same as above, but continue using temporary
51353         file named "t-$@" (why different?) rather than the "$@-t" used
51354         everywhere else.
51355
51356         * modules/sysexits (Makefile.am): Replace literal occurrences
51357         of "sysexit.h" more readable, and more consistent, "$@".
51358
51359 2006-09-06  Bruno Haible  <bruno@clisp.org>
51360
51361         * modules/striconv: New file.
51362         * modules/xstriconv: New file.
51363         * MODULES.html.sh (Internationalization functions): Add striconv,
51364         xstriconv.
51365
51366 2006-09-06  Bruno Haible  <bruno@clisp.org>
51367
51368         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51369         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51370         not using libtool correctly.
51371
51372 2006-09-06  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/striconv.h: New file.
51375         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51376         iconvstring.c.
51377         * lib/xstriconv.h: New file.
51378         * lib/xstriconv.c: New file.
51379
51380 2006-09-06  Bruno Haible  <bruno@clisp.org>
51381
51382         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51383         lib_..._LDFLAGS.
51384
51385 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51386
51387         * lib/argz_.h: Sync from Libtool.
51388
51389         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51390                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51391
51392         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51393
51394 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51395
51396         * modules/trim: New file.
51397
51398 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51399
51400         * lib/trim.h: New file.
51401         * lib/trim.c: New file.
51402
51403 2006-09-05  Bruno Haible  <bruno@clisp.org>
51404
51405         * MODULES.html.sh (String handling): Add trim.
51406
51407 2006-09-04  Karl Berry  <karl@gnu.org>
51408
51409         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51410         until next release.
51411
51412 2006-09-03  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51415         correctly.
51416
51417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51420         not gl_GETLOADAVG.  Omit unneeded semicolons.
51421         Problems reported by Ralf Wildenhues in
51422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51423         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51424         at the end, which is the usual gnulib style.
51425
51426         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51427         of doing all the work ourselves.
51428         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51429         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51430
51431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51432
51433         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51434         Problem reported by Ralf Wildenhues in
51435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51436
51437         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51438         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51439
51440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51443         yesterday's patch by changing test -n to test -z.
51444
51445 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51448         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51449         the former is now obsolescent.
51450
51451         * modules/chdir-long (Depends-on): Add fcntl.
51452
51453 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51456         obsolescent, and programs should use gnulib instead.
51457         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51458         but with prefixes changed.
51459
51460 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51461
51462         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51463         or stdbool.h, because they might not exist while configuring.
51464
51465         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51466         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51467         does that for us.
51468         (O_DIRECTORY): Remove.
51469
51470 2006-08-31  Eric Blake  <ebb9@byu.net>
51471
51472         * gnulib-tool: Don't let emacs change spaces to TAB.
51473
51474 2006-08-31  Bruno Haible  <bruno@clisp.org>
51475
51476         * gnulib-tool: When calling func_import more than once, do it in a
51477         subshell.
51478         Reported by Eric Blake <ebb9@byu.net>.
51479
51480 2006-08-31  Bruno Haible  <bruno@clisp.org>
51481
51482         * gnulib-tool (nl): Remove variable.
51483         (sed_transform_lib_file): Use more robust test for config-h module.
51484         (func_import): Fix typo in 2006-08-25 patch.
51485
51486 2006-08-31  Bruno Haible  <bruno@clisp.org>
51487
51488         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51489         specified, augment Makefile.am variables instead of assigning them.
51490
51491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51492
51493         Work around a bug in both the Linux and SunOS 64-bit kernels:
51494         nanosleep mishandles sleeps for longer than 2**31 seconds.
51495         Problem reported by Frank v Waveren in
51496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51498         Check for nanosleep bug.
51499         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51500
51501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51502
51503         Work around a bug in both the Linux and SunOS 64-bit kernels:
51504         nanosleep mishandles sleeps for longer than 2**31 seconds.
51505         Problem reported by Frank v Waveren in
51506         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51507         * lib/nanosleep.c (BILLION): New constant.
51508         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51509         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51510         implementation.
51511
51512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51513
51514         * modules/nanosleep (Depends-on): Add gettime.
51515
51516 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51517         and Simon Josefsson  <jas@extundo.com>
51518         and Oskar Liljeblad  <oskar@osk.mine.nu>
51519
51520         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51521         * gnulib-tool (func_import): New license type 'unmodifiable license
51522         text'.
51523         * modules/fdl: Use it.  Longer description.
51524         * module/gpl, module/lgpl: New files.
51525
51526 2006-08-30  Jim Meyering  <jim@meyering.net>
51527
51528         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51529         shadowing the parameter.
51530
51531 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51532
51533         Sync from Libtool:
51534
51535         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51536
51537         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51538         sharing with gnulib.  Report by Eric Blake.
51539
51540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * modules/isapipe: New file.
51543         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51544
51545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         * modules/configmake (Makefile.am): Add a comment, and omit
51548         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51549         by Bruno Haible.
51550
51551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * m4/isapipe.m4: New file.
51554
51555 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51556
51557         * lib/isapipe.c, lib/isapipe.h: New files.
51558
51559 2006-08-29  Jim Meyering  <jim@meyering.net>
51560
51561         * modules/configmake (Makefile.am): Make configmake.h depend on
51562         Makefile.  Otherwise, a stale configmake.h could hang around.
51563
51564 2006-08-29  Eric Blake  <ebb9@byu.net>
51565
51566         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51567         resolution of upstream bug 3044.
51568
51569 2006-08-29  Bruno Haible  <bruno@clisp.org>
51570
51571         * modules/localcharset (Depends-on): Add configmake.
51572         (Makefile.am): Remove setting of LIBDIR through DEFS.
51573
51574 2006-08-29  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51577         defined.
51578
51579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * modules/fcntl: New file.
51582         * modules/chdir-safer (Depends-on): Add fcntl.
51583         * modules/fts: Likewise.
51584         * modules/mkdir-p: Likewise.
51585
51586         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51587         This undoes the most recent change, since we're now addressing the
51588         problem in a different way.
51589
51590         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51591         into output, since the output might be called Makefile.am even
51592         if $makefile_name is something different.
51593         (func_import): Use $makefile_am rather than
51594         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51595         empty.
51596
51597         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51598
51599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51600
51601         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51602         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51603         recent change to stdint.m4, since we're now addressing the problem in a
51604         different way.
51605
51606 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51607
51608         * m4/fcntl_h.m4: New file.
51609
51610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51611
51612         * lib/fcntl_.h: New file.
51613         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51614         the fcntl module.
51615         * lib/dirchownmod.c: Likewise.
51616         * lib/fts.c: Likewise.
51617
51618         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51619         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51620         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51621         just before including <inttypes.h>, to avoid circular inclusion.
51622
51623 2006-08-28  Jim Meyering  <jim@meyering.net>
51624
51625         * doc/visibility.texi: Actually read and correct the grammar of the
51626         sentence affected by yesterday's change.
51627
51628 2006-08-28  Eric Blake  <ebb9@byu.net>
51629
51630         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51631         needs wrapper.
51632
51633 2006-08-28  Eric Blake  <ebb9@byu.net>
51634
51635         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51636
51637 2006-08-28  Eric Blake  <ebb9@byu.net>
51638
51639         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51640
51641 2006-08-28  Bruno Haible  <bruno@clisp.org>
51642
51643         * modules/c-strstr: New file, from GNU gettext.
51644         * MODULES.html.sh (String handling): Add c-strstr.
51645
51646 2006-08-28  Bruno Haible  <bruno@clisp.org>
51647
51648         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51649         macros.
51650         Reported by Eric Blake.
51651
51652 2006-08-28  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51655         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51656         * lib/vasprintf.c: Include errno.h, limits.h.
51657         (EOVERFLOW): New fallback definition.
51658         (vasprintf): Test here whether the string length is > INT_MAX.
51659         * lib/vsnprintf.c: Include errno.h, limits.h.
51660         (EOVERFLOW): New fallback definition.
51661         (vsnprintf): Fix bug when generated string was too long for the buffer.
51662         Test here whether the string length is > INT_MAX.
51663
51664 2006-08-28  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/inttypes_.h (SCNX*): Remove definitions.
51667         Reported by Eric Blake.
51668
51669 2006-08-28  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/c-strstr.h: New file, from GNU gettext.
51672         * lib/c-strstr.c: New file, from GNU gettext.
51673
51674 2006-08-28  Bruno Haible  <bruno@clisp.org>
51675
51676         * gnulib-tool: Reorder some statements.
51677
51678 2006-08-28  Bruno Haible  <bruno@clisp.org>
51679
51680         * gnulib-tool: New option --makefile-name.
51681         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51682         $makefile_name.
51683         (func_import): Write $makefile_name to the cache file, and read it from
51684         there unless explicitly specified. Use $makefile_name as file name
51685         instead of Makefile.am. Adjust the recommendations accordingly.
51686
51687 2006-08-28  Bruno Haible  <bruno@clisp.org>
51688
51689         * gnulib-tool (func_verify_module): Check against misapplying patch.
51690
51691 2006-08-28  Bruno Haible  <bruno@clisp.org>
51692
51693         * gnulib-tool (func_relativize, func_relconcat): New functions.
51694         Give an error if --local-dir is given with --update.
51695         Remove trailing slashes from $local_gnulib_dir.
51696         (func_import): Store the relativized $local_gnulib_dir in
51697         gnulib-cache.m4, and read it from there if not specified explicitly.
51698
51699 2006-08-28  Bruno Haible  <bruno@clisp.org>
51700
51701         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51702         is the current directory. Respect also $local_gnulib_dir.
51703
51704 2006-08-28  Bruno Haible  <bruno@clisp.org>
51705             Simon Josefsson  <jas@extundo.com>
51706
51707         BeOS portability.
51708         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51709
51710 2006-08-27  Jim Meyering  <jim@meyering.net>
51711
51712         * doc/visibility.texi: Remove duplicate word: "pointer".
51713
51714 2006-08-26  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51717         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51718         (Makefile.am): Create inttypes.h from inttypes_.h.
51719         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51720
51721         * modules/imaxabs: New file.
51722
51723         * modules/imaxdiv: New file.
51724
51725 2006-08-26  Bruno Haible  <bruno@clisp.org>
51726
51727         * m4/inttypes.m4: New file.
51728         * m4/_inttypes_h.m4: Remove file.
51729         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51730         PRI_MACROS_BROKEN.
51731         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51732
51733         * m4/imaxabs.m4: New file.
51734
51735         * m4/imaxdiv.m4: New file.
51736
51737 2006-08-26  Bruno Haible  <bruno@clisp.org>
51738
51739         * lib/inttypes_.h: New file.
51740         * lib/inttypes.h: Remove file.
51741         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51742
51743         * lib/imaxabs.c: New file.
51744
51745         * lib/imaxdiv.c: New file.
51746
51747 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         New config-h module, so that "make" output needn't be cluttered
51750         by -DHAVE_CONFIG_H.
51751         * MODULES.html.sh (Support for building libraries and executables):
51752         Add config-h.
51753         * modules/config-h: New file.
51754         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51755         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51756         the config-h module is used.
51757
51758         New configmake module, so that "make" output needn't be cluttered
51759         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51760         * MODULES.html.sh (Support for building libraries and executables):
51761         Add configmake.
51762         * modules/configmake: New file.
51763
51764 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51765
51766         * m4/config-h.m4: New file.
51767
51768 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51769
51770         * config/srclist.txt: Add elisp-comp.
51771
51772 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51773
51774         * MODULES.html.sh (Support for building libraries and executables):
51775         Add elisp-comp.
51776         * build-aux/elisp-comp: New file.
51777         * modules/elisp-comp: New file.
51778
51779 2006-08-24  Bruno Haible  <bruno@clisp.org>
51780
51781         * gnulib-tool (func_create_testdir): Use non-default values of
51782         sourcebase and m4base.
51783
51784 2006-08-24  Bruno Haible  <bruno@clisp.org>
51785
51786         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51787         HTML structure.
51788
51789 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51790
51791         * modules/openat (Depends-on): Add lchown.
51792
51793 2006-08-23  Bruno Haible  <bruno@clisp.org>
51794
51795         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51796         of gl_LOCK_EARLY instead of gl_LOCK.
51797
51798 2006-08-23  Bruno Haible  <bruno@clisp.org>
51799
51800         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51801         on OSF/1 to no.
51802         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51803
51804 2006-08-23  Bruno Haible  <bruno@clisp.org>
51805
51806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51807         as unusable.
51808
51809         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51810         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51811         (gl_LOCK): New macro.
51812
51813 2006-08-22  Simon Josefsson  <jas@extundo.com>
51814
51815         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51816         to md5 module.
51817
51818 2006-08-22  Simon Josefsson  <jas@extundo.com>
51819
51820         * MODULES.html.sh: Add "Support for maintaining and release
51821         projects".
51822
51823         * build-aux/gnupload: New file, from coreutils.
51824
51825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51826
51827         Avoid the need for AC_LIBSOURCES in m4 macros.
51828         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51829         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51830         * modules/check-version (EXTRA_DIST): Add check-version.h.
51831         * modules/crc (EXTRA_DIST): Add crc.h.
51832         * modules/des (EXTRA_DIST): Add des.h.
51833         * modules/gc (EXTRA_DIST): Add gc.h.
51834         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51835         * modules/getline (EXTRA_DIST): Add getline.h.
51836         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51837         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51838         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51839         * modules/md2 (EXTRA_DIST): Add md2.h.
51840         * modules/md4 (EXTRA_DIST): Add md4.h.
51841         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51842         * modules/read-file (EXTRA_DIST): Add read-file.h.
51843         * modules/readline (EXTRA_DIST): Add readline.h.
51844         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51845         rijndael-api-fst.h.
51846
51847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         * m4/rijndael.m4 (gl_ARCFOUR):
51850         * m4/arctwo.m4 (gl_ARCTWO):
51851         * m4/check-version.m4 (gl_CHECK_VERSION):
51852         * m4/crc.m4 (gl_CRC):
51853         * m4/des.m4 (gl_DES):
51854         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51855         * m4/gc.m4 (gl_GC):
51856         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51857         * m4/getline.m4 (gl_FUNC_GETLINE):
51858         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51859         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51860         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51861         * m4/md2.m4 (gl_MD2):
51862         * m4/md4.m4 (gl_MD4):
51863         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51864         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51865         * m4/readline.m4 (gl_FUNC_READLINE):
51866         * m4/rijndael.m4 (gl_RIJNDAEL):
51867         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51868         to get the necessary .h files and whatnot.
51869
51870 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51871
51872         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51873         gnulib rather than the other way around.
51874         * config/srclistvars.sh (COREUTILS): Remove.
51875
51876 2006-08-22  Jim Meyering  <jim@meyering.net>
51877
51878         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51879
51880         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51881
51882 2006-08-22  Eric Blake  <ebb9@byu.net>
51883
51884         * modules/regexprops-generic: New file.
51885         * MODULES.html.sh (Support for building documentation): List it.
51886
51887 2006-08-22  Eric Blake  <ebb9@byu.net>
51888
51889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51892         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51893
51894 2006-08-22  Bruno Haible  <bruno@clisp.org>
51895
51896         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51897         and lib_LTLIBRARIES like the other lib_* variables.
51898
51899 2006-08-22  Bruno Haible  <bruno@clisp.org>
51900
51901         * build-aux/x-to-1.in: New file, from GNU gettext.
51902
51903 2006-08-22  Bruno Haible  <bruno@clisp.org>
51904
51905         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51906         <utmpx.h> exists.
51907
51908 2006-08-22  Bruno Haible  <bruno@clisp.org>
51909
51910         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51911         <utmpx.h> exists.
51912
51913 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         BeOS portability.
51916         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51917         exist.
51918         Problem reported by Bruno Haible.
51919
51920 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         Avoid the need for AC_LIBSOURCES in m4 macros.
51923         * modules/acl (EXTRA_DIST): Add acl.h.
51924         * modules/argmatch (Files): Add m4/argmatch.m4.
51925         (configure.ac): Add gl_ARGMATCH.
51926         (EXTRA_DIST): Renamed from lib_SOURCES, for
51927         consistency with the other modules.  Remove argmatch.c.
51928         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51929         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51930         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51931         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51932         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51933         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51934         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51935         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51936         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51937         * modules/closeout (EXTRA_DIST): Add closeout.h.
51938         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51939         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51940         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51941         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51942         dirname.h; remove basename.c and stripslash.c.
51943         * modules/exclude (EXTRA_DIST): Add exclude.h.
51944         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51945         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51946         * modules/file-type (EXTRA_DIST): Add file-type.h.
51947         * modules/filemode (EXTRA_DIST): Add filemode.h.
51948         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51949         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51950         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51951         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51952         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51953         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51954         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51955         * modules/getdate (EXTRA_DIST): Add getdate.c.
51956         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51957         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51958         * modules/getpass (EXTRA_DIST): Add getpass.h.
51959         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51960         * modules/group-member (EXTRA_DIST): Add group-member.h.
51961         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51962         * modules/hash (EXTRA_DIST): Add hash.h.
51963         * modules/human (EXTRA_DIST): Add human.h.
51964         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51965         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51966         * modules/lchown (EXTRA_DIST): Add lchown.h.
51967         * modules/long-options (EXTRA_DIST): Add long-options.h.
51968         * modules/lstat (EXTRA_DIST): Add lstat.h.
51969         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51970         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51971         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51972         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51973         * modules/memxor (EXTRA_DIST): Add memxor.h.
51974         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51975         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51976         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51977         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51978         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51979         * modules/physmem (EXTRA_DIST): Add physmem.h.
51980         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51981         * modules/posixver (EXTRA_DIST): Add posixver.h.
51982         * modules/quote (EXTRA_DIST): Add quote.h.
51983         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51984         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51985         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51986         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51987         regex_internal.h regexec.c.
51988         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51989         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51990         * modules/same (EXTRA_DIST): Add same.h.
51991         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51992         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51993         * modules/savedir (EXTRA_DIST): Add savedir.h.
51994         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51995         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51996         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51997         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51998         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51999         * modules/strdup (EXTRA_DIST): Add strdup.h.
52000         * modules/strftime (EXTRA_DIST): Add strftime.h.
52001         * modules/strndup (EXTRA_DIST): Add strndup.h.
52002         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52003         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52004         * modules/time_r (EXTRA_DIST): Add time_r.h.
52005         * modules/timespec (EXTRA_DIST): Add timespec.h.
52006         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52007         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52008         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52009         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52010         * modules/userspec (EXTRA_DIST): Add userspec.h.
52011         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52012         * modules/utimens (EXTRA_DIST): Add utimens.h.
52013         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52014         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52015         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52016         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52017         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52018         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52019         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52020         * modules/yesno (EXTRA_DIST): Add yesno.h.
52021
52022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52023
52024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52025
52026         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52027         * m4/dev-ino.m4, same-inode.m4: Remove.
52028
52029         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52030         * m4/acl.m4 (AC_FUNC_ACL):
52031         * m4/backupfile.m4 (gl_BACKUPFILE):
52032         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52033         * m4/canon-host.m4 (gl_CANON_HOST):
52034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52037         * m4/cloexec.m4 (gl_CLOEXEC):
52038         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52039         * m4/closeout.m4 (gl_CLOSEOUT):
52040         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52041         * m4/dirname.m4 (gl_DIRNAME):
52042         * m4/exclude.m4 (gl_EXCLUDE):
52043         * m4/exitfail.m4 (gl_EXITFAIL):
52044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52045         * m4/file-type.m4 (gl_FILE_TYPE):
52046         * m4/filemode.m4 (gl_FILEMODE):
52047         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52048         * m4/fpending.m4 (gl_FUNC_FPENDING):
52049         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52050         * m4/fts.m4 (gl_FUNC_FTS):
52051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52052         * m4/getdate.m4 (gl_GETDATE):
52053         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52054         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52055         * m4/getpass.m4 (gl_FUNC_GETPASS):
52056         * m4/gettime.m4 (gl_GETTIME):
52057         * m4/getugroups.m4 (gl_GETUGROUPS):
52058         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52060         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52061         * m4/hash.m4 (gl_HASH):
52062         * m4/idcache.m4 (gl_IDCACHE):
52063         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52064         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52065         * m4/long-options.m4 (gl_LONG_OPTIONS):
52066         * m4/lstat.m4 (gl_FUNC_LSTAT):
52067         * m4/md5.m4 (gl_MD5):
52068         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52069         * m4/memcoll.m4 (gl_MEMCOLL):
52070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52072         * m4/memxor.m4 (gl_MEMXOR):
52073         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52075         * m4/modechange.m4 (gl_MODECHANGE):
52076         * m4/mountlist.m4 (gl_MOUNTLIST):
52077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52078         * m4/openat.m4 (gl_FUNC_OPENAT):
52079         * m4/pathmax.m4 (gl_PATHMAX):
52080         * m4/physmem.m4 (gl_PHYSMEM):
52081         * m4/posixtm.m4 (gl_POSIXTM):
52082         * m4/posixver.m4 (gl_POSIXVER):
52083         * m4/quote.m4 (gl_QUOTE):
52084         * m4/quotearg.m4 (gl_QUOTEARG):
52085         * m4/readtokens.m4 (gl_READTOKENS):
52086         * m4/readutmp.m4 (gl_READUTMP):
52087         * m4/regex.m4 (gl_REGEX):
52088         * m4/safe-read.m4 (gl_SAFE_READ):
52089         * m4/safe-write.m4 (gl_SAFE_WRITE):
52090         * m4/same.m4 (gl_SAME):
52091         * m4/save-cwd.m4 (gl_SAVE_CWD):
52092         * m4/savedir.m4 (gl_SAVEDIR):
52093         * m4/settime.m4 (gl_SETTIME):
52094         * m4/sha1.m4 (gl_SHA1):
52095         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52096         * m4/stat-macros.m4 (gl_STAT_MACROS):
52097         * m4/stat-time.m4 (gl_STAT_TIME):
52098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52099         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52100         * m4/strdup.m4 (gl_FUNC_STRDUP):
52101         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52102         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52103         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52104         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52105         * m4/time_r.m4 (gl_TIME_R):
52106         * m4/timespec.m4 (gl_TIMESPEC):
52107         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52108         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52109         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52110         * m4/userspec.m4 (gl_USERSPEC):
52111         * m4/utimecmp.m4 (gl_UTIMECMP):
52112         * m4/utimens.m4 (gl_UTIMENS):
52113         * m4/xalloc.m4 (gl_XALLOC):
52114         * m4/xgetcwd.m4 (gl_XGETCWD):
52115         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52116         * m4/xreadlink.m4 (gl_XREADLINK):
52117         * m4/xstrtod.m4 (gl_XSTRTOD):
52118         * m4/yesno.m4 (gl_YESNO):
52119         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52120         to get the necessary .h files and whatnot.
52121
52122 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52123             Bruno Haible  <bruno@clisp.org>
52124
52125         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52126         /bin/sh understanding of '!' conditional negation.
52127
52128 2006-08-21  Jim Meyering  <jim@meyering.net>
52129
52130         * modules/openat (Depends-on): Really alphabetize.
52131
52132         * modules/acl (Depends-on): Add error and quote.
52133
52134         * check-module (find_included_lib_files): Add at-func.c to the
52135         ok-to-include-more-than-once white list.
52136
52137         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52138
52139 2006-08-21  Bruno Haible  <bruno@clisp.org>
52140
52141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52142         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52143         Reported by Martin Lambers <marlam@marlam.de>.
52144
52145 2006-08-21  Bruno Haible  <bruno@clisp.org>
52146
52147         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52148         specify an installation location, don't emit a noinst_LIBRARIES or
52149         noinst_LTLIBRARIES assignment.
52150
52151 2006-08-21  Bruno Haible  <bruno@clisp.org>
52152
52153         BeOS portability.
52154         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52155         BeOS has mbrtowc() but no <wctype.h>.
52156
52157 2006-08-21  Bruno Haible  <bruno@clisp.org>
52158
52159         BeOS portability.
52160         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52161         exist.
52162
52163 2006-08-21  Bruno Haible  <bruno@clisp.org>
52164
52165         BeOS portability.
52166         * lib/mbchar.h: Include <wctype.h> only if it exists.
52167
52168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52169
52170         Remove files that are no longer needed by their respective modules.
52171         * m4/obstack.m4: Remove.
52172         * m4/strerror_r.m4: Remove.
52173         * m4/uint32_t.m4: Remove.
52174         * m4/uintptr_t.m4: Remove.
52175         * m4/ullong_max.m4: Remove.
52176         * m4/xstrtoimax.m4: Remove.
52177         * m4/xstrtoumax.m4: Remove.
52178
52179         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52180         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52181         dependencies now capture this.
52182
52183         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52184         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52185         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52186         * m4/human.m4 (gl_HUMAN): Likewise.
52187         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52188         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52189
52190         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52191
52192         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52193         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52194         stdint.
52195         * m4/human.m4 (gl_HUMAN): Likewise.
52196         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52197         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52199         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52200         * m4/xstrtol (gl_XSTRTOL): Likewise.
52201
52202         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52203         AC_TYPE_LONG_LONG_INT.
52204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52206         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52208
52209         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52210         on stdbool.
52211
52212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52213         (gl_PREREQ_XSTRTOUL): Remove.
52214
52215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52216
52217         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52218         mode.
52219
52220 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52221
52222         Add and change modules to make it easier for coreutils to use
52223         gnulib-tool.
52224         * modules/backupfile (Files): Remove m4/d-ino.m4.
52225         (Depends-on): Add d-ino.
52226         * modules/cycle-check (Depends-on): Add stdint.
52227         (lib_SOURCES): Add cycle-check.h.
52228         * modules/d-ino: New module.
52229         * modules/d-type: New module.
52230         * modules/error (Files): Remove m4/strerror_r.m4.
52231         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52232         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52233         m4/inttypes_h.m4, m4/uintmax_t.m4.
52234         (Depends-on): Add stdint.
52235         (lib_SOURCES): Add fsusage.h.
52236         * modules/getcwd (Files): Remove d-ino.m4.
52237         (Depends-on): Add d-ino.
52238         * modules/getndelim2 (Depends-on): Add stdint.
52239         * modules/glob (Files): Remove m4/d-type.m4.
52240         (Depends-on): Add d-type.
52241         * modules/host-os: New module.
52242         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52243         m4/inttypes_h.m4, m4/uintmax_t.m4.
52244         * Depends-on: Add stdint.
52245         (lib_SOURCES): Add human.h.
52246         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52247         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52248         m4/uintmax_t.m4, m4/ulonglong.m4.
52249         (Depends-on): Add stdint.
52250         (EXTRA_DIST): Add inttostr.h.
52251         * modules/lchmod: New module.
52252         * modules/link-follow: New module.
52253         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52254         (Depends-on): Add lchmod.
52255         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52256         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52257         (Depends-on): Add stdint.
52258         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52259         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52260         (Depends-on): Add stdint.
52261         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52262         * modules/perl: New module.
52263         * modules/regex (Depends-on): Add stdint.
52264         * modules/rmdir-errno: New module.
52265         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52266         m4/intmax_t.m4.
52267         (Depends-on): Add stdint.
52268         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52269         m4/uintmax_t.m4.
52270         (Depends-on): Add stdint.
52271         * modules/unlink-busy: New module.
52272         * modules/utimecmp (Depends-on): Add stdint.
52273         * modules/uptime: New module.
52274         * modules/winsz-ioctl: New module.
52275         * modules/winsz-termios: New module.
52276         * modules/xnanosleep (Depends-on): Add nanosleep.
52277         * modules/ullong_max: Remove.
52278         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52279         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52280         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52281         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52282         (Depends-on): Add inttypes.
52283         (lib_SOURCES): Add xstrtol.h.
52284         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52285         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52286         * MODULES.html.sh: Move 'assert' into the assert section.
52287         Move 'dummy' into the linking section.
52288         Remove ullong_max.
52289         Add section for compatibility checks for POSIX:2001 functions,
52290         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52291         winsz-ioctl, and winsz-termios into it.
52292         Add lchmod.
52293         Add top-level Misc section and put host-os, perl, and uptime
52294         into it.
52295
52296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52297
52298         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52299         now assume the stdint module.  Do not include inttypes.h.
52300         * lib/fsusage.h: Likewise.
52301         * lib/getndelim2.c: Likewise.
52302         * lib/human.h: Likewise.
52303         * lib/inttostr.h: Likewise.
52304         * lib/obstack.c: Likewise.
52305         * lib/regex_internal.h: Likewise.
52306         * lib/tempname.c: Likewise.
52307         * lib/utimecmp.c: Likewise.
52308         * lib/xstrtol.h: Likewise.
52309
52310         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52311
52312         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52313         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52314         * lib/xtime.h: Likewise.
52315
52316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         * modules/openat (Files): Add lib/fchmodat.c.
52319         Fixes problem reported by Jay Youngman.
52320
52321 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52324         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52325
52326 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52327             Bruno Haible  <bruno@clisp.org>
52328
52329         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52330         and is a script that invokes bison. Tighten the code. Add comments.
52331
52332 2006-08-18  Jim Meyering  <jim@meyering.net>
52333
52334         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52335         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52336         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52337         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52338
52339 2006-08-18  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/bison-i18n: New file.
52342         * MODULES.html.sh (Internationalization functions): Add it.
52343
52344 2006-08-18  Bruno Haible  <bruno@clisp.org>
52345
52346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52347         sys/statvfs.h. When getmntinfo was found, check its declaration and
52348         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52349
52350 2006-08-18  Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/bison-i18n.m4: New file, from bison.
52353
52354 2006-08-18  Bruno Haible  <bruno@clisp.org>
52355
52356         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52357         (ME_DUMMY): Treat "kernfs" as a dummy.
52358         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52359
52360 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         Update from coreutils.
52363
52364         2006-08-15  Jim Meyering  <jim@meyering.net>
52365
52366         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52367
52368         2006-01-17  Jim Meyering  <jim@meyering.net>
52369
52370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52371
52372         2006-01-11  Jim Meyering  <jim@meyering.net>
52373
52374         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52375         Check for the lchmod function.
52376
52377 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52378
52379         Update from coreutils.
52380
52381         * lib/__fpending.h: Add copyright notice.
52382         * lib/fprintftime.h: Likewise.
52383         * lib/savedir.c: Use (C) in copyright notice.
52384         * lib/savedir.h: Likewise.
52385
52386         2006-08-15  Jim Meyering  <jim@meyering.net>
52387
52388         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52389         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52390         in support of the EXPECTED_ERRNO macro.
52391         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52392         definitions.  Instead, define the appropriate symbols and include
52393         "at-func.c".
52394         * lib/mkdirat.c (mkdirat): Likewise.
52395         * lib/fchmodat.c (fchmodat): Likewise.
52396         (ENOSYS): Remove definition.
52397         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52398         it.  Don't include "unistd--.h" -- it wasn't ever used.
52399
52400         2006-01-17  Jim Meyering  <jim@meyering.net>
52401
52402         Rewrite fts.c not to change the current working directory,
52403         by using openat, fstatat, fdopendir, etc..
52404
52405         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52406         (HAVE_OPENAT_SUPPORT): Define.
52407         [_LIBC] (fchdir): Don't undef or define; no longer used.
52408         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52409         Now, this `function' always succeeds, and consumes its file descriptor
52410         parameter -- so callers must not close such FDs.  Update callers.
52411         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52412         (diropen): Add parameter, SP.  Adjust all callers.
52413         Implement using diropen_fd, rather than open.
52414         (fts_open): Initialize new member, fts_cwd_fd.
52415         Remove fts_rft-setting code.
52416         (fts_close): Close fts_cwd_fd, if necessary.
52417         (__opendir2): Define in terms of opendir or opendirat,
52418         depending on whether the FST_NOCHDIR flag is set.
52419         (fts_build): Since fts_safe_changedir consumes its FD, and since
52420         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52421         and close the dup'd file descriptor upon failure.
52422         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52423         (fts_safe_changedir): Tweak semantics to reflect that this function
52424         now calls cwd_advance_fd and hence consumes its FD argument.
52425         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52426         [struct FTS] (fts_rft): Remove now-unused member.
52427         [struct FTS] (fts_cycle.state): Improve comment.
52428
52429         * lib/openat.c (openat_needs_fchdir): New function.
52430         * lib/openat.h (openat_needs_fchdir): Declare it.
52431
52432 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52433
52434         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52435         Problem and fix reported by Pádraig Brady in
52436         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52437
52438 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52439
52440         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52441
52442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52443
52444         * lib/memcoll.c (memcoll): Optimize for the common case where the
52445         arguments are bytewise equal.
52446
52447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         * doc/regexprops-generic.texi: Add a copyright notice.
52450
52451 2006-08-15  Bruno Haible  <bruno@clisp.org>
52452
52453         * modules/tmpdir (License): Change to LGPL.
52454
52455 2006-08-15  Bruno Haible  <bruno@clisp.org>
52456
52457         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52458         module.
52459
52460 2006-08-14  Simon Josefsson  <jas@extundo.com>
52461
52462         * config/srclist.txt: Add gnupload.
52463
52464 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52465
52466         Change copyright notice from LGPL 2 to GPL 2, since that's the
52467         standard form used in the gnulib repository.
52468         * tests/test-lock.c: Likewise.
52469         * tests/test-stdint.c: Likewise.
52470         * tests/test-tls.c: Likewise.
52471
52472         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52473         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52474         Add copyright notice.
52475
52476         * check-module: Add copyright notice.  Output a copyright
52477         notice if "--version" is specified.
52478         * modules/COPYING: New file.
52479         * tests/test-getaddrinfo.c: Add copyright notice.
52480         * tests/test-verify.c: Likewise.
52481
52482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52483
52484         Change copyright notice from LGPL 2 to GPL 2, since that's the
52485         standard form used in the gnulib repository.
52486         * lib/lock.c: LGPL -> GPL.
52487         * lib/lock.h: Likewise.
52488         * lib/strnlen1.c: Likewise.
52489         * lib/strnlen1.h: Likewise.
52490         * lib/tls.c: Likewise.
52491         * lib/tls.h: Likewise.
52492         * lib/tmpdir.c: Likewise.
52493
52494         * lib/TODO: Remove; this belongs only in coreutils.
52495
52496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         Add copyright notices to long-enough files that lack them, since
52499         otherwise the files aren't clearly free.  Use the same notice that
52500         getdate.texi already uses.
52501         * doc/alloca-opt.texi: Add copyright notice.
52502         * doc/alloca.texi: Likewise.
52503         * doc/ctime.texi: Likewise.
52504         * doc/functions.texi: Likewise.
52505         * doc/gcd.texi: Likewise.
52506         * doc/gnulib-tool.texi: Likewise.
52507         * doc/inet_ntoa.texi: Likewise.
52508         * doc/visibility.texi: Likewise.
52509
52510         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52511         * doc/quote.texi: Add copyright notice.
52512
52513         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52514         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52515         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52516         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52517         is now obsolete, and give a pointer to the Sun list.
52518         Add copyright notice.
52519
52520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52521
52522         * config/srclistvars.sh: Add copyright notice.
52523
52524 2006-08-14  Eric Blake  <ebb9@byu.net>
52525
52526         Import the following change from libc:
52527
52528         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52529
52530         Upstream bug 2997.
52531         * lib/misc/error.c: Add space between program name and message if file
52532         name is missing.
52533
52534 2006-08-12  Karl Berry  <karl@gnu.org>
52535
52536         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52537         remove, these originate in gnulib now.
52538
52539 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52540
52541         * doc/Makefile (standards.info standards.html standards.dvi):
52542         Also depend on make-stds.texi.
52543
52544 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52545
52546         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52547         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52548
52549         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52550         in wchar_t.  Problem reported by Eric Blake.
52551
52552         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52553         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52554         Also, help the compiler to keep LEN in a register.
52555
52556 2006-08-11  Eric Blake  <ebb9@byu.net>
52557
52558         * users.txt: Sort.  Add tar.
52559
52560 2006-08-11  Bruno Haible  <bruno@clisp.org>
52561
52562         * users.txt: New file.
52563
52564 2006-08-11  Bruno Haible  <bruno@clisp.org>
52565
52566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52567         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52568
52569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52570
52571         * modules/snprintf (Depends-on): Remove minmax.
52572         (Maintainer): Add self and Bruno.
52573
52574 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52575
52576         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52577         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52578         (EOVERFLOW): Define if the system does not.
52579         Do not include "minmax.h"; it wasn't used.
52580         (snprintf): Don't assume size_t promotes to an unsigned type.
52581         Fix bug when generated string was too long for the buffer: the
52582         buffer's contents are supposed to be the initial prefix of the
52583         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52584         exceeds INT_MAX; do the check ourselves.
52585
52586         Import the following changes from libc:
52587
52588         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52589
52590         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52591         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52592         set wc to the byte which couldn't be converted.
52593         (re_string_reconstruct): Don't clear valid_raw_len before calling
52594         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52595         tip_context using re_string_context_at.
52596
52597         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52598
52599         * lib/posix/regex.h: g++ still cannot handled [restrict].
52600
52601         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52602
52603         * lib/posix/regex.h: Remove special handling for VMS.
52604
52605 2006-08-10  Jim Meyering  <jim@meyering.net>
52606
52607         * modules/same-inode: New module.
52608         * modules/dev-ino: New module.
52609         * modules/cycle-check: Depend on these modules, rather than simply
52610         including their .h files.
52611         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52612         required via m4/cycle-check.m4.
52613         * modules/same: Depend on new same-inode module, rather than
52614         including same-inode.h.
52615         * modules/chdir-safer: New file.
52616
52617         * modules/chown (Depends-on): Add stat-macros.
52618
52619 2006-08-10  Jim Meyering  <jim@meyering.net>
52620
52621         * m4/cycle-check.m4: New file.
52622         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52623         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52624
52625 2006-08-10  Eric Blake  <ebb9@byu.net>
52626
52627         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52628         in from original proposal.
52629
52630 2006-08-10  Eric Blake  <ebb9@byu.net>
52631         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52632
52633         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52634         namespace.
52635
52636 2006-08-10  Bruno Haible  <bruno@clisp.org>
52637
52638         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52639         as well.
52640
52641 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52642
52643         Sync from coreutils.
52644
52645         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52646
52647         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52648         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52649
52650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52651
52652         * modules/restrict: Remove; no longer needed now that we assume
52653         Autoconf 2.59 or later.
52654         * MODULES.html.sh: Remove 'restrict'.
52655         * modules/argp (Depends-on): Remove 'restrict'.
52656         * modules/base64 (Depends-on): Likewise.
52657         * modules/gc (Depends-on): Likewise.
52658         * modules/getaddrinfo (Depends-on): Likewise.
52659         * modules/glob (Depends-on): Likewise.
52660         * modules/inet_ntop (Depends-on): Likewise.
52661         * modules/inet_pton (Depends-on): Likewise.
52662         * modules/memxor (Depends-on): Likewise.
52663         * modules/regex (Depends-on): Likewise.
52664         * modules/strtok_r (Depends-on): Likewise.
52665         * modules/time_r (Depends-on): Likewise.
52666
52667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52670         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52671         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52672         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52673         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52674         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52675         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52676         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52677
52678         Merge from coreutils.
52679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52680         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52682         * m4/time_r.m4 (gl_TIME_R): Likewise.
52683
52684 2006-08-09  Karl Berry  <karl@gnu.org>
52685
52686         * config/srclist.txt: no more gettext-tools, per Bruno.
52687
52688 2006-08-08  Eric Blake  <ebb9@byu.net>
52689
52690         * modules/verror: New module.
52691         * MODULES.html.sh: Document it.
52692
52693 2006-08-08  Eric Blake  <ebb9@byu.net>
52694
52695         * lib/verror.h, lib/verror.c: New files.
52696
52697 2006-08-08  Eric Blake  <ebb9@byu.net>
52698
52699         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52700         verror_at_line output complies with GNU Coding Standards even when
52701         file is NULL.
52702
52703 2006-08-07  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52706         versions of AIX.
52707         Reported by Ralf Wildenhues.
52708
52709 2006-08-07  Bruno Haible  <bruno@clisp.org>
52710
52711         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52712         in an AC_DEFUN. Needed so that the autoconf snippets can use
52713         AC_REQUIRE.
52714
52715 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52716
52717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52718         Initialize pkgdata_DATA.
52719         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52720         overriding it.
52721
52722 2006-08-06  Eric Blake  <ebb9@byu.net>
52723
52724         * lib/error.h: Fold in some upstream changes from glibc.
52725         * lib/error.c: Likewise.
52726
52727 2006-08-04  Bruno Haible  <bruno@clisp.org>
52728
52729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52730         Make the mostlyclean-local rule depend on mostlyclean-generic.
52731         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52732
52733 2006-07-31  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52736         <stdlib.h>, <string.h>.
52737
52738 2006-07-30  Bruno Haible  <bruno@clisp.org>
52739
52740         * modules/readlink (License): Change to LGPL.
52741
52742 2006-07-30  Bruno Haible  <bruno@clisp.org>
52743
52744         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52745         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52746         set PKGDATADIR to point to it.
52747
52748 2006-07-30  Bruno Haible  <bruno@clisp.org>
52749
52750         * modules/csharpexec (configure.ac): Comment out macro invocation.
52751         * modules/javaexec (configure.ac): Likewise.
52752         * modules/javacomp-script (configure.ac): Likewise.
52753
52754         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52755
52756 2006-07-30  Bruno Haible  <bruno@clisp.org>
52757
52758         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52759         linked-list.
52760
52761 2006-07-30  Bruno Haible  <bruno@clisp.org>
52762
52763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52764
52765 2006-07-30  Bruno Haible  <bruno@clisp.org>
52766
52767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52768         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52769         get removed.
52770
52771 2006-07-29  Bruno Haible  <bruno@clisp.org>
52772
52773         Make it possible for gnulib-tool to work with locally modified or
52774         augmented gnulib repositories.
52775         * gnulib-tool (func_usage): Document --local-dir option.
52776         (local_gnulib_dir): New variable.
52777         Handle --local-dir option.
52778         (func_lookup_file): New function.
52779         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52780         (func_get_description, func_get_filelist, func_get_description,
52781         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52782         func_get_automake_snippet, func_get_include_directive,
52783         func_get_license, func_get_maintainer): Use func_lookup_file.
52784         (func_import, func_create_testdir): Use func_lookup_file.
52785
52786 2006-07-29  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/setenv (Depends-on): Add unistd.
52789
52790 2006-07-29  Bruno Haible  <bruno@clisp.org>
52791
52792         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52793
52794 2006-07-29  Bruno Haible  <bruno@clisp.org>
52795
52796         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52797
52798 2006-07-29  Bruno Haible  <bruno@clisp.org>
52799
52800         * gnulib-tool (import, update): If there is no Makefile.am, look at
52801         aclocal.m4, instead of bailing out.
52802
52803 2006-07-29  Bruno Haible  <bruno@clisp.org>
52804
52805         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52806         Categorize the options by when they are useful.
52807
52808 2006-07-29  Bruno Haible  <bruno@clisp.org>
52809
52810         * gnulib-tool (func_usage): Document option --no-libtool.
52811         Handle option --no-libtool.
52812         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52813         for changed semantics of $libtool variable.
52814         (func_import): Likewise. If libtool is not used, show this through
52815         an option --no-libtool.
52816         (func_create_testdir): Update.
52817
52818 2006-07-29  Bruno Haible  <bruno@clisp.org>
52819
52820         * gnulib-tool (func_import): Extend error message about missing
52821         --doc-base.
52822
52823 2006-07-29  Bruno Haible  <bruno@clisp.org>
52824
52825         * gnulib-tool (func_import): Don't create the $docbase directory if
52826         there is no file to store there.
52827
52828 2006-07-29  Bruno Haible  <bruno@clisp.org>
52829
52830         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52831         relevant, look for configure.ac there, not in the current directory.
52832         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52833
52834 2006-07-29  Bruno Haible  <bruno@clisp.org>
52835
52836         * gnulib-tool (SORT): New variable.
52837         (func_usage): Undocument --assume-autoconf option.
52838         Remove --assume-autoconf option handling.
52839         (autoconf_minversion): Determine from the contents of configure.ac.
52840         (func_import): Remove autoconf_minversion handling.
52841         Suggested by Eric Blake.
52842
52843 2006-07-29  Bruno Haible  <bruno@clisp.org>
52844
52845         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52846
52847 2006-07-29  Bruno Haible  <bruno@clisp.org>
52848
52849         * config/srclist.txt (*setenv.[ch]): Remove rules.
52850
52851 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52852
52853         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52854
52855 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52856
52857         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52858         arpa/inet.h.
52859
52860 2006-07-28  Simon Josefsson  <jas@extundo.com>
52861
52862         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52863         * modules/inet_pton (Depends-on): Likewise.
52864
52865 2006-07-28  Simon Josefsson  <jas@extundo.com>
52866
52867         * m4/netinet_in_h.m4: New file.
52868
52869 2006-07-28  Simon Josefsson  <jas@extundo.com>
52870
52871         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52872         #include's.
52873
52874 2006-07-28  Simon Josefsson  <jas@extundo.com>
52875
52876         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52877         #include's.
52878
52879 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52880
52881         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52882         setgid on directories only if they set these bits.
52883         * lib/modechange.h: Remove obsolete comment about masks.
52884
52885 2006-07-28  Eric Blake  <ebb9@byu.net>
52886
52887         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52888         macro expansion.
52889
52890 2006-07-28  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52893
52894 2006-07-28  Bruno Haible  <bruno@clisp.org>
52895
52896         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52897
52898 2006-07-28  Bruno Haible  <bruno@clisp.org>
52899
52900         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52902         Define fallbacks.
52903         Avoids link error on FreeBSD 4.x.
52904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52905
52906         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52907         encoding.
52908         * lib/mbswidth.c (iswcntrl): Likewise.
52909
52910 2006-07-27  Bruno Haible  <bruno@clisp.org>
52911
52912         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52913         test.
52914
52915 2006-07-27  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52918         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52919         defined.
52920
52921 2006-07-26  Eric Blake  <ebb9@byu.net>
52922
52923         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52924
52925 2006-07-26  Eric Blake  <ebb9@byu.net>
52926
52927         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52928         like mingw that lack mkstemp.
52929         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52930         avoid compilation warning on mingw.
52931
52932 2006-07-26  Bruno Haible  <bruno@clisp.org>
52933
52934         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52935         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52936         INT_FAST*_MIN, INTPTR_MIN.
52937
52938 2006-07-25  Bruno Haible  <bruno@clisp.org>
52939
52940         * modules/version-etc (Depends-on): Add stdarg.
52941
52942 2006-07-25  Bruno Haible  <bruno@clisp.org>
52943
52944         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52945         complex commands.
52946
52947 2006-07-25  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52950         defined in <stdarg.h> or config.h.
52951
52952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52955         (gl_STDIO_SAFER): Remove.
52956
52957 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * MODULES.html.sh (File stream based Input/Output):
52960         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52961         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52962         * modules/fopen-safer, modules/tmpfile-safer: New files.
52963         * modules/stdio-safer: Remove.
52964
52965 2006-07-24  Bruno Haible  <bruno@clisp.org>
52966
52967         * modules/tmpdir: New file.
52968         * MODULES.html.sh (File system functions): Add it.
52969
52970 2006-07-24  Bruno Haible  <bruno@clisp.org>
52971
52972         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52973         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52974
52975 2006-07-24  Bruno Haible  <bruno@clisp.org>
52976
52977         * modules/clean-temp: New file.
52978
52979 2006-07-24  Bruno Haible  <bruno@clisp.org>
52980
52981         * m4/tmpdir.m4: New file, from GNU gettext.
52982
52983 2006-07-24  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/tmpdir.h: New file, from GNU gettext.
52986         * lib/tmpdir.c: New file, from GNU gettext.
52987
52988 2006-07-24  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/clean-temp.h: New file, from GNU gettext.
52991         * lib/clean-temp.c: New file, from GNU gettext.
52992
52993 2006-07-23  Eric Blake  <ebb9@byu.net>
52994
52995         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52996         (Depends-on): Add binary-io.
52997
52998 2006-07-23  Eric Blake  <ebb9@byu.net>
52999
53000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53001
53002 2006-07-23  Eric Blake  <ebb9@byu.net>
53003
53004         * lib/tmpfile-safer.c: New file.
53005         * lib/stdio-safer.h (fopen_safer): Add prototype.
53006         * lib/stdio--.h (tmpfile): Make safer.
53007
53008 2006-07-23  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53011         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53012         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53013         gl_linked_remove_at): Use it.
53014
53015 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53016         and Simon Josefsson <jas@extundo.com>
53017
53018         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53019
53020         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53021
53022 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53023
53024         * modules/close-stream: New file.
53025         * modules/closeout (Description): Make it clear that it exits
53026         with a diagnostic on error.
53027         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53028         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53029
53030 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * m4/close-stream.m4: New file.
53033
53034 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * lib/close-stream.c, lib/close-stream.h: New files.
53037
53038 2006-07-22  Bruno Haible  <bruno@clisp.org>
53039
53040         Merge from GNU gettext 0.15.
53041
53042         2006-05-01  Bruno Haible  <bruno@clisp.org>
53043
53044                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53045
53046         2006-07-22  Bruno Haible  <bruno@clisp.org>
53047
53048                 * modules/javaversion: New file.
53049                 * MODULES.html.sh (Java): Add javaversion.
53050
53051         2006-03-12  Bruno Haible  <bruno@clisp.org>
53052
53053                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53054
53055         2005-12-04  Bruno Haible  <bruno@clisp.org>
53056
53057                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53058                 (untested).
53059
53060         2006-06-21  Bruno Haible  <bruno@clisp.org>
53061
53062                 Avoid warnings from recent versions of mcs.
53063                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53064                 -o, -L, -r any more. Use options documented since mcs-1.0
53065                 instead. Similarly for -g.
53066
53067         2005-12-04  Bruno Haible  <bruno@clisp.org>
53068
53069                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53070                 .resources, not .resource.
53071
53072         2005-07-09  Bruno Haible  <bruno@clisp.org>
53073
53074                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53075                 add a .dll suffix.
53076                 Reported by Mark Junker <mjscod@gmx.de>.
53077
53078         2006-07-22  Bruno Haible  <bruno@clisp.org>
53079
53080                 * modules/gettext: Upgrade to gettext-0.15.
53081                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53082                 m4/visibility.m4.
53083                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53084
53085 2006-07-22  Bruno Haible  <bruno@clisp.org>
53086
53087         Merge from GNU gettext 0.15.
53088
53089         2006-03-25  Bruno Haible  <bruno@clisp.org>
53090
53091                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53092
53093         2006-07-21  Bruno Haible  <bruno@clisp.org>
53094
53095                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53096                 "1.1".
53097
53098         2006-05-09  Bruno Haible  <bruno@clisp.org>
53099
53100                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53101                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53102                 for the conftestver execution.
53103
53104         2006-05-01  Bruno Haible  <bruno@clisp.org>
53105
53106                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53107                 optional target-version argument. Verify that the compiler
53108                 groks source of the specified source-version, or add -source
53109                 option as necessary. Verify that the compiler produces
53110                 bytecode in the specified target-version, or add -target and
53111                 -source options as necessary. Make the result of the test
53112                 available as variable CONF_JAVAC. Also log error output in
53113                 config.log.
53114
53115         2006-03-11  Bruno Haible  <bruno@clisp.org>
53116
53117                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53118
53119         2006-05-09  Bruno Haible  <bruno@clisp.org>
53120
53121                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53122                 CLASSPATH_SEPARATOR to a semicolon.
53123
53124         2006-03-12  Bruno Haible  <bruno@clisp.org>
53125
53126                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53127                 available as variable CONF_JAVA, for subsequent autoconf
53128                 tests. Also log error output in config.log.
53129
53130         2006-07-19  Bruno Haible  <bruno@clisp.org>
53131
53132                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53133                 that getline works on glibc2 systems. Needed to avoid trouble
53134                 in relocatable.c.
53135                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53136
53137         2005-12-04  Bruno Haible  <bruno@clisp.org>
53138
53139                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53140                 launcher (untested).
53141
53142         2005-12-04  Bruno Haible  <bruno@clisp.org>
53143
53144                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53145
53146         2006-07-22  Bruno Haible  <bruno@clisp.org>
53147
53148                 * gettext.m4: Update from GNU gettext-0.15.
53149                 * nls.m4: Likewise.
53150                 * po.m4: Likewise.
53151                 * inttypes-pri.m4: Likewise.
53152                 * inttypes-h.m4: Renamed from inttypes.m4.
53153                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53154
53155 2006-07-22  Bruno Haible  <bruno@clisp.org>
53156
53157         Merge from GNU gettext 0.15.
53158
53159         2005-07-05  Bruno Haible  <bruno@clisp.org>
53160
53161                 * printf-args.c (printf_fetchargs): Work around broken
53162                 definition of wint_t on mingw.
53163
53164         2005-02-12  Bruno Haible  <bruno@clisp.org>
53165
53166                 * xallocsa.h: Add extern "C" for C++.
53167
53168         2006-05-17  Bruno Haible  <bruno@clisp.org>
53169
53170                 Cygwin portability.
53171                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53172
53173         2006-04-30  Bruno Haible  <bruno@clisp.org>
53174
53175                 * progreloc.c: Include <mach-o/dyld.h> if available.
53176                 (find_executable): Use _NSGetExecutablePath when possible.
53177
53178         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53179
53180                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53181                 function.
53182
53183         2005-12-29  Bruno Haible  <bruno@clisp.org>
53184
53185                 * progreloc.c (set_program_name_and_installdir): Fix
53186                 compilation error.
53187
53188         2005-12-04  Bruno Haible  <bruno@clisp.org>
53189
53190                 Cygwin portability.
53191                 * progreloc.c: Include <windows.h> also on Cygwin.
53192                 (find_executable): Add support for Cygwin.
53193                 (set_program_name_and_installdir): Handle also platforms with
53194                 nonempty EXEEXT.
53195
53196         2006-07-11  Bruno Haible  <bruno@clisp.org>
53197
53198                 * javacomp.c: Fix a comment.
53199                 Reported by Jim Meyering.
53200
53201         2006-04-30  Bruno Haible  <bruno@clisp.org>
53202
53203                 * javacomp.h (compile_java_class): Add source_version,
53204                 target_version arguments.
53205                 * javacomp.c: Rewritten to choose only a compiler that
53206                 respects the specified source_version and target_version.
53207
53208         2006-06-27  Bruno Haible  <bruno@clisp.org>
53209
53210                 Assume correct S_ISDIR macro.
53211                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53212
53213         2006-07-22  Bruno Haible  <bruno@clisp.org>
53214
53215                 * javaversion.h: New file, from GNU gettext.
53216                 * javaversion.c: New file, from GNU gettext.
53217                 * javaversion.java: New file, from GNU gettext.
53218                 * javaversion.class: New file, from GNU gettext.
53219
53220         2006-05-17  Bruno Haible  <bruno@clisp.org>
53221
53222                 Cygwin portability.
53223                 * javaexec.c (execute_java_class): Test for jview program
53224                 also on Cygwin.
53225
53226         2006-04-09  Bruno Haible  <bruno@clisp.org>
53227
53228                 * fatal-signal.c: Don't include string.h.
53229                 (at_fatal_signal): Use a copying loop instead of memcpy.
53230
53231         2005-12-04  Bruno Haible  <bruno@clisp.org>
53232
53233                 * csharpexec.c: Add support for 'clix' launcher (untested).
53234                 (execute_csharp_using_sscli): New function.
53235                 (execute_csharp_program): Call it.
53236
53237         2006-06-21  Bruno Haible  <bruno@clisp.org>
53238
53239                 Avoid warnings from recent versions of mcs.
53240                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53241                 -o, -L, -r any more. Use options documented since mcs-1.0
53242                 instead. Similarly for -g.
53243
53244         2005-07-09  Bruno Haible  <bruno@clisp.org>
53245
53246                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53247                 add a .dll suffix.
53248                 Reported by Mark Junker <mjscod@gmx.de>.
53249
53250         2006-06-17  Bruno Haible  <bruno@clisp.org>
53251
53252                 * config.charset: Update for NetBSD 3.0.
53253
53254         2006-05-17  Bruno Haible  <bruno@clisp.org>
53255
53256                 Cygwin portability.
53257                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53258
53259         2006-05-16  Bruno Haible  <bruno@clisp.org>
53260
53261                 * localcharset.c [CYGWIN]: Include <windows.h>.
53262                 (get_charset_aliases): For Cygwin, return the same CPxxx
53263                 aliases list as under WIN32.
53264                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53265                 the environment variables. Fall back to GetACP().
53266
53267         2006-04-05  Bruno Haible  <bruno@clisp.org>
53268
53269                 * config.charset: Update Juan Manuel Guerrero's address.
53270
53271         2005-02-12  Bruno Haible  <bruno@clisp.org>
53272
53273                 * allocsa.h: Add extern "C" for C++.
53274
53275         2005-02-10  Bruno Haible  <bruno@clisp.org>
53276
53277                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53278                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53279
53280         2006-07-22  Bruno Haible  <bruno@clisp.org>
53281
53282                 * gettext.h: Update to GNU gettext-0.15.
53283
53284 2006-07-22  Bruno Haible  <bruno@clisp.org>
53285
53286         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53287         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53288         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53289
53290 2006-07-21  Eric Blake  <ebb9@byu.net>
53291
53292         * modules/stdlib-safer: New file.
53293         * MODULES.html.sh (File stream based Input/Output): Add
53294         stdlib-safer.
53295
53296 2006-07-21  Eric Blake  <ebb9@byu.net>
53297
53298         * lib/stdlib-safer.h: New file from coreutils, required by
53299         stdlib--.h.
53300
53301 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53304
53305 2006-07-20  Bruno Haible  <bruno@clisp.org>
53306
53307         * gnulib-tool: Recognize new option --assume-autoconf.
53308         (autoconf_minversion): New variable.
53309         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53310
53311 2006-07-20  Bruno Haible  <bruno@clisp.org>
53312
53313         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53314
53315 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53316
53317         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53318         Reindent and repaginate.
53319
53320 2006-07-19  Derek Price  <derek@ximbiot.com>
53321
53322         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53323         Correct grammar.
53324
53325 2006-07-17  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/list: New file.
53328         * modules/array-list: New file.
53329         * modules/carray-list, modules/carray-list-tests: New files.
53330         * modules/linked-list, modules/linked-list-tests: New files.
53331         * modules/avltree-list, modules/avltree-list-tests: New files.
53332         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53333         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53334         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53335         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53336         * modules/oset: New file.
53337         * modules/array-oset: New file.
53338         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53339         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53340         * tests/test-carray_list.c: New file.
53341         * tests/test-linked_list.c: New file.
53342         * tests/test-avltree_list.c: New file.
53343         * tests/test-rbtree_list.c: New file.
53344         * tests/test-linkedhash_list.c: New file.
53345         * tests/test-avltreehash_list.c: New file.
53346         * tests/test-rbtreehash_list.c: New file.
53347         * tests/test-avltree_oset.c: New file.
53348         * tests/test-rbtree_oset.c: New file.
53349         * MODULES.html.sh (Container data structures): New section.
53350
53351 2006-07-17  Bruno Haible  <bruno@clisp.org>
53352
53353         * m4/gl_list.m4: New file.
53354
53355 2006-07-17  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/gl_list.h: New file.
53358         * lib/gl_list.c: New file.
53359         * lib/gl_array_list.h: New file.
53360         * lib/gl_array_list.c: New file.
53361         * lib/gl_carray_list.h: New file.
53362         * lib/gl_carray_list.c: New file.
53363         * lib/gl_linked_list.h: New file.
53364         * lib/gl_linked_list.c: New file.
53365         * lib/gl_anylinked_list1.h: New file.
53366         * lib/gl_anylinked_list2.h: New file.
53367         * lib/gl_avltree_list.h: New file.
53368         * lib/gl_avltree_list.c: New file.
53369         * lib/gl_anyavltree_list1.h: New file.
53370         * lib/gl_anyavltree_list2.h: New file.
53371         * lib/gl_rbtree_list.h: New file.
53372         * lib/gl_rbtree_list.c: New file.
53373         * lib/gl_anyrbtree_list1.h: New file.
53374         * lib/gl_anyrbtree_list2.h: New file.
53375         * lib/gl_anytree_list1.h: New file.
53376         * lib/gl_anytree_list2.h: New file.
53377         * lib/gl_linkedhash_list.h: New file.
53378         * lib/gl_linkedhash_list.c: New file.
53379         * lib/gl_anyhash_list1.h: New file.
53380         * lib/gl_anyhash_list2.h: New file.
53381         * lib/gl_avltreehash_list.h: New file.
53382         * lib/gl_avltreehash_list.c: New file.
53383         * lib/gl_rbtreehash_list.h: New file.
53384         * lib/gl_rbtreehash_list.c: New file.
53385         * lib/gl_anytreehash_list1.h: New file.
53386         * lib/gl_anytreehash_list2.h: New file.
53387
53388         * lib/gl_oset.h: New file.
53389         * lib/gl_oset.c: New file.
53390         * lib/gl_array_oset.h: New file.
53391         * lib/gl_array_oset.c: New file.
53392         * lib/gl_avltree_oset.h: New file.
53393         * lib/gl_avltree_oset.c: New file.
53394         * lib/gl_rbtree_oset.h: New file.
53395         * lib/gl_rbtree_oset.c: New file.
53396         * lib/gl_anytree_oset.h: New file.
53397
53398 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         * m4/mkancesdirs.m4: New file.
53401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53402         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53403         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53404         it.
53405
53406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53407
53408         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53409         * lib/mkancesdirs.h: New files.
53410         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53411         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53412         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53413         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53414         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53415         callers changed.  Revamp internals significantly, by not
53416         attempting to create directories that are temporarily more
53417         permissive than the final results.  Do not attempt to use
53418         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53419         This removes some race conditions, fixes some bugs, and simplifies
53420         things.  Use new dirchownmod function to do owner and mode changes.
53421         * lib/mkdir-p.h: Likewise.
53422         * lib/modechange.c (octal_to_mode): New function.
53423         (struct mode_change): New member mentioned.
53424         (make_node_op_equals): New arg mentioned.  All callers changed.
53425         (mode_compile): Keep track of which mode bits the user has explicitly
53426         mentioned.
53427         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53428         New arg PMODE_BITS, to keep track of which mode bits the user
53429         mentioned; it treats S_ISUID and S_ISGID speciall.
53430         All callers changed.
53431         * lib/modechange.h: Likewise.
53432
53433 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53434
53435         * MODULES.html.sh: Add mkancestors.
53436         * modules/mkancesdirs: New module.
53437         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53438         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53439         The chdir-safer and afs files are now orphans; I'll remove them
53440         unless someone speaks up.
53441         Add lib/dirchownmod.c, lib/dirchownmod.h.
53442         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53443         Add lchown, mkancesdirs.
53444         (Maintainer): Add self.
53445
53446 2006-07-15  Karl Berry  <karl@gnu.org>
53447
53448         * gnulib-tool: help message wording/arrangement.
53449
53450 2006-07-14  Simon Josefsson  <jas@extundo.com>
53451
53452         * doc/gnulib.texi (Libtool and Windows): New section.
53453
53454 2006-07-12  Simon Josefsson  <jas@extundo.com>
53455
53456         * modules/gendocs (License): Fix license, approved by Karl.
53457
53458 2006-07-12  Eric Blake  <ebb9@byu.net>
53459
53460         * MODULES.html.sh: Add gendocs.
53461
53462 2006-07-11  Eric Blake  <ebb9@byu.net>
53463
53464         * modules/fdl: New module, to install doc/fdl.texi.
53465         * MODULES.html.sh: Add new section for documentation modules.
53466         * gnulib-tool: Avoid space-tab.
53467         (--doc-base): New option, to manage files from doc.
53468
53469 2006-07-11  Eric Blake  <ebb9@byu.net>
53470
53471         * m4/absolute-header.m4: Fix comments to match recent change.
53472
53473 2006-07-11  Eric Blake  <ebb9@byu.net>
53474
53475         * gnulib-tool: List --doc-base before --tests-base.
53476
53477 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53478
53479         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53480
53481 2006-07-11  Bruno Haible  <bruno@clisp.org>
53482
53483         * README: Mention where to put documentation.
53484
53485 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53486
53487         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53488
53489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53492         to stdint.m4.
53493
53494 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53495
53496         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53497         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53498         "no/such/file/stdint.h" when there is no such file, so that
53499         the resulting C code can be parsed by dodgy compilers.
53500         Problems reported by Bob Proulx.
53501
53502 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53503
53504         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53505         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53506         macros into the GNU _D_EXACT_NAMLEN.
53507         * lib/savedir.c:  Likewise.
53508         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53509
53510 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53511         and Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53514         * m4/savedir.m4:
53515         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53516         macros into the GNU _D_EXACT_NAMLEN.
53517
53518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53521         around the absolute name, to work around a problem with the HP-UX
53522         11.23 native C compiler, reported by Bob Proulx.
53523
53524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         * doc/maintain.texi, make-stds.texi: Sync from
53527         <http://savannah.gnu.org/projects/gnustandards>.
53528
53529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53530
53531         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53532
53533 2006-07-09  Jim Meyering  <jim@meyering.net>
53534
53535         * m4/glob.m4: Remove a doubled word in a comment.
53536
53537 2006-07-09  Jim Meyering  <jim@meyering.net>
53538
53539         * lib/argp-pv.c: Remove a doubled word in a comment.
53540         * lib/check-version.c (check_version): Likewise.
53541         * lib/javacomp.c (compile_java_class): Likewise.
53542
53543 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53544
53545         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53546         for the benefit of people using Autoconf 2.60.  If you want to
53547         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53548         (or m4/onceonly.m4, if pre-2.57) manually.
53549
53550 2006-07-08  Jim Meyering  <jim@meyering.net>
53551
53552         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53553         comment.
53554         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53555         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53556         comment.
53557
53558 2006-07-08  Jim Meyering  <jim@meyering.net>
53559
53560         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53561
53562 2006-07-07  Simon Josefsson  <jas@extundo.com>
53563
53564         * tests/test-crc.c: Change expected crc value, the test vector
53565         were probably computed using the old broken crc.c?
53566
53567 2006-07-06  Simon Josefsson  <jas@extundo.com>
53568
53569         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53570         now the canonical place for the M4 file).
53571
53572         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53573         from the sys_socket dependency now.
53574
53575         * modules/inet_pton (Files): Ditto.
53576
53577         * modules/inet_ntop (Files): Ditto.
53578
53579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53580
53581         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53582         not gl_PREREQ_GETUSERSHELL.
53583
53584 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53585
53586         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53587         with only one argument, for Autoconf 2.60.
53588         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53589         expand to nothing, so add a shell command to avoid syntax error.
53590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53591
53592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53593
53594         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53595
53596 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53597
53598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53599         no longer needed.  Check for isblank decl.
53600         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53601         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53602         of existence.
53603
53604 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * lib/getloadavg.c: Use __VMS, not VMS.
53607         * lib/getopt.c: Likewise.
53608         * lib/getpagesize.h: Likewise.
53609         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53610         and probably does not work.
53611
53612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53613
53614         * lib/.cppi-disable: Add wcwidth.
53615         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53616         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53617         (ISGRAPH): Remove.  All uses changed to isgraph.
53618         (FOLD) [!defined _LIBC]: Remove special case.
53619         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53620         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53621         HAVE_ISBLANK.
53622         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53623         case.
53624
53625 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53626
53627         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53628         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53629         brackets.  Other minor changes to suppress some compiler
53630         warnings.
53631
53632 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53633         and Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53636         of invoking obsolescent AC_HEADER_DIRENT macro.
53637         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53638         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53641         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53642         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53643         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53644         * m4/readdir.m4: Remove; no longer needed.
53645
53646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53647         and Paul Eggert  <eggert@cs.ucla.edu>
53648
53649         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53650         Don't worry about this obsolete case any more.
53651         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53652         directories.
53653         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53654         worry about this obsolete case any more.
53655         * lib/fts.c: Likewise.
53656         * lib/getcwd.c: Likewise.
53657         * lib/glob.h: Likewise.
53658         * lib/savedir.c: Likewise.
53659
53660 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53661
53662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53663         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53664         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53665         needed.
53666         All uses removed.
53667         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53668         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53669         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53670         needed.
53671         * m4/getdate.m4 (gl_GETDATE): Likewise.
53672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53673         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53674         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53675         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53676         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53678         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53679         needed.
53680
53681 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * lib/memcasecmp.c: Include <limits.h>.
53684         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53685         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53686         Don't assume isdigit succeeds only on '0' through '9'.
53687
53688 2006-07-05  Eric Blake  <ebb9@byu.net>
53689
53690         * modules/getaddrinfo (Depends-on): Add snprintf.
53691
53692 2006-07-05  Eric Blake  <ebb9@byu.net>
53693
53694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53695         to avoid 'header present but could not be compiled' on cygwin.
53696
53697 2006-07-05  Eric Blake  <ebb9@byu.net>
53698
53699         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53700         missing from netdb.h.
53701         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53702
53703 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53704
53705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53706         no longer needed.
53707         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53708         * m4/getdate.m4 (gl_GETDATE): Likewise.
53709         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53710         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53711         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53712         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53714
53715 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53716
53717         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53718         All uses of is_space replaced by isspace.
53719         * lib/exit.h: Don't talk about STDC_HEADERS.
53720         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53721         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53722         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53723         replaced by isprint etc.
53724         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53725         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53726         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53727         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53728         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53729         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53730
53731 2006-07-05  Bruno Haible  <bruno@clisp.org>
53732
53733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53734         the function exists, before testing against AIX.
53735         Reported by Martin Lambers <marlam@marlam.de>.
53736
53737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53738
53739         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53740         From Mark D. Baushke.
53741
53742 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53745         to the absolute name, not just one, to bypass Sun C 5.8's
53746         "warning: #include of /usr/include/... may be non-portable".
53747
53748 2006-07-04  Eric Blake  <ebb9@byu.net>
53749
53750         * modules/dirname-tests: New test module.
53751         * tests/test-dirname.c: New file, replacing dirname.c
53752         TEST_DIRNAME section that was recently deleted.
53753
53754 2006-07-04  Bruno Haible  <bruno@clisp.org>
53755
53756         Assume ANSI C header files and <ctype.h> functions.
53757         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53758         (mbsnwidth): Use isprint, iscntrl instead.
53759
53760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         Merge from coreutils.
53763         * MODULES.html.sh: Add xstrtold.
53764         * modules/xstrtold: New file.
53765         * modules/cycle-check (Files): Add lib/same-inode.h.
53766         * modules/dirname (Files): Add m4/double-slash-root.m4.
53767         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53768         * modules/mkdir-p (Files): Add lib/same-inode.h.
53769         * modules/same (Files): Add lib/same-inode.h.
53770
53771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53774         This is to keep the terminology clean; POSIX talks about
53775         "absolute pathnames", not "full pathnames", but the GNU
53776         Coding Standards say to use "path" for something else;
53777         so use "absolute" to keep both sides happy.
53778         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53779         Set gl_absolute_header, not gl_full_header_path.
53780         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53781         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53782         All uses changed.
53783
53784         Merge from coreutils.
53785
53786         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53787
53788         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53789         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53790         want to require the building of c-strtod.o.
53791         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53792         needs -lm directly.
53793         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53794
53795         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53796
53797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53798         --as-needed option if available.  Problem reported by Albert Chin in
53799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53800         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53801         cc merely issues a bunch of annoying warnings for --as-needed
53802         (this problem was reported by Bob Proulx).  Also, try linking with
53803         -lm to detect a bug in binutils 2.16 (this problem was reported
53804         by Ralf Wildenhues).
53805
53806         2006-06-18  Jim Meyering  <jim@meyering.net>
53807
53808         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53810         macro.
53811         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53812         also check for glibc-2.4's abort-inducing bug.
53813
53814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53815         Low-probability clean-up should be to use rmdir to get rid of
53816         the just-created directory, not unlink.
53817
53818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53819         configure fail, and request a bug report to inform us about it.
53820         Add a comment that, barring reports to the contrary, in 2007 we'll
53821         assume ftruncate is universally available.
53822
53823         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53826
53827         2006-03-12  Jim Meyering  <jim@meyering.net>
53828
53829         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53831         * m4/same.m4 (gl_SAME): Likewise.
53832         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53833
53834         2006-03-11  Eric Blake  <ebb9@byu.net>
53835
53836         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53837         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53838         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53839         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53840
53841 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53842
53843         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53844         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53845         reported by Mark D. Baushke, one in
53846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53847
53848         Merge from coreutils.
53849
53850         * lib/.cppi-disable: Add stdint_.h.
53851         * lib/.cvsignore: Add stdint.h.
53852
53853         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53856         both double and long double versions.
53857         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53858         * lib/xstrtold.c: New file.
53859         * lib/xstrtod.h (xstrtold): New decl.
53860
53861         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * lib/filemode.c (setst): Remove.
53864         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53865         (arguably) clearer, and the generated code is a bit smaller on my
53866         Debian GNU/Linux stable x86 host.
53867
53868         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53871         Assume that filemode.h includes sys/types.h and sys/stat.h.
53872         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53873         (ftypelet): Reorder to put common cases first, for efficiency.
53874         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53875         to do 'M'.
53876         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53877         of 10, for compatibility with FreeBSD.  All callers changed.
53878         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53879         types that can't be deduced solely from st_mode.  First arg is now a
53880         const pointer.
53881         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53882         (strmode): Renamed from mode_string.
53883         (filemodestring): New decl.
53884         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53885         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53886         needed.
53887         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53888
53889         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53892         fsusage.h now does that.  Include fsusage.h first, to test interface.
53893         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53894         at most one method (the old code could have generated decls that
53895         didn't conform to C89, not that this was ever exercised).
53896         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53897
53898         2006-03-19  Jim Meyering  <jim@meyering.net>
53899
53900         Work even in a chroot where d_ino values for entries in "/"
53901         don't match the stat.st_ino values for the same names.
53902         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53903         number, iterate through all entries again, using lstat instead.
53904         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53905         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53906
53907         * lib/getcwd.c (__getcwd): Clarify a comment.
53908         Use memcpy in place of a call to strcpy.
53909
53910         2006-03-12  Jim Meyering  <jim@meyering.net>
53911
53912         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53913         matches that of the current directory (which we're about to chdir ".."
53914         out of), then save the dev-ino of the parent, instead.
53915
53916         * lib/same-inode.h (SAME_INODE): New file/macro.
53917         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53918         Include "same-inode.h", instead.
53919         * lib/same.c: Likewise.
53920         * lib/cycle-check.h: Include "same-inode.h".
53921         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53922         * lib/cycle-check.c (SAME_INODE): Remove definition.
53923         * lib/root-dev-ino.h: Include "same-inode.h".
53924
53925         2006-03-11  Eric Blake  <ebb9@byu.net>
53926
53927         * lib/same.c (same_name): s/base_name/last_component/
53928         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53929         * lib/filenamecat.c (file_name_concat): Likewise.
53930
53931         2006-03-11  Eric Blake  <ebb9@byu.net>,
53932                     Paul Eggert  <eggert@cs.ucla.edu>
53933
53934         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53935         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53936         drive prefix.
53937         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53938         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53939         (last_component): New method.
53940         * lib/dirname.c (dir_len): Determine when drive letters need a
53941         subsequent slash.  Preserve // when it is special.
53942         (dir_name): Don't append dot when drive letter is absolute.
53943         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53944         * lib/basename.c (base_name): New semantics - malloc the result.
53945         Preserve // when it is special.  Preserve relative files that look
53946         like drive letters.
53947         (base_len): Preserve // when it is special.
53948         (last_component): New method, similar to old base_name semantics.
53949         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53950         base_name.  Strip redundant slashes from ///.
53951
53952 2006-07-03  Jim Meyering  <jim@meyering.net>
53953
53954         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53955         macro is used before the first cycle_check call.
53956
53957 2006-07-03  Eric Blake  <ebb9@byu.net>
53958
53959         * modules/dirname (Depends-on): Add xstrndup.
53960
53961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53964         test cases, so that config.log is a bit easier to follow.
53965
53966 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53967
53968         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53969         both are 64 bits, since this seems to be the tradition, and this
53970         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53971         we ever run into a host that prefers long long to long in this
53972         case, we'll need another configure-time test.  Problem reported by
53973         Jim Meyering.
53974
53975 2006-07-02  Eric Blake  <ebb9@byu.net>
53976
53977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53978
53979 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53980
53981         * modules/inttypes (Depends-on): No longer depends on stdint.
53982         * modules/stdint (Description): Say more about assumptions.
53983         Say that the fast types might differ.  Say macros are used.
53984         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53985         (Makefile.am): Revise list of substituted symbols to match
53986         new stdint.m4.
53987         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53988         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53989         * tests/test-stdint.c (verify_same_types)
53990         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53991         the code conforms to C99/C89.
53992         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53993         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53994
53995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53996
53997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53998         but fix a bug, by requiring at least 64 bits.
53999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54000         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54001         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54002         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54003
54004         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54005         changes.  Make 2.59 a prerequisite.  Check and substitute for
54006         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54007         inttypes.h.  Do not use special include files; just use the
54008         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54009         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54010         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54011         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54012         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54013         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54014         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54015         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54016         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54017         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54018         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54019         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54020         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54021         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54022         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54023         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54024         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54025         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54026         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54027         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54028         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54029         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54030         not check for things that C99 does not require, e.g., int8_t.  If
54031         a test isn't needed unless <stdint.h> isn't working, and is
54032         unlikely to be needed for any other reason, then don't do it
54033         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54034         size_t, since we assume C89 freestanding at least.  Do not check
54035         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54036         the right thing even if the types are not defined.  Instead use:
54037         (gl_STDINT_TYPE_PROPERTIES): New macro.
54038         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54039         testing whether <sys/types.h> clashes, as Autoconf does this for
54040         us now.  All uses removed.
54041         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54042         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54043         (gl_CHECK_TYPE_SAME):
54044         Remove; no longer needed.
54045         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54046         exists, since we'll return 0 anyway in that case.
54047         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54048
54049 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54052         possible collision with system files.
54053         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54054         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54055         WCHAR_MIN and WCHAR_MAX in this case.
54056         (<stddef.h>): Do not include; no longer needed.
54057         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54058         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54059         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54060         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54061         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54062         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54063         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54064         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54065         !defined(__c99))]: Include in this case too, since it's harmless
54066         now.
54067         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54068         dangerous to do so.
54069         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54070         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54071         (_STDINT_MIN, _STDINT_MAX): New macros.
54072         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54073         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54074         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54075         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54076         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54077         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54078         macros, not typedefs; this simplifies things quite a bit.
54079         Use long int for all types narrower than int64_t.
54080         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54081         Define in terms of long long int or int64_t or long int,
54082         not int64_t or int32_t.  This saves some compile-time testing.
54083         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54084         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54085         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54086         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54087         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54088         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54089         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54090         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54091         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54092         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54093         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54094         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54095         undef any previous version and define our own version, for
54096         simplicity and consistency with the new macros for types.
54097         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54098         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54099         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54100         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54101         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54102         @WINT_T_SUFFIX@ to keep things simple here.
54103         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54104         Simplify by assuming typical 8/16/32/64 host, since we're
54105         already doing that elsewhere anyway.
54106         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54107         and assume long long int is 64 bits if available.  This
54108         speeds up 'configure'.
54109
54110 2006-07-01  Eric Blake  <ebb9@byu.net>
54111
54112         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54113         Reported by Andreas Buening.
54114
54115 2006-07-01  Eric Blake  <ebb9@byu.net>
54116
54117         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54118
54119 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54120
54121         * lib/getaddrinfo.c: fixed typo
54122
54123 2006-06-29  Jim Meyering  <jim@meyering.net>
54124
54125         * modules/strftime (Maintainer): Add my name, since with the
54126         FPRINTFTIME changes strftime.c has forked from glibc.
54127
54128 2006-06-29  Eric Blake  <ebb9@byu.net>
54129
54130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54131
54132 2006-06-29  Eric Blake  <ebb9@byu.net>
54133
54134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54135
54136 2006-06-29  Eric Blake  <ebb9@byu.net>
54137
54138         * lib/stat_.h: New file.
54139
54140 2006-06-29  Eric Blake  <ebb9@byu.net>
54141
54142         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54143         unused static function.
54144
54145 2006-06-29  Eric Blake  <ebb9@byu.net>
54146
54147         * doc/functions.texi (Function Portability): Document missing lstat
54148         on mingw.
54149
54150 2006-06-29  Eric Blake  <ebb9@byu.net>
54151
54152         * MODULES.html.sh: Add sys_stat.
54153         * modules/sys_stat: New module.
54154         * modules/mkstemp (Depends-on): Add sys_stat.
54155
54156 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54157
54158         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54159
54160 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54161
54162         * m4/c-bs-a.m4: Removed.
54163
54164 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54165
54166         * lib/strftime.c: Assume strftime() exists.
54167
54168 2006-06-29  Derek Price  <derek@ximbiot.com>
54169
54170         * modules/c-bs-a: Removed - \a is C89.
54171         * MODULES.html.sh: Remove c-bs-a.
54172
54173 2006-06-29  Bruno Haible  <bruno@clisp.org>
54174
54175         * modules/wcwidth (License): Change to LGPL.
54176
54177 2006-06-28  Simon Josefsson  <jas@extundo.com>
54178
54179         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54180         on _WIN32.
54181
54182         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54183         getnameinfo.
54184
54185 2006-06-28  Simon Josefsson  <jas@extundo.com>
54186
54187         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54188
54189 2006-06-28  Simon Josefsson  <jas@extundo.com>
54190
54191         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54192         functions there.  It will succeed on Windows XP, but on Windows
54193         2000 and (presumably) earlier, it will fail, and use the internal
54194         re-implementation.
54195         (use_win32_p): New function.
54196         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54197         Support AI_NUMERICSERV to disable getservbyname.
54198         (getnameinfo): New function, only supports
54199         NI_NUMERICHOST|NI_NUMERICSERV for now.
54200
54201         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54202         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54203         getnameinfo.
54204
54205 2006-06-28  Eric Blake  <ebb9@byu.net>
54206
54207         * modules/wcwidth: New file.
54208         * modules/mbchar (Depends-on): Add wcwidth.
54209         * modules/mbswidth (Depends-on): Add wcwidth.
54210         * MODULES.html.sh: Add wcwidth.
54211
54212 2006-06-28  Eric Blake  <ebb9@byu.net>
54213
54214         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54216
54217 2006-06-28  Eric Blake  <ebb9@byu.net>
54218
54219         * lib/xvasprintf.h: Fix comments.
54220
54221 2006-06-28  Eric Blake  <ebb9@byu.net>
54222
54223         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54224         * lib/mbswidth.c (wcwidth): Move from here...
54225         * lib/wcwidth.h: ...to this new file.
54226
54227 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54228
54229         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54230
54231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54232         it's obsolete.
54233         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54234
54235 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54236
54237         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54238         Autoconf 2.60 says this stuff was obsolete.
54239
54240 2006-06-28  Bruno Haible  <bruno@clisp.org>
54241
54242         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54243
54244 2006-06-28  Bruno Haible  <bruno@clisp.org>
54245
54246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54247         gt_TYPE_WCHAR_T.
54248
54249 2006-06-28  Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54252         declaration for wcwidth.
54253         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54254
54255 2006-06-28  Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54258         (mkdir): Define using _mkdir.
54259
54260 2006-06-28  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/getaddrinfo.h: Fix POSIX URL.
54263         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54264         _WIN32.
54265         (use_win32_p): Make static.
54266         (getaddrinfo): Reject service name if it is empty or does not consist
54267         solely of decimal digits, or if its value is > 65535.
54268         (getnameinfo): Remove useless casts.
54269
54270 2006-06-27  Simon Josefsson  <jas@extundo.com>
54271
54272         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54273         Eggert and Martin Lambers.
54274
54275 2006-06-27  Simon Josefsson  <jas@extundo.com>
54276
54277         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54278         Eggert and Martin Lambers.
54279
54280 2006-06-27  Bruno Haible  <bruno@clisp.org>
54281
54282         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54283         result to 0, not to empty.
54284         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54285
54286 2006-06-27  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54289
54290 2006-06-26  Simon Josefsson  <jas@extundo.com>
54291
54292         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54293         present.
54294
54295 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54296
54297         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54298         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54300
54301 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54302
54303         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54304
54305 2006-06-26  Bruno Haible  <bruno@clisp.org>
54306
54307         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54308
54309 2006-06-26  Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54312
54313 2006-06-26  Bruno Haible  <bruno@clisp.org>
54314
54315         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54316         SGI C compiler in pre-C99 mode.
54317         Suggested by Mark D. Baushke and Larry Jones.
54318
54319 2006-06-26  Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54322         WCHAR_MAX.
54323         Reported by Mark D. Baushke and Larry Jones.
54324
54325 2006-06-26  Bruno Haible  <bruno@clisp.org>
54326
54327         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54328         in pre-C99 mode.
54329         Suggested by Mark D. Baushke and Larry Jones.
54330
54331 2006-06-23  Simon Josefsson  <jas@extundo.com>
54332             Bruno Haible  <bruno@clisp.org>
54333
54334         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54335         Emit mostlyclean-local rule.
54336         (func_emit_tests_Makefile_am): Likewise.
54337         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54338
54339 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54340
54341         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54342
54343 2006-06-23  Bruno Haible  <bruno@clisp.org>
54344
54345         * tests/test-stdint.c: Update to match ISO C 99 Technical
54346         Corrigendum 1.
54347
54348 2006-06-23  Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54351
54352 2006-06-23  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/stdint_.h: Treat IRIX like OpenBSD.
54355
54356 2006-06-23  Bruno Haible  <bruno@clisp.org>
54357
54358         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54359         ISO C 99 Technical Corrigendum 1.
54360
54361 2006-06-22  Simon Josefsson  <jas@extundo.com>
54362
54363         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54364         MinGW.
54365
54366 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54369         needed.  Some compiler complained about some of them.  Problem reported
54370         by Larry Jones in
54371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54372
54373 2006-06-21  Simon Josefsson  <jas@extundo.com>
54374
54375         * tests/test-getaddrinfo.c: New file.
54376
54377         * modules/getaddrinfo-tests: New file.
54378
54379         * MODULES.html.sh: Add inet_pton.
54380
54381         * modules/inet_pton: New file.
54382
54383 2006-06-21  Simon Josefsson  <jas@extundo.com>
54384
54385         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54386         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54387         of using the (limited) gnulib implementation on Windows XP.
54388
54389         * m4/inet_pton.m4: New file.
54390
54391 2006-06-21  Simon Josefsson  <jas@extundo.com>
54392
54393         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54394         variable.
54395
54396         * lib/socket_.h: Don't define WINVER.
54397
54398         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54399         slightly modified to work in gnulib.
54400
54401 2006-06-21  Simon Josefsson  <jas@extundo.com>
54402
54403         * doc/gnulib.texi (Windows sockets): Add.
54404
54405 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         * lib/read-file.c (fread_file): Start with buffer allocation of
54408         0 bytes rather than 1 byte; this simplifies the code.
54409         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54410         code to free buffer and save/restore errno.
54411         (internal_read_file): Remove unused local.
54412
54413 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54414
54415         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54416         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54417         Problem reported by Denis Excoffier in
54418         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54419
54420 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54421
54422         * modules/sys_socket, modules/socklen: Include sys/types since
54423         FreeBSD 4.x's sys/socket.h needs it.
54424
54425 2006-06-19  Simon Josefsson  <jas@extundo.com>
54426
54427         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54428
54429 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54432
54433 2006-06-19  Bruno Haible  <bruno@clisp.org>
54434
54435         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54436         and FULL_PATH_INTTYPES_H in angle brackets.
54437         Reported by Mark D. Baushke <mdb@gnu.org>.
54438
54439 2006-06-17  Eric Blake  <ebb9@byu.net>
54440
54441         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54442         errno.
54443
54444 2006-06-17  Bruno Haible  <bruno@clisp.org>
54445
54446         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54447         <sys/inttypes.h>.
54448
54449 2006-06-17  Bruno Haible  <bruno@clisp.org>
54450
54451         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54452         whether errno is declared. Assume <errno.h> declares errno.
54453
54454 2006-06-17  Bruno Haible  <bruno@clisp.org>
54455
54456         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54457
54458 2006-06-17  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54461         problem on Solaris 2.5.1.
54462
54463 2006-06-16  Eric Blake  <ebb9@byu.net>
54464
54465         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54466         * lib/unicodeio.c [!defined errno]: Likewise.
54467         * lib/strtol.c [!defined errno]: Likewise.
54468         * lib/strtod.c [!defined errno]: Likewise.
54469
54470 2006-06-15  Eric Blake  <ebb9@byu.net>
54471
54472         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54473
54474 2006-06-15  Eric Blake  <ebb9@byu.net>
54475
54476         * config/srclist.txt (ssize_t.m4): Lose sync.
54477
54478 2006-06-15  Bruno Haible  <bruno@clisp.org>
54479
54480         * modules/stdint (Files): Include m4/full-header-path.m4,
54481         m4/size_max.m4, m4/wchar_t.m4.
54482         (Makefile.am): Many more substitutions.
54483         * modules/stdint-tests: New file.
54484         * tests/test-stdint.c: New file.
54485
54486 2006-06-15  Bruno Haible  <bruno@clisp.org>
54487
54488         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54489         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54490         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54491         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54492         gl_CHECK_TYPE_SAME): New macros.
54493
54494 2006-06-15  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54497
54498 2006-06-15  Bruno Haible  <bruno@clisp.org>
54499
54500         * lib/stdint_.h: Rewritten to be fully auto-configured.
54501         Fixes bug on HP-UX/IA64.
54502
54503 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * lib/getdate.y (__attribute__): Don't define if already defined.
54506         Problem reported by Larry Jones.
54507         * lib/utimens.c (__attribute__): Likewise.
54508
54509 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54512         reported by Andreas Schwab.
54513
54514 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54515             Bruno Haible  <bruno@clisp.org>
54516
54517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54518         check for the declaration of strnlen and a run test that exposes the
54519         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54520         rpl_strndup.
54521
54522 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54523             Bruno Haible  <bruno@clisp.org>
54524
54525         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54526
54527 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54528
54529         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54530         compile test, for Tru64 4.0D.
54531
54532 2006-05-28  Karl Berry  <karl@gnu.org>
54533
54534         * config/srclist.txt (printf-args.c): lose sync.
54535
54536 2006-05-26  Martin Lambers  <marlam@marlam.de>
54537
54538         * lib/getpass.c: Updates the test for the native W32 API, and adds
54539         missing includes, thus fixing compilation warnings.
54540
54541 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54542
54543         * lib/exclude.c (exclude_fnmatch): New function.
54544         (excluded_file_name): Call exclude_fnmatch.
54545         * lib/exclude.h (excluded_file_name): New prototype
54546
54547 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * lib/tempname.c (small_open, large_open): New macros.
54550         (__open, __open64) [!_LIBC]: Remove.
54551         (__gen_tempname): Use small_open and large_open instead of __open
54552         and __open64.  This fixes a portability bug on HP-UX 11.11i
54553         reported by Simon Wing-Tang in
54554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54555
54556 2006-05-24  Bruno Haible  <bruno@clisp.org>
54557
54558         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54559         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54560         Reported by Thorsten Maerz <torte@netztorte.de> via
54561         Aaron Stone <aaron@serendipity.cx>.
54562
54563 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54566         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54567         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54568         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54569         not really conditional on the cache.
54570         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54571
54572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54573
54574         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54575         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54576         (my_usleep): Don't mishandle maximum value.
54577
54578 2006-05-19  Jim Meyering  <jim@meyering.net>
54579
54580         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54581
54582 2006-05-17  Bruno Haible  <bruno@clisp.org>
54583
54584         Cygwin portability.
54585         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54586
54587 2006-05-17  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/stdint_.h: Fix recognition of Cygwin.
54590
54591 2006-05-15  Bruno Haible  <bruno@clisp.org>
54592
54593         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54594         on libtool patch by Ralf Wildenhues.
54595
54596 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54597
54598         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54599         test for C99 conformance; (bool) 0.5 is an integer constant
54600         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54601         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54602
54603 2006-05-11  Simon Josefsson  <jas@extundo.com>
54604
54605         * m4/xvasprintf.m4: Fix obvious typo.
54606
54607 2006-05-11  Jim Meyering  <jim@meyering.net>
54608
54609         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54610         James Lemley.
54611
54612 2006-05-10  Simon Josefsson  <jas@extundo.com>
54613
54614         * lib/md4.c: Typo fix, update copyright years.
54615         (K1, K2): Don't use L because it turn computations into 64-bit on
54616         64-bit platforms.
54617
54618 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54621         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54622         unwanted sign propagation, e.g., on hosts with 64-bit int.
54623         There still are some problems with reeelly weird theoretical hosts
54624         (e.g., 33-bit int) but it's not worth worrying about now.
54625         * lib/sha1.c (rol): Likewise.
54626         (K1, K2, K3, K4): Remove unnecessary L suffix.
54627
54628 2006-05-10  Bruno Haible  <bruno@clisp.org>
54629
54630         * lib/des.c: Cast to avoid warnings.
54631
54632 2006-05-09  Bruno Haible  <bruno@clisp.org>
54633
54634         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54635         (Depends-on): Depend also on xsize, stdarg.
54636         (configure.ac): Add gl_XVASPRINTF.
54637
54638 2006-05-09  Bruno Haible  <bruno@clisp.org>
54639
54640         * m4/xvasprintf.m4: New file.
54641
54642 2006-05-09  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54645         (EOVERFLOW): Define fallback value.
54646         (xstrcat): New function.
54647         (xvasprintf): Recognize the special case of a string concatenation.
54648
54649 2006-05-08  Eric Blake  <ebb9@byu.net>
54650
54651         * gnulib-tool (func_version): Base copyright year on CVS date.
54652         (func_emit_copyright_notice): New function.
54653         (func_emit_lib_Makefile_am): Use it.
54654         (func_emit_tests_Makefile_am): Likewise.
54655         (func_import): Likewise.
54656
54657 2006-05-08  Bruno Haible  <bruno@clisp.org>
54658
54659         * modules/stdarg: New file.
54660         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54661
54662 2006-05-08  Bruno Haible  <bruno@clisp.org>
54663
54664         * m4/stdarg.m4: New file, from GNU gettext.
54665
54666 2006-05-08  Bruno Haible  <bruno@clisp.org>
54667
54668         * config/srclist.txt (build-aux/config.rpath): different from latest
54669         release.
54670
54671 2006-05-08  Bruno Haible  <bruno@clisp.org>
54672
54673         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54674
54675 2006-05-05  Jim Meyering  <jim@meyering.net>
54676
54677         * m4/warning.m4: New file, derived from bison's file by the same name.
54678
54679 2006-05-03  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/stdint_.h: Shorter URL.
54682         * lib/inttypes.h: Likewise.
54683
54684 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54687
54688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         * lib/verify.h: Document the internals better.  Most of this change
54691         was written by Bruno Haible.
54692
54693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54694
54695         * doc/verify.texi: New file, partly based on a proposal by
54696         Bruno Haible.
54697
54698 2006-05-02  Bruno Haible  <bruno@clisp.org>
54699
54700         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54701         test from here...
54702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54703
54704 2006-04-29  Bruno Haible  <bruno@clisp.org>
54705
54706         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54707         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54708
54709 2006-04-29  Bruno Haible  <bruno@clisp.org>
54710
54711         * gnulib-tool: Make --update option actually work.
54712
54713 2006-04-29  Bruno Haible  <bruno@clisp.org>
54714
54715         * doc/gcd.texi: New file.
54716         * doc/gnulib.texi: Include it.
54717
54718 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         * lib/getdate.y (get_date): When adding relative date, start with the
54721         initial time, not with the result of the first mktime call.
54722
54723 2006-04-25  Bruno Haible  <bruno@clisp.org>
54724
54725         * gnulib-tool (func_import): Output the include directives in three
54726         blocks, sorted separately.
54727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54728
54729 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54732         to define main with arguments, for C++.  Reported by Eric Blake.
54733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54734         Prefer 'int main ()' to 'int main (void)', for C++.
54735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54737         for 'main', for C99 and C++.
54738
54739 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54740
54741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54742         Don't assume that exit status -1 is valid.
54743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54744         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54745         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54746         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54747         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54749         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54750         functions can be used without declaring them, or that you can
54751         exit with status -1.
54752         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54753
54754 2006-04-24  Karl Berry  <karl@gnu.org>
54755
54756         * config/srclist.txt (longdouble.m4): sync lost.
54757
54758 2006-04-24  Eric Blake  <ebb9@byu.net>
54759
54760         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54761
54762 2006-04-24  Bruno Haible  <bruno@clisp.org>
54763
54764         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54765         poll() implementation in AIX.
54766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54767
54768 2006-04-24  Bruno Haible  <bruno@clisp.org>
54769
54770         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54771         assigned exactly once.
54772
54773 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54774             Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54777         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54778         for AM_CPPFLAGS.
54779
54780 2006-04-23  Bruno Haible  <bruno@clisp.org>
54781
54782         * modules/copy-file: Depend on unistd.
54783         * modules/execute: Likewise.
54784         * modules/fatal-signal: Likewise.
54785         * modules/findprog: Likewise.
54786         * modules/mkdtemp : Likewise.
54787         * modules/pipe: Likewise.
54788         * modules/wait-process: Likewise.
54789
54790 2006-04-23  Bruno Haible  <bruno@clisp.org>
54791
54792         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54793         condition was already detected.
54794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54795
54796 2006-04-23  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/copy-file.c: Include <unistd.h> unconditionally.
54799         * lib/execute.c: Likewise.
54800         * lib/fatal-signal.c: Likewise.
54801         * lib/findprog.c: Likewise.
54802         * lib/mkdtemp.c: Likewise.
54803         * lib/pipe.h: Likewise.
54804         * lib/pipe.c: Likewise.
54805         * lib/wait-process.h: Likewise.
54806
54807 2006-04-23  Bruno Haible  <bruno@clisp.org>
54808
54809         * gnulib-tool (func_usage): Fix --import description. Document
54810         --update.
54811         (func_import): Create temporary file in a temporary directory, if
54812         --dry-run is specified. Silence errors from 'grep' when there are no
54813         m4 files in $m4dir.
54814         (func_create_testdir): Silence errors from 'grep' when there are no
54815         m4 files in $m4dir.
54816         Reported by Karl Berry <karl@freefriends.org>.
54817
54818 2006-04-20  Bruno Haible  <bruno@clisp.org>
54819
54820         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54821         one argument, so that the code will be portable to Autoconf 2.60.
54822         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54824         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54825
54826 2006-04-19  Derek Price  <derek@ximbiot.com>
54827             Eric Blake  <ebb9@byu.net>
54828
54829         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54830         rather than "/full/path.h".  Update comment to match.  Shorten &
54831         generalize m4_translit call via AS_TR_CPP.
54832
54833 2006-04-19  Derek Price  <derek@ximbiot.com>
54834             Eric Blake  <ebb9@byu.net>
54835
54836         * lib/inttypes.h: Correct grammar in comment.
54837
54838 2006-04-18  Derek Price  <derek@ximbiot.com>
54839             Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * modules/inttypes: New file.
54842         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54843
54844 2006-04-18  Derek Price  <derek@ximbiot.com>
54845             Paul Eggert  <eggert@cs.ucla.edu>
54846
54847         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54848         New files.
54849
54850 2006-04-18  Derek Price  <derek@ximbiot.com>
54851             Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         * lib/inttypes.h: New file.
54854         * lib/strtoimax.c: Assume <inttypes.h>.
54855
54856 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54859         isn't mounted.  Problem reported by Kir Kolyshkin.
54860
54861 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54864         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54865         Derek R. Price.
54866         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54867         implementation.
54868
54869 2006-04-12  Eric Blake  <ebb9@byu.net>
54870
54871         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54872         is now done automatically by the corresponding Autoconf macro.
54873
54874 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54875
54876         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54877         time_r.h.
54878
54879 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54880
54881         Merge regex changes from libc, removing some of our
54882         POSIX-conformance changes that were rejected and redoing them in a
54883         less-intrusive way.
54884
54885         * lib/regcomp.c (re_compile_internal, init_dfa):
54886         Length arg is now size_t, not Idx.  All uses changed.
54887         (peek_token): Forward decl now says internal_function.
54888         (__re_error_msgid, __re_error_msgid_idx):
54889         Now static rather than extern with attribute_hidden.
54890         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54891         For some reason libc prefers K&R style defns for external functions.
54892         (regerror) [!defined _LIBC]: Likewise.
54893         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54894         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54895         (build_range_exp, build_collating_symbol):
54896         Use K&R-style defn.
54897         (re_compile_fastmap): Use '\0' to memset, not 0.
54898         (utf8_sb_map): Make the calculations more obvious.
54899         (init_dfa, parse_bracket_exp, build_charclass_op):
54900         Call calloc and cast result, as glibc does.
54901         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54902         (build_range_exp, build_collating_symbol):
54903         Now internal functions.
54904
54905         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54906
54907         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54908         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54909         Don't depend on VMS; depend on __VMS instead, for POSIX
54910         namespace cleanness.
54911         (regoff_t): Define to ssize_t, not long int.
54912
54913         Remove the REG_ macros named below.  Instead, make the old names
54914         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54915         __USE_GNU_REGEX.
54916         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54917         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54918         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54919         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54920         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54921         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54922         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54923         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54924         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54925         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54926         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54927         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54928         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54929         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54930         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54931         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54932         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54933         (REG_NREGS):
54934         Remove.  All uses replaced by the old RE_* names.
54935         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54936         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54937         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54938         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54939         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54940         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54941         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54942         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54943         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54944         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54945         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54946         Don't bother having these macros be independent of each others'
54947         values, since they no longer exist in the POSIX name space.
54948
54949         Rename the following member names back to their old names,
54950         unless !__USE_GNU_REGEX.  All uses changed back.
54951         (buffer): Renamed from re_buffer.
54952         (allocated): Renamed from re_allocated.
54953         (used): Renamed from re_used.
54954         (syntax): Renamed from re_syntax.
54955         (fastmap): Renamed from re_fastmap.
54956         (translate): Renamed from re_translate.
54957         (can_be_null): Renamed from re_can_be_null.
54958         (regs_allocated): Renamed from re_regs_allocated.
54959         (fastmap_accurate): Renamed from re_fastmap_accurate.
54960         (no_sub): Renamed from re_no_sub.
54961         (not_bol): Renamed from re_not_bol.
54962         (not_eol): Renamed from re_not_eol.
54963         (newline_anchor): Renamed from re_newline_anchor.
54964         (num_regs): Renamed from rm_num_regs.
54965         (start): Renamed from rm_start.
54966         (end): Renamed from rm_end.
54967
54968         (free_state): Move up a bit.
54969
54970         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54971         #define to be empty.
54972         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54973         when that is what is intended.
54974         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54975         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54976         (MAX): New macro.
54977         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54978         All uses changed back to re_malloc, etc.  It's now the caller's
54979         responsibility to check for overflow; all callers changed.
54980         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54981         (re_x2nrealloc): Remove.
54982         (free_state): Remove decl.
54983
54984         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54985         (re_set_registers, re_exec):
54986         Use K&R-style defn.
54987
54988         2006-01-31  Roland McGrath  <roland@redhat.com>
54989
54990         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54991         Reported by Mike Frysinger <vapier@gentoo.org>.
54992
54993         2006-01-15  Andreas Jaeger  <aj@suse.de>
54994
54995         [BZ #1950]
54996         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54997         build_wcs_upper_buffer change.
54998         (build_wcs_upper_buffer): Change return type.
54999
55000         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55001
55002         * lib/regex_internal.h: Include <stdint.h> if available.
55003
55004         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55005
55006         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55007
55008         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55009
55010         * lib/regcomp.c: Adjust for changed secondary hash function.
55011
55012         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55013
55014         * lib/regex.h: Pretty printing.
55015         Clean up namespace a bit.
55016
55017         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55018
55019         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55020         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55021
55022         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55023                     Ulrich Drepper  <drepper@redhat.com>
55024
55025         [BZ #1302]
55026         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55027         changed.
55028         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55029
55030         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55031
55032         [BZ #281]
55033         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55034         * lib/regcomp.c: Remove unnecessary uses of
55035         unsigned RE_TRANSLATE_TYPE.
55036         * lib/regex_internal.h: Likewise.
55037         * lib/regex_internal.c: Likewise.
55038         * lib/regexec.c: Likewise.
55039         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55040
55041         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55042
55043         * lib/regexec.c (find_recover_state): Remove unnecessary
55044         initialization.
55045         (transit_state_bkref): Make DFA a const pointer.
55046         (get_subexp): Likewise.
55047         (check_arrival): Likewise.
55048         (update_cur_sifted_state): Likewise.
55049         (re_search_internal): Likewise.
55050         (prune_impossible_nodes): Likewise.
55051         (acquire_init_state_context): Likewise.
55052         (proceed_next_node): Likewise.
55053         (set_regs): Likewise.
55054         (free_fail_stack_return): Likewise.
55055         (check_arrival_expand_ecl): Mark DFA parameter as const.
55056         (check_arrival_expand_ecl_sub): Likewise.
55057         (check_subexp_limits): Likewise.
55058         (sub_epsilon_src_nodes):  Likewise.
55059         (add_epsilon_src_nodes):  Likewise.
55060         (merge_state_array): Likewise.
55061         (update_regs): Likewise.
55062         (build_trtable): Likewise.
55063         (sift_states_backward): Mark MCTX parameter as const.
55064         (build_sifted_states): Likewise.
55065         (update_cur_sifted_state): Likewise.
55066         (sift_states_mkref): Likewise.
55067         (check_arrival_expand_ecl): Mark eclosure as const.
55068         (check_dst_limits_calc_pos_1): Likewise.
55069         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55070         pointer.
55071
55072         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55073
55074         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55075         (transit_state_sb): Likewise.
55076         (transit_state_mb): Likewise.
55077         (sift_states_iter_mb): Likewise.
55078         (check_arrival_add_next_nodes): Likewise.
55079         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55080         [_LIBC] (re_search_2_stub): Use mempcpy.
55081
55082         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55083         mbrtowc for very simple UTF-8 case.
55084
55085         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55086         a pointer-to-const.
55087         (re_acquire_state_context): Likewise.
55088         * lib/regex_internal.h: Adjust prototypes.
55089
55090         * lib/regex.c: Prevent using C++ compilers.
55091
55092         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55093         (re_acquire_state_context): Likewise.
55094
55095 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * modules/regex (Depends-on): Add ssize_t.
55098
55099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55102         translation table.
55103
55104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55107
55108 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55109             Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55112         <sys/types.h> and <inttypes.h>.
55113
55114 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55115
55116         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55117         `__error_t_defined', so argp.h will not typedef the former.
55118
55119 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55122         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55123         glibc names.  Even if glibc is changed to conform to POSIX, the
55124         traditional names will be available anyway, since regex depends on
55125         the extensions module.  Also, fix a longstanding typo in the
55126         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55127         reported by Emanuele Giaquinta.  Also, change sense of cached
55128         variable, so that the message makes sense.
55129
55130 2006-03-24  Simon Josefsson  <jas@extundo.com>
55131
55132         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55133         including some doc fixes.
55134         (base64_encode_alloc): Fix +1 bug on allocation failures.
55135
55136 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55137
55138         * lib/base64.c (base64_encode): Do not read past end of array with
55139         unsanitized input on systems with CHAR_BIT > 8.
55140
55141 2006-03-24  Eric Blake  <ebb9@byu.net>
55142
55143         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55144
55145 2006-03-22  Karl Berry  <karl@gnu.org>
55146
55147         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55148         * config/srclistvars.sh (COREUTILS): new var.
55149
55150 2006-03-17  Jim Meyering  <jim@meyering.net>
55151
55152         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55153         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55154
55155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55158         no longer needs it.  Instead, check that regoff_t is as least
55159         as wide as ptrdiff_t.
55160
55161         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55162         so that our regex.h stays compatible with the installed regex.
55163         This is helpful for installers who configure --without-included-regex.
55164         Problem reported by Emanuele Giaquinta.
55165
55166 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55167
55168         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55169         Typedef to long int, not to off_, as POSIX will likely change
55170         in that direction.
55171
55172 2006-03-15  Eric Blake  <ebb9@byu.net>
55173
55174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55175
55176 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55177
55178         * lib/argp-help.c (validate_uparams): Fix typo
55179         * lib/argp-parse.c (argp_default_options): Consistently begin help
55180         messages with a lowercase letter.
55181
55182 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55185         overrun buffers and shouldn't be used (much as gets shouldn't be
55186         used).
55187         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55188
55189 2006-03-08  Simon Josefsson  <jas@extundo.com>
55190
55191         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55192         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55193
55194 2006-03-08  Simon Josefsson  <jas@extundo.com>
55195
55196         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55197         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55198
55199 2006-03-08  Simon Josefsson  <jas@extundo.com>
55200
55201         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55202         signal that configure disabled the device.
55203
55204 2006-03-08  Simon Josefsson  <jas@extundo.com>
55205
55206         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55207         languages.
55208
55209 2006-03-07  Simon Josefsson  <jas@extundo.com>
55210
55211         * modules/getopt (Depends-on): Add unistd.
55212
55213         * modules/unistd: New file.
55214
55215 2006-03-07  Simon Josefsson  <jas@extundo.com>
55216
55217         * modules/gc-random: New file.
55218
55219 2006-03-07  Simon Josefsson  <jas@extundo.com>
55220
55221         * m4/unistd_h.m4: New file.
55222
55223 2006-03-07  Simon Josefsson  <jas@extundo.com>
55224
55225         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55226         test to be side-effect free by storing the result in the cache
55227         variable gl_cv_lib_readline, and moving the assignment of
55228         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55229         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55230
55231 2006-03-07  Simon Josefsson  <jas@extundo.com>
55232
55233         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55234         error on missing devices (the functions will return an error).
55235
55236         * m4/gc.m4: Move random stuff to gc-random.m4
55237
55238 2006-03-07  Simon Josefsson  <jas@extundo.com>
55239
55240         * lib/unistd_.h: New file.
55241
55242 2006-03-07  Simon Josefsson  <jas@extundo.com>
55243
55244         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55245
55246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55247
55248         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55249         Problem reported by Juan Manuel Guerrero.
55250
55251 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55252
55253         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55254         the unistd module.
55255         * lib/getlogin_r.c: Likewise.
55256         * lib/getlogin_r.h: Likewise.
55257         * lib/glob.c: Likewise.
55258         * lib/pagealign_alloc.c: Likewise.
55259         * lib/unistd_.h: Remove; no longer needed.
55260
55261 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55262
55263         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55264         Add unistd.
55265         * modules/c-stack (Depends-on): Add unistd.
55266         * modules/getlogin_r: Likewise.
55267         * modules/glob: Likewise.
55268         * modules/pagealign_alloc: Likewise.
55269         * modules/unistd (Files): Remove lib/unistd_.h.
55270         (EXTRA_DIST): Remove.
55271         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55272         need unistd_.h.
55273         (MOSTLYCLEANFILES): Remove unistd.h-t.
55274
55275 2006-03-03  Simon Josefsson  <jas@extundo.com>
55276
55277         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55278
55279 2006-03-03  Simon Josefsson  <jas@extundo.com>
55280
55281         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55282         libidn and bison.
55283
55284 2006-03-03  Simon Josefsson  <jas@extundo.com>
55285
55286         * build-aux/maint.mk: Add indent target.
55287
55288 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55289
55290         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55291         our replacement poll.h in any case, to avoid a differing
55292         declaration from a system header.  Seen on AIX.
55293
55294 2006-03-01  Simon Josefsson  <jas@extundo.com>
55295
55296         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55297         <kasal@ucw.cz>.
55298
55299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * modules/gettime (Depends-on): Add extensions module.
55302         * modules/nanosleep (Depends-on): Likewise.
55303         * modules/settime (Depends-on): Likewise.
55304
55305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55306
55307         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55308         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55309         pedantically.
55310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55311         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55312
55313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55314         not "==".  Reported by Ralf Wildenhues.
55315
55316 2006-03-01  Karl Berry  <karl@gnu.org>
55317
55318         * doc/Copyright/request-*: new files, synced from gnuorg.
55319
55320 2006-03-01  Karl Berry  <karl@gnu.org>
55321
55322         * config/srclist.txt (Copyright/*): new entries.
55323
55324 2006-02-28  Simon Josefsson  <jas@extundo.com>
55325
55326         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55327
55328 2006-02-27  Simon Josefsson  <jas@extundo.com>
55329
55330         * lib/base64.h: Indent #define's.  From Jim Meyering
55331         <jim@meyering.net>.
55332
55333 2006-02-27  Jim Meyering  <jim@meyering.net>
55334
55335         Revert the change of 2006-02-24, so these files can continue
55336         to be sync'd from gettext.
55337         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55338         of `config.h'.
55339
55340 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * modules/intprops: New file.
55343         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55344         Add intprops.
55345         * modules/getloadavg (Files): Remove lib/intprops.h.
55346         (Depends-on): Add intprops.
55347         * modules/human: Likewise.
55348         * modules/inttostr: Likewise.
55349         * modules/openat: Likewise.
55350         * modules/sig2str: Likewise.
55351         * modules/userspec: Likewise.
55352         * modules/utimecmp: Likewise.
55353         * modules/xnanosleep: Likewise.
55354         * modules/xstrtol: Likewise.
55355
55356 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55357
55358         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55359         * modules/lock-tests (TESTS): Use $(EXEEXT).
55360         * modules/tls-tests: Likewise.
55361         * modules/argp-tests: Likewise.
55362         (check_PROGRAMS): New var, replacing...
55363         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55364
55365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55366
55367         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55368         `config.h'.
55369
55370 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55371
55372         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55373
55374 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55375
55376         Sync from coreutils.
55377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55378         gl_CHDIR_SAFER.
55379
55380 2006-02-22  Jim Meyering  <jim@meyering.net>
55381
55382         Sync from coreutils.
55383         * m4/chdir-safer.m4: New file.
55384
55385 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55388         AT_FDCWD exceeds INT_MAX.
55389         * lib/openat.h (AT_FDCWD): Likewise.
55390
55391 2006-02-17  Eric Blake  <address@hidden>
55392
55393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55394
55395 2006-02-16  Simon Josefsson  <jas@extundo.com>
55396
55397         * modules/getaddrinfo (Depends-on): Add sys_socket.
55398
55399 2006-02-15  Simon Josefsson  <jas@extundo.com>
55400
55401         * build-aux/maint.mk: Add dsyntax-check rule.
55402
55403 2006-02-15  Eric Blake  <ebb9@byu.net>
55404
55405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55406         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55407         'present but cannot compile' warnings on cygwin.
55408         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55409         use ws2tcpip.h if sys/socket.h works.
55410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55411         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55412
55413 2006-02-14  Simon Josefsson  <jas@extundo.com>
55414
55415         * modules/maintainer-makefile (Files): Rename.
55416
55417         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55418         and (the local) Makefile.cfg to maint-cfg.mk.
55419
55420         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55421         to the latter.
55422
55423         * modules/maintainer-makefile: New module.
55424
55425         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55426         severaly stripped to make it possible to build it up from scratch
55427         with reliable tests.
55428
55429         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55430         fixes to permit overriding the default actions when configure and
55431         makefile are not available.
55432
55433 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55434
55435         Sync from coreutils.
55436         * modules/lstat (Depends-on): Don't depend on xalloc.
55437         (License): Change from GPL to LGPL, since this is now simply a
55438         replacement for a libc function.
55439
55440 2006-02-14  Jim Meyering  <jim@meyering.net>
55441
55442         Sync from coreutils.
55443
55444         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55445         failure on deficient systems, and simplify gnulib lgpl dependencies.
55446         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55447         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55448
55449         * lib/xalloc-die.c: Remove unused definition of N_.
55450
55451 2006-02-14  Jim Meyering  <jim@meyering.net>
55452
55453         Sync from coreutils.
55454         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55455         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55456         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55457         double-quote uses of that variable, to accommodate the rare case in
55458         which getmntent is available in none of the libraries checked.  This
55459         happens at least on FreeBSD 5.0.
55460
55461 2006-02-13  Simon Josefsson  <jas@extundo.com>
55462
55463         * gnulib-tool (Usage): Fix --import, from
55464         karl@freefriends.org (Karl Berry).
55465
55466 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55467
55468         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55469
55470 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55471
55472         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55473         "autoupdate" on 2005-12-12.
55474
55475 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55476
55477         * modules/closeout (Depends-on): Remove atexit.
55478
55479 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55482         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55483
55484 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55487         __EXTENSIONS__ if this causes compilation to fail.  Problem
55488         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55489         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55490
55491 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55492
55493         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55494         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55496         All uses changed.
55497
55498 2006-01-26  Simon Josefsson  <jas@extundo.com>
55499
55500         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55501         prototype is visible on mingw32.
55502
55503         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55504         for mingw32.
55505
55506         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55507         mingw32).
55508
55509 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55510
55511         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55512         attempt to open for write; this always fails, at least on POSIX
55513         hosts.  This reinstates the 2006-01-09 change, which was
55514         inadvertently removed.
55515
55516 2006-01-26  Bruno Haible  <bruno@clisp.org>
55517
55518         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55519         Reported by Paul Eggert.
55520
55521 2006-01-26  Bruno Haible  <bruno@clisp.org>
55522             Paul Eggert  <eggert@cs.ucla.edu>
55523
55524         * lib/stdbool_.h (_Bool)
55525         [(! (defined __cplusplus || defined __BEOS__)
55526           && !defined __GNUC__
55527           && !(defined __HP_cc || defined __xlc__
55528                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55529                || defined __sgi))]:
55530         #define to signed char in these cases too; this simplifies
55531         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55532         etc., separately) and makes it more conservative.
55533
55534 2006-01-25  Simon Josefsson  <jas@extundo.com>
55535
55536         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55537         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55538         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55539
55540 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55541
55542         * lib/argp-namefrob.h: Bugfix. Remove stray #
55543
55544 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55545
55546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55547         so that we test the test.
55548         Check for yet another HP-UX cc bug involving *bool |= bool.
55549
55550 2006-01-25  Karl Berry  <karl@gnu.org>
55551
55552         * config/srclist.txt (vasnprintf.c): sync lost.
55553
55554 2006-01-25  Jim Meyering  <jim@meyering.net>
55555
55556         Sync from the stable (b5) branch of coreutils:
55557
55558         * lib/fts.c (fts_children): Don't let close() clobber errno from
55559         failed fchdir().
55560
55561         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55562         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55563         a dangling symlink.  That can also happen at least for ELOOP.
55564         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55565         FYI, this bug predates the inclusion of fts.c in coreutils.
55566
55567         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55568         in their own block, so pre-c99 compilers don't object.
55569
55570         Avoid the double-free (first in fts_read, second in fts_close) that
55571         would occur when an `active' directory is made inaccessible (e.g.,
55572         via chmod a-x) during a traversal.
55573         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55574         before returning.  Reproduce this failure by
55575         mkdir -p a/b; cd a; chmod a-x . b
55576         Reported by Stavros Passas.
55577
55578 2006-01-25  Jim Meyering  <jim@meyering.net>
55579
55580         * lib/fileblocks.c: Remove more useless parentheses.
55581         * lib/readutmp.h: Likewise.
55582
55583 2006-01-25  Bruno Haible  <bruno@clisp.org>
55584
55585         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55586         warnings.
55587         Reported by Paul Eggert.
55588
55589 2006-01-25  Bruno Haible  <bruno@clisp.org>
55590
55591         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55592         rid of a trap command. For Solaris sh.
55593         Reported by Mark D. Baushke <mdb@gnu.org>.
55594
55595 2006-01-24  Simon Josefsson  <jas@extundo.com>
55596
55597         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55598         Bruno.
55599
55600 2006-01-24  Karl Berry  <karl@gnu.org>
55601
55602         * config/srclist.txt (argp-namefrob.h): sync lost.
55603
55604 2006-01-24  Jim Meyering  <jim@meyering.net>
55605
55606         * modules/openat (Files): Add lib/intprops.h.
55607         From Mark D. Baushke.
55608
55609 2006-01-24  Jim Meyering  <jim@meyering.net>
55610
55611         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55612         Reported by Mark D. Baushke.
55613
55614 2006-01-24  Jim Meyering  <jim@meyering.net>
55615
55616         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55617
55618 2006-01-24  Bruno Haible  <bruno@clisp.org>
55619
55620         * modules/strnlen (Maintainer): Change from glibc to all.
55621
55622 2006-01-24  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55625         Patch by Paul Eggert.
55626
55627 2006-01-24  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55630         already has it.
55631         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55632         2005-11-26.
55633
55634         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55635         'signed char' to avoid problems with the built-in _Bool type.
55636         Reported by Paul Eggert on 2005-11-26.
55637
55638 2006-01-24  Bruno Haible  <bruno@clisp.org>
55639
55640         * gnulib-tool (func_import): Avoid constructing complicated sed
55641         expressions inside backquote.
55642         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55643
55644 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55645
55646         These changes imported from libc.
55647         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55648         test and two separate function calls.
55649         * lib/strndup.c (__strndup): Add libc_hidden_def.
55650
55651 2006-01-23  Simon Josefsson  <jas@extundo.com>
55652
55653         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55654         Remove the test_*_SOURCES variable: automake infers it by default.
55655         * modules/tls-tests: Likewise.
55656
55657 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55658
55659         Work around porting bugs reported by Dieter in
55660         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55661         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55662         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55663         Include "getopt.h" first, to check interface.
55664         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55665         !HAVE_DECL_GETENV.
55666         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55667         (__strndup): Revert to K&R-style function dfns, the glibc style.
55668         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55669         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55670         Include strnlen.h first, to get prototype properly.
55671         (strnlen): Renamed from __strnlen.
55672         Remove weak alias.
55673
55674 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55677
55678 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         * config/srclist.txt: Adjust to reflect glibc reorganization.
55681         This affects only comments.
55682
55683 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55684
55685          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55686          Reported by Bruce Korb <bkorb@gnu.org>.
55687
55688 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55689
55690         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55691         to pacify gcc -Wswitch-default.
55692
55693 2006-01-22  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55696         temporary buffer for sprintf, take into account the precision also
55697         for 'd', 'i', 'u', 'o', 'x', 'X'.
55698
55699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55700
55701         * modules/argp-tests: New module
55702         * tests/test-argp.c: New file
55703         * tests/test-argp-2.sh: New file
55704
55705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55706
55707         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55708         (__argp_base_name): Removed
55709         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55710         typo.
55711         (__argp_base_name): Provide macro definition or extern declaration
55712         depending on the configuration
55713
55714 2006-01-20  Simon Josefsson  <jas@extundo.com>
55715
55716         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55717
55718 2006-01-20  Simon Josefsson  <jas@extundo.com>
55719
55720         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55721
55722 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55723
55724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55725         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55726         Suggested by Bruno Haible.
55727
55728 2006-01-20  Karl Berry  <karl@gnu.org>
55729
55730         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55731         until changes propagate, I guess.
55732
55733 2006-01-19  Simon Josefsson  <jas@extundo.com>
55734
55735         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55736
55737 2006-01-19  Simon Josefsson  <jas@extundo.com>
55738
55739         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55740
55741 2006-01-19  Simon Josefsson  <jas@extundo.com>
55742
55743         * gnulib-tool: Set check_PROGRAMS.
55744
55745         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55746         modules/des-tests, modules/gc-arcfour-tests,
55747         modules/gc-arctwo-tests, modules/gc-des-tests,
55748         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55749         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55750         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55751         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55752         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55753         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55754         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55755         test_*_SOURCES.
55756
55757 2006-01-18  Simon Josefsson  <jas@extundo.com>
55758
55759         * modules/socklen (Depends-on): Depend on sys_socket.
55760
55761 2006-01-18  Simon Josefsson  <jas@extundo.com>
55762
55763         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55764         modules/des-tests, modules/gc-arcfour-tests,
55765         modules/gc-arctwo-tests, modules/gc-des-tests,
55766         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55767         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55768         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55769         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55770         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55771         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55772         $(EXEEXT) to automake TESTS variable, for mingw32.
55773
55774 2006-01-17  Simon Josefsson  <jas@extundo.com>
55775
55776         * modules/socklen (Include): Need sys/socket.h.
55777
55778 2006-01-17  Bruno Haible  <bruno@clisp.org>
55779
55780         * modules/ssize_t (Include): Add <sys/types.h>.
55781
55782 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55785         it's not portable and it doesn't work with cross-compiles.
55786         Problem reported by Bruno Haible.  Fix missing-$ typo in
55787         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55788         -zignore from being used with Sun's C compiler.
55789
55790 2006-01-12  Simon Josefsson  <jas@extundo.com>
55791
55792         * lib/base64.c: Fix warning, reported by Bruno Haible
55793         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55794
55795 2006-01-12  Bruno Haible  <bruno@clisp.org>
55796
55797         * modules/ldd: New file.
55798         * build-aux/ldd.sh.in: New file.
55799         * MODULES.html.sh (Support for building libraries and executables): Add
55800         ldd.
55801
55802 2006-01-12  Bruno Haible  <bruno@clisp.org>
55803
55804         * m4/ldd.m4: New file.
55805
55806 2006-01-12  Bruno Haible  <bruno@clisp.org>
55807
55808         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55809         endless loop while replacing $auxdir with build-aux.
55810
55811 2006-01-11  Simon Josefsson  <jas@extundo.com>
55812
55813         * lib/stdint_.h (SIZE_MAX): Add missing (.
55814
55815 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55816
55817         Sync from coreutils.
55818         * lib/md5.c: Fix commentary typos.
55819         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55820         * lib/md5.h (__attribute__): Remove; unused.
55821         * lib/sha1.c: Fix commentary to match md5 better.
55822         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55823         so that we don't need to worry about alignment.  All uses changed.
55824         This merges the 2005-10-28 md5 change into sha1.
55825
55826 2006-01-11  Jim Meyering  <jim@meyering.net>
55827
55828         Sync from coreutils.
55829         * lib/md5.c (OP): Fix spacing.
55830
55831 2006-01-11  Bruno Haible  <bruno@clisp.org>
55832
55833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55834         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55835         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55836
55837 2006-01-11  Bruno Haible  <bruno@clisp.org>
55838
55839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55840         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55841         the "early" section as well.
55842
55843 2006-01-11  Bruno Haible  <bruno@clisp.org>
55844
55845         Avoid "ar: no archive members specified" error on MacOS X.
55846         * gnulib-tool (func_modules_add_dummy): New function.
55847         (func_import, func_create_testdir): Invoke it.
55848
55849 2006-01-11  Bruno Haible  <bruno@clisp.org>
55850
55851         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55852         with $auxdir in AC_CONFIG_FILES statements.
55853
55854 2006-01-11  Bruno Haible  <bruno@clisp.org>
55855
55856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55857         Initialize also noinst_HEADERS to empty.
55858
55859 2006-01-11  Bruno Haible  <bruno@clisp.org>
55860
55861         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55862         variables.
55863         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55864         autoreconf.
55865
55866 2006-01-11  Bruno Haible  <bruno@clisp.org>
55867
55868         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55869         overridable by the user.
55870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55871
55872 2006-01-10  Simon Josefsson  <jas@extundo.com>
55873
55874         * modules/sys_socket: New file.
55875
55876 2006-01-10  Simon Josefsson  <jas@extundo.com>
55877
55878         * m4/sys_socket_h.m4: New file.
55879
55880 2006-01-10  Simon Josefsson  <jas@extundo.com>
55881
55882         * lib/socket_.h: New file.
55883
55884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * modules/readutmp (Maintainer): Add myself.
55887
55888 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55889
55890         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55891         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55892         People who are still concerned with buggy memcmp implementations
55893         can invoke gl_FUNC_MEMCMP themselves.
55894
55895 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * lib/regex_internal.h (BITSET_WORD_BITS):
55898         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55899         preprocessor mishandles large unsigned values as if they were signed.
55900         Problem reported by Claudio Fontana in
55901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55902
55903 2006-01-10  Jim Meyering  <jim@meyering.net>
55904
55905         Avoid the double-free (first in fts_read, second in fts_close) that
55906         would occur when an `active' directory is made inaccessible (e.g.,
55907         via chmod a-x) during a traversal.
55908         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55909         before returning.  Reproduce this failure by
55910         mkdir -p a/b; cd a; chmod a-x . b
55911         Reported by Stavros Passas.
55912
55913         Sync from coreutils.
55914         * lib/sha1.c: Tweak grammar in a comment.
55915
55916 2006-01-10  Jim Meyering  <jim@meyering.net>
55917
55918         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55919         Patch by Joerg Sonnenberger.
55920
55921 2006-01-10  Bruno Haible  <bruno@clisp.org>
55922
55923         * modules/readutmp: Depend on module free.
55924         * modules/strtok_r: Depend on module restrict.
55925
55926 2006-01-10  Bruno Haible  <bruno@clisp.org>
55927
55928         * modules/gettext (configure.ac): Add an invocation of
55929         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55930
55931 2006-01-10  Bruno Haible  <bruno@clisp.org>
55932
55933         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55934         Reported by Werner Lemberg <wl@gnu.org>.
55935
55936 2006-01-10  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/localcharset.c: Update from GNU gettext.
55939
55940 2006-01-10  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/argp.h (__const): Remove macro. Use const instead.
55943         * lib/argp-fmtstream.h (__const): Likewise.
55944         * lib/glob_.h (__const): Remove macro.
55945         * lib/glob-libc.h: Use const instead of __const.
55946
55947 2006-01-10  Bruno Haible  <bruno@clisp.org>
55948
55949         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55950         variable.
55951         Needed to avoid an automake error regarding the 'gettext' module.
55952
55953 2006-01-09  Simon Josefsson  <jas@extundo.com>
55954
55955         * modules/inet_ntop (Depends-on): Add restrict.
55956
55957 2006-01-09  Simon Josefsson  <jas@extundo.com>
55958
55959         * modules/gc-rijndael-tests (License): Put under LGPL.
55960
55961         * modules/gc-des-tests (License): Likewise.
55962
55963         * modules/gc-arcfour-tests (License): Likewise.
55964
55965         * modules/gc-arctwo-tests (License): Likewise.
55966
55967         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55968
55969         * modules/gc-hmac-sha1-tests (Files): Likewise.
55970
55971         * modules/gc-hmac-md5-tests (License): Likewise.
55972
55973         * modules/gc-sha1-tests (License): Likewise.
55974
55975         * modules/gc-md5-tests (License): Likewise.
55976
55977         * modules/gc-md4-tests (License): Likewise.
55978
55979         * modules/gc-md2-tests (License): Likewise.
55980
55981         * modules/gc-tests (License): Likewise.
55982
55983         * modules/des-tests (License): Likewise.
55984
55985         * modules/md4-tests (License): Likewise.
55986
55987         * modules/md2-tests (License): Likewise.
55988
55989 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55990
55991         Sync from coreutils:
55992
55993         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55994         * modules/lib-ignore: New file.
55995         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55996         chdir-safer.m4, lchmod.m4.
55997         * modules/openat: Add mkdirat.c, openat-priv.h.
55998
55999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         Sync from coreutils.
56002         * m4/lib-ignore.m4: New file.
56003         * m4/lchmod.m4: New file.
56004
56005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56006
56007         Sync from coreutils.
56008         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56009         for write access: POSIX says that must fail.
56010         * lib/fts.c (diropen): Likewise.
56011         * lib/save-cwd.c (save_cwd): Likewise.
56012         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56013         well, for minor improvements on hosts that lack O_DIRECTORY.
56014         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56015         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56016         Fall back on chown if open failed with EACCES.
56017
56018         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56019         Report an error at compile-time if only a 1-second nominal clock
56020         resolution is found.
56021
56022         * lib/lchmod.h: New file.
56023         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56024         (make_dir_parents): Use lchown rather than chown, and
56025         lchmod rather than chmod.
56026
56027         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56028         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56029         "proc" reported by n0dalus.
56030
56031         * lib/mountlist.c: Include <limits.h>.
56032         (dev_from_mount_options)
56033         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56034         New function.  It no longer assumes "dev=" has the System V meaning
56035         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56036         (read_file_system_list)
56037         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56038         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56039         dev= in that case.
56040
56041         * lib/posixtm.h (PDS_PRE_2000): New macro.
56042         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56043         allow_century.  All usages changed.  Reject dates outside the range
56044         1969-1999 if PDS_PRE_2000 is used.
56045
56046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56047
56048         Sync from coreutils.
56049         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56050         (Time of day items): Mention the possibility of leap seconds.
56051         Problem reported by Dr. David Alan Gilbert.
56052
56053 2006-01-09  Jim Meyering  <jim@meyering.net>
56054
56055         Sync from coreutils.
56056
56057         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56058
56059         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56060
56061         * lib/modechange.c (mode_compile): Reject an invalid mode string
56062         that starts with an octal digit.  From Andreas Gruenbacher.
56063
56064         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56065         and dup to open_safer and dup_safer, respectively.
56066         (openat_permissive): Fix typo in comment.
56067
56068         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56069         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56070         (_): Remove; no longer needed.
56071         (openat): Renamed from rpl_openat; no need for rpl_openat
56072         since openat.h renames openat for us.
56073         Replace most of the body with a call to openat_permissive,
56074         to avoid duplicate code.
56075         Port to (probably hypothetical) environments were mode_t is
56076         wider than int.
56077         (openat_permissive): Require mode arg, so that we can check
56078         types better.  Put it just after flags.  Change cwd failure
56079         indicator from pointer-to-bool to pointer-to-errno-value.
56080         All callers changed.
56081         Invoke openat_save_fail and/or openat_restore_fail if
56082         cwd_errno is null, so that openat can call us.
56083         (openat_permissive, fdopendir, fstatat, unlinkat):
56084         Simplify errno handling to avoid some duplicate code,
56085         as it's OK to set errno on success.
56086         * lib/openat.h: Revamp code so that function macros depend on
56087         __OPENAT_PREFIX only, not also on AT_FDCWD.
56088         (openat_ro): Remove.  Caller changed to use openat_permissive.
56089         (openat_permissive): Now a macro, if not a function.
56090         (openat_restore_fail, openat_save_fail): Now always functions,
56091         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56092
56093         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56094         and openat.c.
56095         * lib/mkdirat.c: Include openat-priv.h.
56096         Remove definitions of macros defined therein.
56097         * lib/openat.c: Likewise.
56098
56099         * lib/mkdirat.c (mkdirat): New file and function.
56100         * lib/openat.h (mkdirat): Declare.
56101
56102         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56103
56104         * lib/openat.h (openat_permissive): Declare.
56105         (openat_ro): Define.
56106
56107         * lib/openat.c (EXPECTED_ERRNO): New macro.
56108         (openat_permissive): New function -- used in remove.c rewrite.
56109         (all functions): Set errno just before returning, only if there
56110         was an actual failure.
56111         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56112
56113         Emulate openat-family functions using Linux's procfs, if possible.
56114         Idea and some code based on Ulrich Drepper's glibc changes.
56115
56116         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56117         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56118         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56119         before falling back on save_cwd and restore_cwd.
56120         (fdopendir, fstatat, unlinkat): Likewise.
56121
56122         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56123         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56124
56125         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56126         as second argument to va_arg.  Otherwise, some versions of gcc
56127         warn that `if this code is reached, the program will abort'.
56128
56129 2006-01-09  Jim Meyering  <jim@meyering.net>
56130
56131         Sync from coreutils.
56132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56133         Require openat-priv.h.
56134
56135 2006-01-09  Bruno Haible  <bruno@clisp.org>
56136
56137         * modules/strnlen (Include): Use strnlen.h.
56138
56139 2006-01-09  Bruno Haible  <bruno@clisp.org>
56140
56141         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56142
56143 2006-01-09  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/sysexit_.h (EX_OK): New macro.
56146         Suggested by Martin Lambers <marlam@marlam.de>.
56147
56148 2006-01-09  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56151         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56152
56153 2006-01-09  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56156         numbers.
56157
56158 2006-01-09  Bruno Haible  <bruno@clisp.org>
56159
56160         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56161         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56162         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56163         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56164
56165 2006-01-09  Bruno Haible  <bruno@clisp.org>
56166
56167         * build-aux/javacomp.sh.in: New file, moved from lib/.
56168         * modules/javacomp-script (Files): Update.
56169         (configure.ac): Add AC_CONFIG_FILES invocation.
56170         (EXTRA_DIST): Remove variable.
56171
56172         * build-aux/javaexec.sh.in: New file, moved from lib/.
56173         * modules/javaexec (Files): Update.
56174         (configure.ac): Add AC_CONFIG_FILES invocation.
56175         (EXTRA_DIST): Remove javaexec.sh.in.
56176
56177         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56178         * modules/csharpcomp-script (Files): Update.
56179         (configure.ac): Add AC_CONFIG_FILES invocation.
56180         (EXTRA_DIST): Remove variable.
56181
56182         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56183         * modules/csharpexec (Files): Update.
56184         (configure.ac): Add AC_CONFIG_FILES invocation.
56185         (EXTRA_DIST): Remove csharpexec.sh.in.
56186
56187 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56188
56189         Sync from coreutils.
56190
56191         Add POSIX ACL support
56192         * lib/acl.h (copy_acl, set_acl): Add declarations.
56193         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56194         systems other than Linux.
56195         (chmod_or_fchmod): New function: use fchmod when possible,
56196         and chmod otherwise.
56197         (file_has_acl): Add a POSIX ACL implementation, with a
56198         Linux-specific subcase.
56199         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56200         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56201         acls are unsupported.
56202         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56203         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56204         are unsupported.
56205
56206 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56207
56208         Sync from coreutils.
56209         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56210
56211 2006-01-07  Bruno Haible  <bruno@clisp.org>
56212
56213         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56214         gl_EARLY.
56215
56216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56217
56218         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56219         Problem reported for Mingw by Mark Junker.
56220
56221 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56222
56223         * README: Gnulib normally doesn't generate a tarball.
56224
56225 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56228         long int, not int, for nanosecond counts, so that people who are
56229         used to POSIX struct timespec won't be surprised.  Reported by Jim
56230         Meyering.
56231
56232 2005-12-28  Bruno Haible  <bruno@clisp.org>
56233
56234         * build-aux/config.rpath: Update from GNU gettext.
56235
56236 2005-12-16  Jim Meyering  <jim@meyering.net>
56237
56238         * modules/fprintftime: New module.
56239         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56240
56241 2005-12-16  Jim Meyering  <jim@meyering.net>
56242
56243         * m4/fprintftime.m4: New file.
56244
56245 2005-12-16  Jim Meyering  <jim@meyering.net>
56246
56247         * lib/fprintftime.c, lib/fprintftime.h: New files.
56248
56249 2005-12-15  Simon Josefsson  <jas@extundo.com>
56250
56251         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56252         new m4/socklen.m4.
56253
56254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56255
56256         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56257         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56258
56259 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56260
56261         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56262         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56263         struct uparams is valid. Fall back to the default values if it is
56264         not.
56265
56266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56267
56268         * modules/argp (Files): Add argp-pin.c
56269         (Depends-on): dirname
56270         (lib_SOURCES): Add argp-pin.c
56271
56272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56273
56274         * m4/argp.m4:  Check if program_invocation_name and
56275         program_invocation_short_name are declared and define appropriate
56276         macros if they are not.
56277
56278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56279
56280         * lib/argp-help.c (__argp_base_name): New function
56281         (__argp_short_program_name): Rewrite using __argp_base_name
56282         * lib/argp-namefrob.h: Define program_invocation_name and
56283         program_invocation_short_name if requested
56284         (__argp_base_name): Add prototype
56285         * lib/argp-parse.c (argp_def): Use gettext wrappers
56286         (argp_default_parser): Use __argp_base_name
56287         * lib/argp-pin.c: New file. Defines program_invocation_name and
56288         program_invocation_short_name on systems that lack them.
56289
56290 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56291
56292         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56293         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56294         porting problem reported by Georg Schwarz in
56295         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56296
56297 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56300         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56301         porting problem reported by Georg Schwarz in
56302         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56303
56304 2005-12-05  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56307         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56308         Reported by Mark Junker <mjscod@gmx.de>.
56309
56310 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56313         Use implementation from Albert Chin, with some
56314         comments/corrections by Stepan Kasal and myself.
56315
56316 2005-12-02  Bruno Haible  <bruno@clisp.org>
56317
56318         * gnulib-tool (func_import): Accept GPLed build tool modules when
56319         --lgpl is given.
56320         * modules/csharpcomp-script: New file.
56321         * modules/csharpcomp: Depend on it.
56322         * modules/javacomp-script: New file.
56323         * modules/javacomp: Depend on it.
56324         Suggested by Simon Josefsson.
56325
56326 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56327
56328         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56329         statement, to work around an HP-UX 10.20 compiler bug reported by
56330         Peter O'Gorman.
56331
56332 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         * modules/savedir (Depends-on): Add openat.
56335
56336 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56339         (uintmax_t) [defined uintmax_t]: Do not declare.
56340         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56341         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56342         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56343         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56344         sake of portability to weird hosts that C allows (though we don't
56345         know of any practical examples).
56346
56347         * lib/savedir.h (fdsavedir): New decl.
56348         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56349         contains most of the former guts of savedir.
56350         (savedir): Use savedirstream.
56351         Include "openat.h".
56352
56353 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56354
56355         * modules/obstack (Files): Add m4/ulonglong.m4.
56356         Problem reported by Davide Angelocola.
56357
56358 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56359
56360         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56361         coreutils no longer futzes with rounding modes.
56362
56363 2005-11-14  Jim Meyering  <jim@meyering.net>
56364
56365         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56366         replacement of mkstemp.
56367
56368 2005-11-10  Simon Josefsson  <jas@extundo.com>
56369
56370         * lib/readline.c: Remove EOL.
56371
56372 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56373
56374         * modules/gethrxtime (Depends-on): Add gettime.
56375
56376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56377
56378         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56379         or gettimeofday; no longer needed.
56380
56381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56382
56383         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56384         time business.
56385         (gethrxtime) [! (HAVE_NANOUPTIME
56386         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56387         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56388         our own approximation.
56389
56390 2005-11-08  Eric Blake  <ebb9@byu.net>
56391
56392         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56393
56394 2005-11-08  Eric Blake  <ebb9@byu.net>
56395
56396         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56397
56398 2005-11-04  Bruno Haible  <bruno@clisp.org>
56399
56400         * gnulib-tool: Implement --update mode.
56401
56402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56403
56404         Fix porting problem reported by Theodoros V. Kalamatianos.
56405         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56406         Don't assume that futimes failing means we must fail.
56407
56408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56409
56410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56411         variables to suggest the intended function of the PATH_MAX check.
56412
56413 2005-10-30  Kean Johnston  <jkj@sco.com>
56414
56415         Trivial changes to support SCO systems.
56416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56417         as PATH_MAX.
56418         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56419         where __ptr is null when no I/O is pending.
56420
56421 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56424         leave errno alone.  Problem reported by Dmitry V. Levin.
56425
56426 2005-10-28  Simon Josefsson  <jas@extundo.com>
56427
56428         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56429         Test more.
56430
56431         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56432
56433         * modules/md2, modules/md2-tests: New files.
56434
56435 2005-10-28  Simon Josefsson  <jas@extundo.com>
56436
56437         * m4/inet_ntop.m4: More tests.
56438
56439         * m4/gc-md2.m4, md2.m4: New file.
56440
56441 2005-10-28  Simon Josefsson  <jas@extundo.com>
56442
56443         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56444         "restrict" keywords, as per POSIX.  Protect the function
56445         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56446         Don't use K&R prototypes.  Check the sprintf return values.
56447         Re-define EAFNOSUPPORT if not present.  Indent.
56448
56449         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56450         suggested by Bruno Haible <bruno@clisp.org>.
56451
56452         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56453
56454         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56455
56456         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56457         libgcrypt).
56458
56459         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56460
56461         * lib/md2.h, lib/md2.c: New files.
56462
56463 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56464
56465         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56466         errno alone.  Problem reported by Frederic Jolliton.
56467
56468 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * modules/verify (License): Change from GPL to LGPL.  This is a
56471         tiny module and there are apparently near-equivalents that are
56472         under the BSD license.
56473
56474 2005-10-24  Simon Josefsson  <jas@extundo.com>
56475
56476         * modules/sha1: Relicense to LGPL.
56477
56478 2005-10-24  Simon Josefsson  <jas@extundo.com>
56479
56480         * lib/md4.h: Shrink buffer size, now that we changed the type.
56481
56482 2005-10-23  Simon Josefsson  <jas@extundo.com>
56483
56484         * gnulib-tool (func_import): Fix --tests-base.
56485
56486 2005-10-22  Simon Josefsson  <jas@extundo.com>
56487
56488         * modules/arcfour (Depends-on): Need stdint.
56489
56490 2005-10-22  Simon Josefsson  <jas@extundo.com>
56491
56492         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56493         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56494
56495 2005-10-22  Simon Josefsson  <jas@extundo.com>
56496
56497         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56498         suggested by Bruno Haible <bruno@clisp.org>.
56499
56500 2005-10-22  Simon Josefsson  <jas@extundo.com>
56501
56502         * lib/crc.h: Include stddef.h, for size_t.
56503
56504 2005-10-22  Simon Josefsson  <jas@extundo.com>
56505
56506         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56507         arcfour_context struct (simplify test vector testing in GNU
56508         Shishi).
56509
56510 2005-10-21  Simon Josefsson  <jas@extundo.com>
56511
56512         * modules/des, modules/des-tests: New files.
56513
56514         * modules/gc-des, modules/gc-des-tests: New files.
56515
56516         * tests/test-des.c, tests/test-gc-des.c: New file.
56517
56518 2005-10-21  Simon Josefsson  <jas@extundo.com>
56519
56520         * modules/arctwo, modules/arctwo-tests: New files.
56521
56522         * tests/test-arctwo.c: New file.
56523
56524         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56525
56526         * tests/test-gc-arctwo.c: New file.
56527
56528 2005-10-21  Simon Josefsson  <jas@extundo.com>
56529
56530         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56531         Bruno Haible <bruno@clisp.org>.
56532
56533         * m4/gc-des.m4: New file.
56534
56535 2005-10-21  Simon Josefsson  <jas@extundo.com>
56536
56537         * m4/arctwo.m4: New file.
56538
56539         * m4/gc-arctwo.m4: New file.
56540
56541 2005-10-21  Simon Josefsson  <jas@extundo.com>
56542
56543         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56544         block.
56545
56546 2005-10-21  Simon Josefsson  <jas@extundo.com>
56547
56548         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56549         <bruno@clisp.org>.
56550
56551         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56552
56553         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56554         Bruno Haible <bruno@clisp.org>.
56555
56556         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56557         <bruno@clisp.org>.
56558
56559 2005-10-21  Simon Josefsson  <jas@extundo.com>
56560
56561         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56562
56563 2005-10-21  Simon Josefsson  <jas@extundo.com>
56564
56565         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56566
56567 2005-10-21  Simon Josefsson  <jas@extundo.com>
56568
56569         * lib/des.h, lib/des.c: New files.
56570
56571         * lib/gc-gnulib.c: Support DES.c
56572
56573 2005-10-21  Simon Josefsson  <jas@extundo.com>
56574
56575         * lib/arctwo.h, lib/arctwo.c: New files.
56576
56577         * lib/gc-gnulib.c: Support ARCTWO.
56578
56579 2005-10-21  Simon Josefsson  <jas@extundo.com>
56580
56581         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56582         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56583
56584 2005-10-21  Simon Josefsson  <jas@extundo.com>
56585
56586         * gnulib-tool (func_import, func_create_testdir): Define automake
56587         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56588         Makefile.am snippet),
56589         suggested by Bruno Haible <bruno@clisp.org>.
56590
56591         * modules/gc (Makefile.am): Use it.
56592
56593 2005-10-21  Bruno Haible  <bruno@clisp.org>
56594
56595         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56596         patch.
56597
56598 2005-10-19  Simon Josefsson  <jas@extundo.com>
56599
56600         * tests/test-gc-rijndael.c: New file.
56601
56602         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56603
56604 2005-10-19  Simon Josefsson  <jas@extundo.com>
56605
56606         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56607         interface too.
56608
56609 2005-10-19  Simon Josefsson  <jas@extundo.com>
56610
56611         * tests/test-gc-arcfour.c: New file.
56612
56613         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56614
56615 2005-10-19  Simon Josefsson  <jas@extundo.com>
56616
56617         * modules/gc-md4, modules/gc-md4-tests: New file.
56618
56619         * tests/test-gc-md4.c: New file.
56620
56621 2005-10-19  Simon Josefsson  <jas@extundo.com>
56622
56623         * m4/gc-md4.m4: New file.
56624
56625 2005-10-19  Simon Josefsson  <jas@extundo.com>
56626
56627         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56628         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56629         <kasal@ucw.cz>.
56630
56631 2005-10-19  Simon Josefsson  <jas@extundo.com>
56632
56633         * m4/gc-arcfour.m4: New file.
56634
56635         * m4/gc-rijndael.m4: New file.
56636
56637 2005-10-19  Simon Josefsson  <jas@extundo.com>
56638
56639         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56640
56641 2005-10-19  Simon Josefsson  <jas@extundo.com>
56642
56643         * lib/gc-gnulib.c: Support ARCFOUR.
56644
56645 2005-10-19  Simon Josefsson  <jas@extundo.com>
56646
56647         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56648         support.
56649
56650         * lib/gc.h: Add ECB enum type.
56651
56652         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56653
56654 2005-10-18  Simon Josefsson  <jas@extundo.com>
56655
56656         * tests/test-md5.c: New file.
56657
56658         * modules/md5-tests: New file.
56659
56660 2005-10-18  Simon Josefsson  <jas@extundo.com>
56661
56662         * tests/test-md4.c: New file.
56663
56664         * modules/md4, modules/md4-tests: New files.
56665
56666 2005-10-18  Simon Josefsson  <jas@extundo.com>
56667
56668         * m4/md4.m4: New file.
56669
56670 2005-10-18  Simon Josefsson  <jas@extundo.com>
56671
56672         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56673
56674 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56675
56676         * gnulib-tool (func_create_testdir): Omit the second check whether
56677         BUILT_SOURCES in nonempty.
56678
56679 2005-10-17  Simon Josefsson  <jas@extundo.com>
56680
56681         * tests/test-rijndael.c: New file.
56682
56683 2005-10-17  Simon Josefsson  <jas@extundo.com>
56684
56685         * modules/sha1: Depend on stdint instead of md5.
56686
56687         * modules/md5: Depend on stdint, remove uint32_t.
56688
56689 2005-10-17  Simon Josefsson  <jas@extundo.com>
56690
56691         * modules/gc-sha1-tests: New file.
56692
56693         * tests/test-gc-sha1.c: New file.
56694
56695 2005-10-17  Simon Josefsson  <jas@extundo.com>
56696
56697         * m4/md5.m4: Remove call to uint32_t.m4.
56698
56699 2005-10-17  Simon Josefsson  <jas@extundo.com>
56700
56701         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56702
56703         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56704         md5.h.
56705
56706         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56707
56708         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56709
56710 2005-10-17  Simon Josefsson  <jas@extundo.com>
56711
56712         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56713
56714 2005-10-17  Simon Josefsson  <jas@extundo.com>
56715
56716         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56717
56718 2005-10-17  Simon Josefsson  <jas@extundo.com>
56719
56720         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56721
56722         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56723
56724 2005-10-17  Bruno Haible  <bruno@clisp.org>
56725
56726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56727         that it can also be used in a test.
56728
56729 2005-10-16  Bruno Haible  <bruno@clisp.org>
56730
56731         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56732         TESTS_ENVIRONMENT, so that individual tests can augment it.
56733
56734         * gnulib-tool (func_create_testdir): Use an intermediate target for
56735         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56736         macros, like $(ALLOCA_H), which cannot be passed through the command
56737         line.
56738
56739 2005-10-15  Simon Josefsson  <jas@extundo.com>
56740
56741         * modules/rijndael-tests: New file.
56742
56743         * modules/rijndael: New file.
56744
56745 2005-10-15  Simon Josefsson  <jas@extundo.com>
56746
56747         * m4/rijndael.m4: New file.
56748
56749 2005-10-15  Simon Josefsson  <jas@extundo.com>
56750
56751         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56752
56753         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56754
56755 2005-10-14  Simon Josefsson  <jas@extundo.com>
56756
56757         * tests/test-arcfour.c: New file.
56758
56759         * modules/arcfour, modules/arcfour-tests: New files.
56760
56761 2005-10-14  Simon Josefsson  <jas@extundo.com>
56762
56763         * m4/arcfour.m4: New file.
56764
56765 2005-10-14  Simon Josefsson  <jas@extundo.com>
56766
56767         * lib/arcfour.h, lib/arcfour.c: New files.
56768
56769 2005-10-14  Roland McGrath  <roland@redhat.com>
56770
56771         Import from libc.  [BZ #1331]
56772         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56773         macro argument.
56774         Reported by Matej Vela <vela@debian.org>.
56775
56776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56777
56778         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56779         include <wchar.h>; no longer needed.
56780
56781 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56782
56783         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56784
56785 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56786         and  Ulrich Drepper  <drepper@redhat.com>
56787
56788         Import from libc.
56789         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56790         instead of inline stream orientation test and two separate
56791         function calls.  Pay no attention to USE_IN_LIBIO.
56792
56793 2005-10-13  Simon Josefsson  <jas@extundo.com>
56794
56795         * modules/gc-hmac-md5-tests: New file.
56796
56797         * tests/test-gc-hmac-sha1.c: New file.
56798
56799         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56800
56801         * modules/gc-hmac-md5-tests: New file.
56802
56803         * tests/test-gc-md5.c: New file.
56804
56805         * modules/gc-md5-tests: New file.
56806
56807 2005-10-13  Simon Josefsson  <jas@extundo.com>
56808
56809         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56810         Move memory allocation outside of loop.
56811
56812 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56813
56814         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56815         intermediate directory is in a read-only file system.  Problem
56816         reported by Eric Blake.
56817
56818 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56819
56820         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56821
56822 2005-10-12  Simon Josefsson  <jas@extundo.com>
56823
56824         * tests/test-hmac-sha1.c: New file.
56825
56826         * modules/hmac-sha1-tests: New file.
56827
56828         * modules/hmac-sha1: New file.
56829
56830 2005-10-12  Simon Josefsson  <jas@extundo.com>
56831
56832         * modules/gc-sha1: New file.
56833
56834 2005-10-12  Simon Josefsson  <jas@extundo.com>
56835
56836         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56837
56838         * tests/test-gc-pbkdf2-sha1.c: New file.
56839
56840 2005-10-12  Simon Josefsson  <jas@extundo.com>
56841
56842         * modules/gc-md5, modules/gc-hmac-md5: New files.
56843
56844         * modules/gc (Files): Remove md5, memxor and hmac files.
56845
56846 2005-10-12  Simon Josefsson  <jas@extundo.com>
56847
56848         * m4/gc-pbkdf2-sha1.m4: New file.
56849
56850         * m4/gc-hmac-sha1.m4: New file.
56851
56852         * m4/gc-sha1: New file.
56853
56854         * m4/hmac-sha1.m4: New file.
56855
56856 2005-10-12  Simon Josefsson  <jas@extundo.com>
56857
56858         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56859
56860         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56861
56862 2005-10-12  Simon Josefsson  <jas@extundo.com>
56863
56864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56865         suggested by Bruno Haible <bruno@clisp.org>.
56866
56867 2005-10-12  Simon Josefsson  <jas@extundo.com>
56868
56869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56870
56871 2005-10-12  Simon Josefsson  <jas@extundo.com>
56872
56873         * lib/gc-pbkdf2-sha1.c: New file.
56874
56875         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56876
56877 2005-10-12  Simon Josefsson  <jas@extundo.com>
56878
56879         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56880
56881         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56882
56883 2005-10-12  Simon Josefsson  <jas@extundo.com>
56884
56885         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56886         GC_USE_HMAC_MD5, respectively.
56887
56888         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56889         (gc_md5): Fix typo.
56890
56891         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56892
56893         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56894
56895         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56896
56897 2005-10-12  Bruno Haible  <bruno@clisp.org>
56898
56899         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56900         Reported by Stepan Kasal <kasal@ucw.cz>.
56901
56902 2005-10-11  Simon Josefsson  <jas@extundo.com>
56903
56904         * tests/test-crc.c: New file.
56905
56906         * modules/crc, modules/crc-tests: New files.
56907
56908 2005-10-11  Simon Josefsson  <jas@extundo.com>
56909
56910         * m4/crc.m4: New file.
56911
56912 2005-10-11  Simon Josefsson  <jas@extundo.com>
56913
56914         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56915
56916         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56917
56918         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56919
56920 2005-10-11  Simon Josefsson  <jas@extundo.com>
56921
56922         * lib/crc.h, lib/crc.c: New files.
56923
56924         * lib/gc.h (gc_hash_buffer): Add doc.
56925
56926 2005-10-11  Bruno Haible  <bruno@clisp.org>
56927
56928         * modules/c-strcasestr: New file.
56929         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56930
56931 2005-10-11  Bruno Haible  <bruno@clisp.org>
56932
56933         * modules/c-strcase: New file.
56934         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56935
56936 2005-10-11  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/strcasecmp.c: Include limits.h.
56939         (strcasecmp): Avoid integer overflow on exotic platforms.
56940         * lib/strncasecmp.c: Include limits.h.
56941         (strncasecmp): Avoid integer overflow on exotic platforms.
56942         Reported by Paul Eggert.
56943
56944 2005-10-11  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/c-strcasestr.h: New file, from GNU gettext.
56947         * lib/c-strcasestr.c: New file, from GNU gettext.
56948
56949 2005-10-11  Bruno Haible  <bruno@clisp.org>
56950
56951         * lib/c-strcase.h: New file, from GNU gettext.
56952         * lib/c-strcasecmp.c: New file, from GNU gettext.
56953         * lib/c-strncasecmp.c: New file, from GNU gettext.
56954
56955 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56956
56957         * modules/mempcpy (License): GPL -> LGPL.
56958         * modules/strchrnul (License): Likewise.
56959         * modules/sysexits (License): Likewise.
56960
56961 2005-10-08  Simon Josefsson  <jas@extundo.com>
56962
56963         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56964
56965 2005-10-07  Simon Josefsson  <jas@extundo.com>
56966
56967         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56968
56969 2005-10-06  Simon Josefsson  <jas@extundo.com>
56970
56971         * tests/test-hmac-md5.c: New file.
56972
56973         * modules/hmac-md5-tests: New file.
56974
56975         * modules/hmac-md5: New file.
56976
56977 2005-10-06  Simon Josefsson  <jas@extundo.com>
56978
56979         * m4/hmac-md5.m4: New file.
56980
56981         * m4/memxor.m4: Require gl_C_RESTRICT.
56982
56983 2005-10-06  Simon Josefsson  <jas@extundo.com>
56984
56985         * lib/memxor.c (memxor): Avoid casts and warnings.
56986
56987 2005-10-06  Simon Josefsson  <jas@extundo.com>
56988
56989         * lib/hmac-md5.c: New file.
56990
56991         * lib/hmac.h: New file.
56992
56993 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56994
56995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56996         promotes to int, not unsigned int, to catch the AIX 5.3
56997         compiler bug.
56998
56999 2005-10-05  Simon Josefsson  <jas@extundo.com>
57000
57001         * modules/memxor: New file.
57002
57003         * modules/iconv (Files): Move config.rpath to havelib, it is used
57004         there.
57005
57006         * modules/havelib (Files): Add config.rpath.
57007
57008 2005-10-05  Simon Josefsson  <jas@extundo.com>
57009
57010         * m4/memxor.m4: New file.
57011
57012 2005-10-05  Simon Josefsson  <jas@extundo.com>
57013
57014         * lib/memxor.c (memxor): Fix compiler error.
57015
57016         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57017         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57018
57019         * lib/memxor.h, lib/memxor.c: New files.
57020
57021         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57022         we assume all systems have it, suggested by Jim Meyering
57023         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57024         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57025         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57026         same reasons.
57027
57028 2005-10-05  Simon Josefsson  <jas@extundo.com>
57029
57030         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57031
57032 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57033
57034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57035         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57036         needed, since the source code now assumes these .h files.
57037
57038 2005-10-05  Derek Price  <derek@ximbiot.com>
57039
57040         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57041
57042 2005-10-05  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/stdint (License): Change to LGPL.
57045
57046 2005-10-04  Simon Josefsson  <jas@extundo.com>
57047
57048         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57049         D. Baushke" <mdb@gnu.org>.
57050
57051 2005-10-04  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/verify.h (verify_true): Provide alternative definition for C++.
57054
57055 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57056
57057         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57058         (SSIZE_MAX): New macro, if not already defined.
57059         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57060         than 2 GiB.
57061
57062 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         Sync from coreutils.
57065         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57066         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57067         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57068         ULLONG_MAX doesn't work with 2.7.2.1.
57069
57070 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57073         From Ben Pfaff.
57074
57075         * modules/exclude (Depends-on): Depend on verify.
57076         * modules/strtoimax (Depends-on): Likewise.
57077         * modules/utimecmp (Depends-on): Likewise.
57078
57079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * lib/exclude.c: Include verify.h.
57082         (verify): Remove.  All callers changed to use verify.h's version.
57083         * lib/strtoimax.c: Likewise.
57084         * lib/utimecmp.c: Likewis.e
57085
57086         Sync from coreutils.
57087         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57088         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57089         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57090         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57091         bother returning ENOSYS if settimeofday or stime fails; just let
57092         them return whatever errno they want to return.
57093         * lib/utimens.c: Include unistd.h, for dup2.
57094         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57095         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57096
57097 2005-10-02  Jim Meyering  <jim@meyering.net>
57098
57099         Sync from coreutils.
57100         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57101         from glibc-2.2.5 that fails for read-only files.
57102
57103 2005-10-02  Jim Meyering  <jim@meyering.net>
57104
57105         Sync from coreutils.
57106         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57107         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57108         `#if HAVE_CONFIG_H'.
57109         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57110         Remove AT_FDCWD test.
57111         Do not consume the fd unless successful.
57112         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57113         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57114         block, so that we don't even try to compile it if settimeofday is
57115         available.  This works around a compilation failure on OSF1 V5.1,
57116         due to stime requiring a `long int*' while tv_sec is `int'.
57117
57118 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57119
57120         Sync from coreutils.
57121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57122         against `yes', rather than just testing for nonempty.
57123
57124 2005-10-01  Simon Josefsson  <jas@extundo.com>
57125
57126         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57127         and Darwin.
57128
57129         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57130         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57131         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57132         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57133         Check if struct addrinfo is declared.
57134
57135 2005-10-01  Simon Josefsson  <jas@extundo.com>
57136
57137         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57138         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57139         AI_* and EAI_* definitions.  Protect function declarations.
57140
57141 2005-10-01  Jim Meyering  <jim@meyering.net>
57142
57143         Sync from coreutils.
57144
57145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57146         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57147         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57149         in the inet and nsl libraries.  Required on Solaris 5.7.
57150
57151 2005-10-01  Jim Meyering  <jim@meyering.net>
57152
57153         Sync from coreutils.
57154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57155         in the inet and nsl libraries.  Required on Solaris 5.7.
57156
57157 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57158
57159         * lib/getdelim.c (getdelim): Remove unused variables.
57160
57161 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57162
57163         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57164         so that the code works even with ancient cpp.  Portability problem
57165         with GCC 2.7.2.1 reported by Thomas M.Ott.
57166
57167 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57168
57169         * modules/regex (Depends-on): Add strcase.
57170
57171         * modules/gethostname (Licence): Change from GPL to LGPL, since
57172         gethostname.c is a trivial implementation of a standard library
57173         function.
57174         * modules/poll (License): Change from GPL to LGPL, since it's
57175         derived from LGPL code.
57176
57177 2005-09-27  Jim Meyering  <jim@meyering.net>
57178
57179         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57180         HAVE_CONFIG_H.
57181
57182         * lib/intprops.h (signed_type_or_expr__): Define.
57183         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57184         for unsigned types.
57185
57186 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * lib/verify.h (verify_expr): Remove, replacing with:
57189         (verify_true): New macro that returns true instead of void.
57190         (verify_type__): Remove.
57191         (verify): Use verify_true rather than verify_type__.
57192
57193 2005-09-26  Bruno Haible  <bruno@clisp.org>
57194
57195         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57196         is necessary.
57197         (lib_SOURCES): Remove mbchar.c.
57198         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57199         (Files): Add m4/mbrtowc.m4.
57200         * modules/mbiter: Likewise.
57201         * modules/mbuiter: Likewise.
57202
57203 2005-09-26  Bruno Haible  <bruno@clisp.org>
57204
57205         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57206         compile mbchar.c if they are not both present.
57207         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57208         * m4/mbiter.m4 (gl_MBITER): Likewise.
57209         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57210         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57211         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57212
57213 2005-09-25  Jim Meyering  <jim@meyering.net>
57214
57215         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57216         also uses socklen_t.
57217
57218 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57219
57220         * lib/utimens.c (ENOSYS): Define if not already defined.
57221         (futimens): Support having a null PATH if the file descriptor
57222         is nonnegative.
57223
57224         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57225         Remove.
57226         (__attribute): Define to empty unless GCC 3.1 or later.
57227         This works around a core dump on OpenBSD 3.4, which has GCC
57228         2.95.3, which dumps core when given __attribute__(()).  It also
57229         simplifies other tests, since we really don't want to bother with
57230         worrying about which ancient version of GCC supported what.
57231         Original problem reported by Yoann Vandoorselaere, with part of
57232         the fix suggested by Derek Price.
57233
57234 2005-09-24  Jim Meyering  <jim@meyering.net>
57235
57236         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57237         so we can once again use a positive bitfield width of 1 -- now we
57238         don't have to explain why we were using a bitfield width of 2.
57239
57240 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57243         and similarly for the other external symbols.  Problem reported
57244         by James Gallager.
57245
57246         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57247         bug reported by Jim Meyering.
57248
57249         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57251         not needed, since socklen is a prerequisite module.
57252
57253 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57256         Problem reported by Eric Blake.
57257         (getaddrinfo): Initialize se so that it's not garbage.
57258         Redo internal storage allocation so that it doesn't make unportable
57259         assumptions about alignment.
57260         Fix a memory leak.
57261
57262         * lib/utimens.c (futimens): Use futimesat if available.
57263         Prefer it to futimes since it doesn't have the futimes bug.
57264
57265         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57266         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57267         Instead, declare a function that returns a pointer to an array,
57268         and use verify_type__ to declare the size of the array.
57269         Problem and germ of a solution reported by Bruno Haible.
57270         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57271         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57272
57273 2005-09-23  Jim Meyering  <jim@meyering.net>
57274
57275         Sync from coreutils.
57276         Correct build failure (socklen_t not defined) on at least
57277         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57279
57280 2005-09-23  Jim Meyering  <jim@meyering.net>
57281
57282         * modules/getaddrinfo (Depends-on): Add socklen.
57283
57284 2005-09-23  Bruno Haible  <bruno@clisp.org>
57285
57286         * tests/test-verify.c: New file.
57287
57288 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57289
57290         Sync from coreutils.
57291
57292         * modules/argmatch (Depends-on): Add verify.
57293         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57294         unistd-safer.
57295         * modules/save-cwd (Depends-on): Likewise.
57296
57297         * modules/openat (Files): Add lib/openat-die.c.
57298         (Depends-on): Remove error, exitfail.
57299         Add dirname.
57300
57301         * modules/verify: New file.
57302         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57303         with "verify" module.
57304
57305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57306
57307         Sync from coreutils.
57308
57309         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57310         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57311         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57312         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57313         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57314         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57315         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57316         Don't bother checking for string.h, stdlib.h, unistd.h.
57317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57318         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57319         module's job.
57320         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57321         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57322
57323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57324         (gl_GETDATE): Use it.
57325
57326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57327
57328 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57329
57330         Sync from coreutils.
57331
57332         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57333         stat-time.h.
57334         * lib/argmatch.h: Include verify.h
57335         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57336         (ARGMATCH_ASSERT): Remove; unused.
57337         * lib/canonicalize.c: Assume STDC_HEADERS.
57338         * lib/exclude.c: Include "strcase.h".
57339         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57340         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57341         and stdio-safer.h.
57342         (getusershell): Call fopen, not fopen_safer.
57343         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57344         Do not include unistd-safer.h.
57345         (save_cwd): Don't call fd_safer; no longer needed
57346         now that we include fcntl--.h.
57347
57348         * lib/getdate.y (relative_time): New type.
57349         (RELATIVE_TIME_0): New constant.
57350         (parser_control): Use relative_time instead of doing it ourselves.
57351         (%union): Add new relative_time rel member.
57352         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57353         Now typeless.
57354         (relunit, relunit_snumber): Now of type rel.
57355         (zone, rel, relunit, get_date): Adjust to above changes.
57356
57357         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57358         Do not include unistd-safer.h.
57359         (getloadavg): Don't call fd_safer; no longer needed
57360         now that we include fcntl--.h.
57361
57362         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57363         (make_dir_parents): Treat ENOSYS like EEXIST.
57364
57365         Improve quality of diagnostics on restore_cwd failure.
57366         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57367         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57368         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57369         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57370         each time through the loop.  Do not diagnose restore_cwd failure;
57371         that is the caller's job (and perhaps the caller does not care).
57372
57373         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57374         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57375         If the file already exists but is not a directory, don't bother
57376         to try to make its parents.
57377         Close potential file descriptor leak if we can't chdir("/") (!).
57378         Don't always return true if chdir($PWD) fails; return true only
57379         if the requested action was done successfully (except for the
57380         chdir($PWD)).
57381         Don't log final directory unless we actually made it.
57382         Refactor to avoid duplicate code to fix up permissions.
57383         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57384
57385         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57386         to make it a bit faster and (I hope) clearer.
57387         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57388         Fix bug in formats like %2N.
57389
57390         * lib/verify.h: New file.
57391
57392 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57393
57394         Sync from coreutils.
57395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57396
57397 2005-09-22  Jim Meyering  <jim@meyering.net>
57398
57399         Sync from coreutils.
57400
57401         * m4/lstat.m4 (gl_FUNC_LSTAT):
57402         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57403         Remove obsolete comment.
57404         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57405         * m4/xstrtod.m4: Likewise.
57406
57407         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57408
57409 2005-09-22  Jim Meyering  <jim@meyering.net>
57410
57411         Sync from coreutils.
57412
57413         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57414
57415         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57416         the .tm_year member, since otherwise gcc-4.0 would now warn about
57417         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57418
57419         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57420         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57421
57422         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57423         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57424         when run in a time zone for which daylight savings time is in effect
57425         for the starting date.
57426
57427         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57428         stop us from restricting permissions of just-created absolute-named
57429         directories.
57430         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57431         to restore initial working directory.
57432         * lib/mkdir-p.c (make_dir_parents): New parameter:
57433         different_working_dir, to tell caller if/when we change the working
57434         directory and are unable to return to the initial one.
57435         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57436         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57437         `return false'.  This fixes a bug introduced on 2004-07-30.
57438
57439         * lib/openat.c (fdopendir): Be sure to close the supplied
57440         file descriptor before returning.  This makes our replacement
57441         implementation a little closer to Solaris's, where fdopendir
57442         ties the file descriptor to the returned DIR* pointer.
57443         * lib/openat.c (unlinkat): New function.
57444         * lib/openat.h (unlinkat): Add prototype.
57445         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57446         (openat_restore_fail): Rename from openat_restore_die.
57447         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57448
57449         Provide an alternative to exiting immediately upon save_cwd or
57450         restore_cwd failure.  Now, an application can arrange e.g.,
57451         to perform a longjump in that case.
57452         * lib/openat.c: Include dirname.h.
57453         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57454         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57455         and openat_restore_die rather than calling error directly.
57456         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57457
57458         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57459         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57460         define.
57461
57462         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57463         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57464                             int utc, int nanoseconds);
57465         Background:
57466         date should not have to allocate a megabyte of virtual memory to
57467         handle a format argument like +%1048575T.  When implemented with
57468         strftime, it must allocate such a buffer, use strftime to fill it
57469         in, print it, then free it.
57470         With fprintftime, it simply prints everything and exits.
57471         With no need for memory allocation, that's one fewer way to fail.
57472         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57473         optional field width, not before, so we accept %9:z, not %:9z.
57474         (my_strftime): Be sure to use L_('x') for literals.
57475
57476         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57477         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57478         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57479         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57480         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57481         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57482         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57483         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57484         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57485         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57486         * lib/xgethostname.c, lib/xreadlink.c:
57487         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57488
57489         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57490         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57491         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57493         and don't include <sys/file.h>).
57494
57495 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57496
57497         Sync from coreutils.
57498
57499         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57500         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57501         [!LDAV_DONE]: Avoid unused variable warning.
57502
57503 2005-09-21  Bruno Haible  <bruno@clisp.org>
57504
57505         * lib/unicodeio.h (unicode_to_mb): New declaration.
57506
57507 2005-09-20  Derek Price  <derek@ximbiot.com>
57508
57509         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57510         getaddrinfo.h.
57511
57512 2005-09-20  Bruno Haible  <bruno@clisp.org>
57513
57514         * gnulib-tool: Remove trailing slashes from the values specified for
57515         --source-base, --m4-base, --tests-base, --aux-dir.
57516         Suggested by Simon Josefsson <jas@extundo.com>.
57517
57518 2005-09-20  Bruno Haible  <bruno@clisp.org>
57519
57520         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57521         func_modules_to_filelist, func_import, func_create_testdir): Make all
57522         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57523         change when gnulib-tool is invoked in a different locale.
57524
57525 2005-09-19  Simon Josefsson  <jas@extundo.com>
57526
57527         * m4/socklen.m4: Fix typo.
57528
57529 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57530
57531         Use a consistent style for including <config.h>.
57532         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57533         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57534         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57535         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57536         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57537         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57538         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57539         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57540         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57541         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57542         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57543         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57544         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57545         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57546         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57547         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57548         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57549         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57550         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57551         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57552         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57553         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57554         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57555         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57556         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57557         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57558         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57559         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57560         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57561         lib/xstrtoumax.c, lib/yesno.c:
57562         Standardize inclusion of config.h.
57563         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57564         lib/inttostr.h:  Removed inclusion of config.h from header files.
57565         * lib/inttostr.c:  Adjusted in-tree users.
57566         * lib/timespec.h: Remove superfluous warning to include config.h.
57567         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57568         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57569         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57570         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57571         config.h with HAVE_CONFIG_H.
57572
57573 2005-09-19  Jim Meyering  <jim@meyering.net>
57574
57575         * modules/pathmax (License): Change to LGPL.
57576
57577 2005-09-19  Derek Price  <derek@ximbiot.com>
57578
57579         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57580
57581 2005-09-19  Bruno Haible  <bruno@clisp.org>
57582
57583         * gnulib-tool (import): Provide default for --tests-base.
57584
57585 2005-09-19  Bruno Haible  <bruno@clisp.org>
57586
57587         * doc/quote.texi: New file, extracted from gnulib.texi.
57588         * doc/ctime.texi: New file, extracted from gnulib.texi.
57589         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57590         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57591         * doc/gnulib.texi: Include them.
57592
57593 2005-09-18  Bruno Haible  <bruno@clisp.org>
57594
57595         Portability fix.
57596         * gnulib-tool (func_readlink): New function.
57597         (func_ln_if_changed): Use it.
57598
57599 2005-09-18  Bruno Haible  <bruno@clisp.org>
57600
57601         * gnulib-tool: Support --with-tests also with --import.
57602         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57603         (func_import): Use variables $testsbase and $inctests. Emit a
57604         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57605         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57606         SUBDIRS += $testsdir.
57607         (func_create_testdir): Update.
57608
57609 2005-09-18  Bruno Haible  <bruno@clisp.org>
57610
57611         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57612         instead of $dry_run.
57613         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57614         (func_ln_if_changed): Don't handle dry-run here.
57615         (func_import): In dry-run mode, detect more precisely which actions
57616         would be performed, and don't use "...ing" verbs.
57617
57618 2005-09-18  Bruno Haible  <bruno@clisp.org>
57619
57620         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57621         (func_import): Use join on two temporary files instead of three nested
57622         loops, in order to determine which files are new or old.
57623
57624 2005-09-18  Bruno Haible  <bruno@clisp.org>
57625
57626         * gnulib-tool (func_import): Comment out code that spits out the
57627         new files with --dry-run.
57628
57629 2005-09-18  Bruno Haible  <bruno@clisp.org>
57630
57631         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57632
57633 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         * lib/stat-time.h: New file.
57636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57637         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57638         in a different way.
57639         (timespec_cmp): New function.
57640         * lib/utimecmp.c: Include stat-time.h.
57641         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57642         members exist, not on the obsolescent ST_MTIM_NSEC.
57643         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57644
57645 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57648
57649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57650
57651         * MODULES.html.sh (File system functions): Add stat-time.
57652         * modules/stat-time: New file.
57653         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57654         is now done in a different way, by the stat-time module.
57655         * modules/utimecmp (Depends-on): Add stat-time.
57656
57657 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         * m4/st_mtim.m4: Remove.  Superseded by...
57660         * m4/stat-time.m4: New file.
57661         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57662         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57663
57664 2005-09-15  Derek Price  <derek@ximbiot.com>
57665
57666         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57667
57668 2005-09-15  Derek Price  <derek@ximbiot.com>
57669
57670         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57671         * lib/regex_internal.c: Ditto, using this...
57672         (__GNUC_PREREQ): ...new macro.
57673         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57674         using...
57675         (__GNUC_PREREQ): ...this new macro.
57676
57677         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57678
57679 2005-09-15  Derek Price  <derek@ximbiot.com>
57680             Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57683         changes, consolidating in...
57684         * lib/regex_internal.h: ...this file.
57685
57686 2005-09-13  Jim Meyering  <jim@meyering.net>
57687
57688         * lib/canon-host.c: Filter through gnu indent and reword comments
57689         slightly.
57690         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57691
57692 2005-09-13  Derek Price  <derek@ximbiot.com>
57693
57694         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57695         failure.
57696         Reported by Jim Meyering  <jim@meyering.net>.
57697
57698 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57699
57700         * lib/base64.c: Typo.
57701         (base64_encode): Put b64str in initialized data section.
57702
57703 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57704
57705         Merge glibc and coreutils changes into gnulib, plus a few
57706         extra fixes.
57707         * lib/md5.c: Use #error rather than a string.
57708         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57709         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57710         (__attribute__): Define to empty for non recent-GCC.
57711         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57712         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57713         Renamed from their non-__ counterparts, with new macros replacing
57714         them if not _LIBC.  Add __THROW attribute.
57715         (rol): Remove.
57716         (struct md5_ctx): Align buffer if using GCC.
57717         * lib/sha1.h (struct sha1_ctx): Likewise.
57718         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57719         The old name was backwards.
57720         (NOTSWAP): Remove; not used.
57721         (rol): New macro, moved here from md5.h.
57722         (sha1_process_block): Remove a FIXME that doesn't make sense.
57723
57724 2005-09-12  Derek Price  <derek@ximbiot.com>
57725
57726         Return usable errors from canon-host.
57727         * lib/canon-host.h: New file.
57728         * lib/canon-host.c (canon_host): Wrap...
57729         (canon_host_r): ...this new function, which now relies exclusively on
57730         getaddrinfo.
57731         (ch_strerror): New function.
57732         (last_cherror): New global.
57733         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57734         interface.
57735         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57736         void *.
57737         (freeaddrinfo): Free ai->ai_canonname when set.
57738
57739 2005-09-12  Derek Price  <derek@ximbiot.com>
57740
57741         Make canon-host require getaddrinfo.
57742         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57743         AC_LIBSOURCE canon-host.h.  Call...
57744         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57745         gl_GETADDRINFO.
57746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57747
57748 2005-09-12  Derek Price  <derek@ximbiot.com>
57749
57750         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57751         LGPL.
57752         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57753
57754 2005-09-12  Derek Price  <derek@ximbiot.com>
57755
57756         * lib/gai_strerror.c: Include config.h when available.  Include
57757         getaddrinfo.h before other headers to test interface.
57758         Reported by Larry Jones <lawrence.jones@ugs.com>.
57759
57760 2005-09-12  Derek Price  <derek@ximbiot.com>
57761             Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         * modules/glob (Files): Add glob-libc.h.
57764
57765 2005-09-12  Derek Price  <derek@ximbiot.com>
57766             Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57769         glob_.h, glob-libc.h.
57770         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57771
57772 2005-09-12  Derek Price  <derek@ximbiot.com>
57773             Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57776         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57777         protecting things that should be done only in gnulib contexts.
57778         * lib/glob_.h: New file, containing only the glob things needed for
57779         gnulib.
57780         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57781         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57782         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57783         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57784         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57785         and to respect the namespace rules better.
57786
57787 2005-09-08  Simon Josefsson  <jas@extundo.com>
57788
57789         * modules/socklen: New file.
57790
57791 2005-09-08  Simon Josefsson  <jas@extundo.com>
57792
57793         * m4/socklen.m4: New file.
57794
57795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57796
57797         * modules/utimens (Files): Add m4/utimbuf.m4, since
57798         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57799         Reported by Sergey Poznyakoff.
57800
57801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57802
57803         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57804         definitions, since that's the preferred style in glibc.
57805         Fix a minor spacing issue, and update copyright notice to match
57806         glibc's.
57807
57808 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57811
57812 2005-09-06  Simon Josefsson  <jas@extundo.com>
57813
57814         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57815         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57816
57817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57818
57819         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57820         warning.
57821
57822 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * config/srclist.txt: Add glibc bug 1302.
57825
57826 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         Change bitset word type from unsigned int to unsigned long int,
57829         as this has better performance on typical 64-bit hosts.
57830         Port bitset code to hosts with unusual word sizes.
57831         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57832         (build_collating_symbol):
57833         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57834         argument is a bitset.  This is merely a style issue, but it makes
57835         it clearer that an entire array is expected.
57836         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57837         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57838         Port to the case where bitset_word is not the same as unsigned int.
57839         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57840         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57841         Likewise.
57842         * lib/regexec.c (check_dst_limits_calc_pos_1,
57843         check_subexp_matching_top):
57844         (build_trtable, group_nodes_into_DFAstates):
57845         Likewise.
57846         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57847         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57848         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57849         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57850         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57851         * lib/regcomp.c (optimize_subexps, lower_subexp):
57852         Work even if bitset_word has holes in its bitwise representation.
57853         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57854         * lib/regexec.c (check_dst_limits_calc_pos_1,
57855         check_subexp_matching_top):
57856         Likewise.
57857         * lib/regex_internal.c (re_string_reconstruct):
57858         Don't assume UCHAR_MAX == 255.
57859         * lib/regex_internal.h (bitset_set_all): Likewise.
57860         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57861         All uses changed.
57862         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57863         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57864         All uses changed.
57865         (BITSET_WORD_MAX): New macro.
57866         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57867         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57868         (bitset_empty, bitset_copy):
57869         Prefer sizeof (bitset) to multiplying it out ourselves.
57870         (bitset_not_merge): Remove; unused.
57871         (bitset_contain): Return bool, not unsigned int with one bit on.
57872         All callers changed.
57873         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57874         alignment than re_node_set; do this by defining a new internal
57875         type struct dests_alloc and using it to allocate memory.
57876
57877 2005-09-05  Bruno Haible  <bruno@clisp.org>
57878
57879         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57880         links.
57881
57882 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57883
57884         * modules/size_max (Makefile.am): Add size_max.h
57885
57886 2005-09-04  Derek Price  <derek@ximbiot.com>
57887
57888         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57889
57890 2005-09-03  Simon Josefsson  <jas@extundo.com>
57891
57892         * gnulib-tool: Fix typo.
57893
57894 2005-09-03  Simon Josefsson  <jas@extundo.com>
57895
57896         * config/srclist.txt: Add glibc bug 1293.
57897
57898 2005-09-03  Derek Price  <derek@ximbiot.com>
57899
57900         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57901         From Larry Jones <lawrence.jones@ugs.com>.
57902
57903 2005-09-02  Simon Josefsson  <jas@extundo.com>
57904
57905         * modules/socklen: New file.
57906
57907 2005-09-02  Simon Josefsson  <jas@extundo.com>
57908
57909         * modules/havelib: New module.
57910
57911         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57912         Use havelib.
57913
57914 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57915
57916         Check for arithmetic overflow when calculating sizes, to prevent
57917         some buffer-overflow issues.  These patches are conservative, in the
57918         sense that when I couldn't determine whether an overflow was possible,
57919         I inserted a run-time check.
57920         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57921         macros.
57922         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57923         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57924         (re_xnrealloc, re_x2nrealloc): New inline functions.
57925         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57926         parse_bracket_exp):
57927         (build_equiv_class, build_charclass): Check for arithmetic overflow
57928         in size expression calculations.
57929         * lib/regex_internal.c (re_string_realloc_buffers):
57930         (build_wcs_upper_buffer, re_node_set_add_intersect):
57931         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57932         (re_dfa_add_node, register_state): Likewise.
57933         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57934         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57935         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57936         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57937
57938 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57939
57940         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57941         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57942
57943 2005-09-02  Bruno Haible  <bruno@clisp.org>
57944
57945         Support for lib vs. lib64 distinction on biarch platforms.
57946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57947         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57949
57950 2005-09-02  Bruno Haible  <bruno@clisp.org>
57951
57952         * gnulib-tool (import): In the other first-use case, provide defaults
57953         as well.
57954
57955 2005-09-02  Bruno Haible  <bruno@clisp.org>
57956
57957         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57958         patches not yet found in the latest gettext release.
57959
57960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57963         to avoid a collision with bits/local_lim.h in glibc.
57964         All uses changed.  Problem reported by Dmitry V. Levin in
57965         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57966
57967         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57968         bugs in int versus size_t comparisons.
57969         (re_string_context_at): Fix bug where the code assumed that
57970         Idx is signed.
57971
57972         Use bool where appropriate.
57973         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57974         All callers changed.
57975         (calc_eclosure_iter): Likewise, for ROOT arg.
57976         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57977         (build_charclass_op): Likewise, for NON_MATCH arg.
57978         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57979         (re_string_construct_common): Likewise, for ICASE arg.
57980         * lib/regexec.c (re_search_2_stub, re_search_stub):
57981         Likewise, for RET_LEN arg.
57982         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57983         (set_regs): Likewise, for FL_BACKTRACK arg.
57984         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57985         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57986         (calc_eclosure_iter, parse_bracket_exp):
57987         Use bool for internal variables that are booleans.
57988         * lib/regexec.c (re_search_internal, check_matching,
57989         proceed_next_node):
57990         (set_regs, build_sifted_states, sift_states_bkref):
57991         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57992         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57993         (find_collation_sequence_value):
57994         Likewise.
57995         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57996         (re_node_set_compare):
57997         Return bool, not int. All callers changed.
57998         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57999         (build_trtable, check_node_accept): Likewise.
58000         * lib/regex_internal.h: Include stdbool.h.
58001
58002         Fix bugs uncovered when converting to bool.
58003         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58004         failure instead of charging ahead blindly.
58005         * lib/regex_internal.c (register_state): Likewise.
58006         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58007         for freeing internal storage.
58008         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58009         bitset pieces used as boolean, to avoid undefined behavior
58010         on hosts that do int overflow checking.
58011
58012 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * config/srclist.txt: Add glibc bugs 1285-1287.
58015
58016 2005-09-01  Jim Meyering  <jim@meyering.net>
58017
58018         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58019         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58020         Require gl_STAT_MACROS, too.
58021
58022 2005-09-01  Bruno Haible  <bruno@clisp.org>
58023
58024         * gnulib-tool (import): In the first-use case, provide defaults.
58025
58026 2005-09-01  Bruno Haible  <bruno@clisp.org>
58027
58028         * gnulib-tool (func_import): Remove the .tmp files.
58029
58030 2005-09-01  Bruno Haible  <bruno@clisp.org>
58031
58032         * gnulib-tool (func_import): Fix handling of symbolic links.
58033
58034 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58037         old glibc regex code mishandles strings longer than 2**31 bytes.
58038         This patch fixes this when the regex code is used in gnulib
58039         (i.e., outside glibc).
58040
58041         This patch should not affect the use of the regex code inside
58042         glibc.  No doubt this problem also needs to be handled for glibc
58043         as well, but the result will be an incompatible change to the
58044         glibc ABI, and the old ABI will have to be supported too.  That
58045         can be the the subject for another patch.
58046
58047         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58048         governing whether the rest of this patch is active.  By default,
58049         the macro is disabled and the patch has no effect.
58050         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58051         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58052         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58053         (re_match_2, re_set_registers): Use the new types.
58054         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58055         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58056         New macros.
58057         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58058         (re_string_context_at, bin_tree_t, re_dfastate_t):
58059         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58060         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58061         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58062         (re_string_char_size_at, re_string_wchar_at):
58063         (re_string_elem_size_at):
58064         Use the new types and macros to port to 64-bit hosts.
58065         Use unsigned types for internal values, so that the code
58066         mostly works even for arrays larger than SSIZE_MAX.
58067         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58068         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58069         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58070         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58071         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58072         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58073         (calc_inveclosure, parse_dup_op, build_range_exp):
58074         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58075         (fetch_number, create_token_tree, mark_opt_subexp):
58076         Likewise.
58077         * lib/regex_internal.c (re_string_construct_common,
58078         create_ci_newstate):
58079         (create_cd_newstate, re_string_allocate, re_string_construct):
58080         (re_string_realloc_buffers, build_wcs_upper_buffer):
58081         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58082         (re_string_reconstruct, re_string_peek_byte_case):
58083         (re_string_fetch_byte_case, re_string_context_at):
58084         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58085         (re_node_set_init_copy, re_node_set_add_intersect):
58086         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58087         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58088         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58089         (re_acquire_state, re_acquire_state_context, register_state):
58090         Likewise.
58091         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58092         search_cur_bkref_entry):
58093         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58094         (re_search_internal, re_search_2_stub, re_search_stub)
58095         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58096         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58097         (update_cur_sifted_state, check_dst_limits):
58098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58099         (check_subexp_limits, sift_states_bkref, merge_state_array):
58100         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58101         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58102         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58103         (expand_bkref_cache, check_node_accept_bytes):
58104         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58105         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58106         (acquire_init_state_context, check_halt_node_context):
58107         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58108         (sift_states_backward, clean_state_log_if_needed):
58109         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58110         (find_recover_state, transit_state_sb, transit_state_mb):
58111         (transit_state_bkref, build_trtable, match_ctx_clean):
58112         Likewise.
58113         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58114         to work around an assumption that REG_MISSING is negative.
58115
58116         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58117         (seek_collating_symbol_entry) [defined _LIBC]:
58118         (lookup_collation_sequence_value) [defined _LIBC]:
58119         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58120         Use prototypes rather than old-style function definitions.
58121         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58122         (transit_state_sb) [0]:
58123         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58124
58125         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58126         rm_eo.
58127
58128         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58129         (optimize_subexps, lower_subexp):
58130         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58131         since the signed shift might overflow.  Use 1u<<31 instead.
58132         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58133         Likewise.
58134         * lib/regexec.c (check_dst_limits_calc_pos_1,
58135         check_subexp_matching_top): Likewise.
58136
58137         * lib/regcomp.c (optimize_subexps, lower_subexp):
58138         Use CHAR_BIT rather than 8, for clarity.
58139         * lib/regexec.c (check_dst_limits_calc_pos_1):
58140         (check_subexp_matching_top): Likewise.
58141         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58142         have to worry about portability issues when shifting it left.
58143         Remove no-longer-needed test for table_size > 0.
58144         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58145         in a word, as the resulting behavior is undefined.
58146         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58147         in one case, a <= should have been an <, and in another case the
58148         whole test was missing.
58149         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58150         the standard name CHAR_BIT.
58151         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58152         this is not true on one's complement and signed-magnitude hosts.
58153
58154         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58155         next_last_offset.
58156         (struct re_dfa_t): Remove unused member states_alloc.
58157         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58158
58159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58160
58161         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58162         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58163         and large-file glibc and in 32-bit large-file Solaris.
58164
58165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58166
58167         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58168         lengths fit in regoff_t; this isn't true if regoff_t is the same
58169         width as size_t.
58170         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58171         (= START + RANGE) instead of RANGE.  This avoids overflow
58172         problems when regoff_t is the same width as size_t.
58173         All callers changed.
58174         (re_search_2_stub): Check for overflow when adding the
58175         sizes of the two strings.
58176         (re_search_stub): Check for overflow when adding START
58177         to RANGE; if it occurs, substitute the extreme value.
58178
58179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58180
58181         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58182
58183 2005-08-31  Jim Meyering  <jim@meyering.net>
58184
58185         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58186         a pointer-to-const.
58187         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58188         (register_state): Likewise.
58189         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58190         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58191         (group_nodes_into_DFAstates): Likewise.
58192
58193 2005-08-31  Jim Meyering  <jim@meyering.net>
58194
58195         * check-module: Add a FIXME comment.
58196
58197 2005-08-31  Eric Blake  <ebb9@byu.net>
58198
58199         * modules/unistd-safer (Files): Add unistd--.h.
58200         * modules/stdio-safer (Files): Add stdio--.h.
58201
58202 2005-08-31  Derek Price  <derek@ximbiot.com>
58203
58204         * lib/getdelim.c (getdelim): Return EOF on EOF.
58205         Reported by Larry Jones <lawrence.jones@ugs.com>.
58206
58207 2005-08-31  Bruno Haible  <bruno@clisp.org>
58208
58209         Avoid unnecessary diffs in the generated lib/Makefile.am.
58210         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58211         the generated files.
58212         (func_import): Don't set cmd.
58213
58214 2005-08-31  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/strstr.c: Include <stddef.h>, for NULL.
58217         * lib/strcasestr.c: Likewise.
58218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58219
58220 2005-08-31  Bruno Haible  <bruno@clisp.org>
58221
58222         * gnulib-tool: New option --macro-prefix.
58223         (func_import): Use macro_prefix.
58224         (import): Handle option --macro-prefix.
58225
58226 2005-08-31  Bruno Haible  <bruno@clisp.org>
58227
58228         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58229         Also use new variables cached_lgpl, cached_libtool.
58230
58231 2005-08-31  Bruno Haible  <bruno@clisp.org>
58232
58233         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58234         always instantiating them.
58235
58236 2005-08-31  Bruno Haible  <bruno@clisp.org>
58237
58238         * gnulib-tool (func_import): Read the previous cached settings
58239         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58240         earlier added by gnulib but are now dropped. Warn when a gnulib file
58241         overwrites a non-gnulib file.
58242
58243 2005-08-31  Bruno Haible  <bruno@clisp.org>
58244
58245         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58246         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58247         projects that don't keep autogenerated files in CVS. Put into
58248         actioncmd only the specified modules, not the transitive closure.
58249
58250 2005-08-31  Bruno Haible  <bruno@clisp.org>
58251
58252         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58253         Create directories that shall be filled.
58254         (import): Don't look for gl_* macros in configure.ac. Recurse across
58255         all directories containing a gnulib-cache.m4 files, if meaningful.
58256
58257 2005-08-31  Bruno Haible  <bruno@clisp.org>
58258
58259         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58260         (import): Set seen_libtool when we see gl_LIBTOOL.
58261
58262 2005-08-31  Bruno Haible  <bruno@clisp.org>
58263
58264         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58265         declaration macro definitions from generated gnulib.m4.
58266
58267 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58268
58269         * lib/iconvme.h: Add prototype for iconv_alloc.
58270
58271 2005-08-29  Simon Josefsson  <jas@extundo.com>
58272
58273         * lib/iconvme.c: Fix errno.
58274
58275 2005-08-29  Bruno Haible  <bruno@clisp.org>
58276
58277         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58278         that it works when the directory contains spaces.
58279
58280 2005-08-29  Bruno Haible  <bruno@clisp.org>
58281
58282         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58283
58284 2005-08-29  Bruno Haible  <bruno@clisp.org>
58285
58286         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58287         Emit more advice.
58288
58289 2005-08-29  Bruno Haible  <bruno@clisp.org>
58290         and Stepan Kasal  <kasal@ucw.cz>
58291
58292         * check-module: If more parameters are given, check each of them
58293         separately; add more exceptions, as noted by Jim Meyering.
58294         (check_module): New procedure.
58295         (%exempt_header): Now contains all exceptions.
58296
58297 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58298
58299         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58300
58301 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58302
58303         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58304
58305 2005-08-28  Bruno Haible  <bruno@clisp.org>
58306
58307         * m4/gnulib-tool.m4: New file.
58308
58309 2005-08-27  Jim Meyering  <jim@meyering.net>
58310
58311         * modules/unistd-safer (Files): Add pipe-safer.c.
58312         * modules/fcntl-safer (Files): Add creat-safer.c.
58313
58314 2005-08-27  Jim Meyering  <jim@meyering.net>
58315
58316         * m4/stdlib-safer.m4: New file.  From coreutils.
58317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58319         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58321         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58322
58323 2005-08-27  Jim Meyering  <jim@meyering.net>
58324
58325         * lib/fopen-safer.c: Merge minor changes from coreutils.
58326         * lib/dup-safer.c: Likewise.
58327         * lib/fd-safer.c: Likewise.
58328
58329         Merge from coreutils.
58330         * lib/stdio--.h: New file.
58331         * lib/stdlib--.h: New file.
58332         * lib/mkstemp-safer.c: New file.
58333
58334         GNU tar needs these.
58335         * lib/pipe-safer.c: New file.
58336         * lib/creat-safer.c: New file.
58337         * lib/fcntl--.h (creat): Define to creat_safer.
58338         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58339         * lib/unistd--.h (pipe): Define to pipe_safer.
58340         * lib/unistd-safer.h: Declare pipe_safer.
58341
58342 2005-08-26  Simon Josefsson  <jas@extundo.com>
58343
58344         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58345         Haible <bruno@clisp.org>.
58346
58347 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         * lib/regex_internal.h: Remove all references to
58350         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58351         or better.
58352         (bitset_not, bitset_merge, bitset_not_merge):
58353         (bitset_mask, re_string_allocate, re_string_construct):
58354         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58355         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58356         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58357         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58358         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58359         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58360         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58361         (re_acquire_state_context):
58362         Remove unnecessary forward decls.
58363         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58364         Put __attribute at function definition,
58365         now that the function decl has been removed.
58366         * lib/regex_internal.c (re_string_peek_byte_case):
58367         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58368         Likewise.
58369
58370 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58371
58372         * m4/regex.m4: Add AC_PREREQ(2.50).
58373         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58374
58375 2005-08-25  Simon Josefsson  <jas@extundo.com>
58376
58377         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58378         __fsetlocking.
58379
58380 2005-08-25  Simon Josefsson  <jas@extundo.com>
58381
58382         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58383         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58384         GLIBC specific code.
58385
58386 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         Make regex safe for g++.  This fixes one real bug (an "err"
58389         that should have been "*err").  g++ problem reported by
58390         Sam Steingold.
58391         * lib/regex_internal.h (re_calloc): New macro, consistent with
58392         re_malloc etc.  All callers of calloc changed to use re_calloc.
58393         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58394         not int.  All callers changed.
58395         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58396         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58397         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58398         (find_recover_state): Change "err" to "*err"; this fixes what
58399         appears to be a real bug.
58400         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58401         versus int.
58402
58403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58404
58405         * modules/regex (Depends-on): Add malloc, since the code
58406         assumes that !malloc(0) means failure.
58407
58408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58409
58410         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58411
58412         alloca modernization/simplification for regex.
58413         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58414         needs to be at the start of the file, and can be moved into
58415         regex_internal.h and simplified.
58416         * lib/regex_internal.h: Include <alloca.h>.
58417         (__libc_use_alloca) [!defined _LIBC]: New macro.
58418         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58419         now works outside glibc.
58420
58421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         * config/srclist.txt: Add glibc bugs 1241, 1245.
58424
58425 2005-08-25  Jim Meyering  <jim@meyering.net>
58426
58427         * lib/open-safer.c: Include <config.h>.
58428         Otherwise, we'd lose LARGEFILE support in any file using
58429         e.g. "fcntl--.h"
58430
58431 2005-08-25  Bruno Haible  <bruno@clisp.org>
58432
58433         * m4/minmax.m4: Require autoconf 2.52.
58434         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58435         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58436         alternatives of translit over the alphabet.
58437         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58438
58439 2005-08-24  Simon Josefsson  <jas@extundo.com>
58440
58441         * tests/test-getpass.c: New file.
58442
58443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58446         for GNU regex features.
58447
58448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58451         * lib/regex.h (regerror): Likewise.
58452
58453         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58454         requires this.  (The code never needed it.)
58455
58456         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58457         All uses of recently-renamed identifiers changed to use the new,
58458         POSIX-compliant names.  The code will build and run just fine
58459         without these changes, but it's better to eat our own dog food
58460         and use the standard-conforming names.
58461
58462         * lib/regex.h: Fix a multitude of POSIX name space violations.
58463         These changes have an effect only for programs that define
58464         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58465         do not change anything for programs compiled in the normal way.
58466         Also, there is no effect on the ABI.
58467
58468         (_REGEX_SOURCE): New macro.
58469         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58470         defined and _GNU_SOURCE is not; this fixes a name space violation.
58471
58472         Rename the following macros to obey POSIX requirements.
58473         The old names are still visible as macros if _REGEX_SOURCE is defined.
58474         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58475         RE_BACKSLASH_ESCAPE_IN_LISTS.
58476         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58477         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58478         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58479         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58480         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58481         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58482         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58483         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58484         (REG_INTERVALS): renamed from RE_INTERVALS.
58485         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58486         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58487         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58488         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58489         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58490         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58491         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58492         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58493         RE_UNMATCHED_RIGHT_PAREN_ORD.
58494         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58495         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58496         (REG_DEBUG): renamed from RE_DEBUG.
58497         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58498         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58499         unusual, since we can't clash with the POSIX REG_ICASE.
58500         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58501         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58502         (REG_NO_SUB): renamed from RE_NO_SUB.
58503         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58504         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58505         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58506         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58507         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58508         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58509         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58510         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58511         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58512         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58513         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58514         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58515         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58516         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58517         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58518         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58519         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58520         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58521         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58522         (REG_FIXED): Renamed from REGS_FIXED.
58523         (REG_NREGS): Renamed from RE_NREGS.
58524
58525         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58526         of other REG_* macros, since POSIX says the user is allowed to
58527         #undef these macros selectively.
58528
58529         (reg_errcode_t): Update comment stating what other tables need
58530         to be consistent.
58531
58532         Rename the following enum values to obey POSIX requirements.
58533         The old names are still visible as macros.
58534         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58535         is not defined, since GNU is supposed to be a superset of POSIX as
58536         much as possible, and since we want reg_errcode_t to be a signed
58537         type for implementation consistency.
58538         (_REG_NOERROR): Renamed from REG_NOERROR.
58539         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58540         (_REG_BADPAT): Renamed from REG_BADPAT.
58541         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58542         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58543         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58544         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58545         (_REG_EBRACK): Renamed from REG_EBRACK.
58546         (_REG_EPAREN): Renamed from REG_EPAREN.
58547         (_REG_EBRACE): Renamed from REG_EBRACE.
58548         (_REG_BADBR): Renamed from REG_BADBR.
58549         (_REG_ERANGE): Renamed from REG_ERANGE.
58550         (_REG_ESPACE): Renamed from REG_ESPACE.
58551         (_REG_BADRPT): Renamed from REG_BADRPT.
58552         (_REG_EEND): Renamed from REG_EEND.
58553         (_REG_ESIZE): Renamed from REG_ESIZE.
58554         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58555         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58556         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58557         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58558         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58559
58560         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58561         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58562         changed.  But support the old name if the new one is not defined
58563         and if _REGEX_SOURCE.
58564
58565         Change the following member names in struct re_pattern_buffer.
58566         The old names are still supported if !_REGEX_SOURCE.
58567         The new names are always supported, regardless of _REGEX_SOURCE.
58568         (re_buffer): Renamed from buffer.
58569         (re_allocated): Renamed from allocated.
58570         (re_used): Renamed from used.
58571         (re_syntax): Renamed from syntax.
58572         (re_fastmap): Renamed from fastmap.
58573         (re_translate): Renamed from translate.
58574         (re_can_be_null): Renamed from can_be_null.
58575         (re_regs_allocated): Renamed from regs_allocated.
58576         (re_fastmap_accurate): Renamed from fastmap_accurate.
58577         (re_no_sub): Renamed from no_sub.
58578         (re_not_bol): Renamed from not_bol.
58579         (re_not_eol): Renamed from not_eol.
58580         (re_newline_anchor): Renamed from newline_anchor.
58581
58582         Change the following member names in struct re_registers.
58583         The old names are still supported if !_REGEX_SOURCE.
58584         The new names are always supported, regardless of _REGEX_SOURCE.
58585         (rm_num_regs): Renamed from num_regs.
58586         (rm_start): Renamed from start.
58587         (rm_end): Renamed from end.
58588
58589         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58590         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58591         Prepend __ to parameter names.
58592
58593         Undo yesterday's changes.
58594
58595 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58598         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58599         lib/regex.c.
58600
58601 2005-08-24  Jim Meyering  <jim@meyering.net>
58602
58603         Sync from coreutils.
58604         * m4/fcntl-safer.m4: New file.
58605
58606         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58607         and object files for this module.
58608
58609 2005-08-24  Jim Meyering  <jim@meyering.net>
58610
58611         Sync from coreutils.
58612         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58613
58614 2005-08-24  Jim Meyering  <jim@meyering.net>
58615
58616         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58617         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58618
58619 2005-08-24  Jim Meyering  <jim@meyering.net>
58620
58621         * modules/fcntl-safer: New module.
58622         * modules/fts (Depends-on): Add fcntl-safer.
58623         * MODULES.html.sh (File descriptor based Input/Output):
58624         Add fcntl-safer.
58625
58626 2005-08-24  Bruno Haible  <bruno@clisp.org>
58627
58628         Support for unit test modules.
58629         * modules/README: Mention tests modules.
58630         * modules/TEMPLATE-TESTS: New file.
58631         * gnulib-tool: New options --extract-tests-module, --with-tests and
58632         --tests-base (unused for the moment).
58633         (testsbase, inctests): New variables.
58634         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58635         (func_verify_module): Exclude TEMPLATE-TESTS.
58636         (func_verify_nontests_module, func_verify_tests_module): New functions.
58637         (func_get_dependencies): Add implicit dependency for tests modules.
58638         (func_get_tests_module): New function.
58639         (func_modules_transitive_closure): When --with-tests was specified,
58640         include the unit tests as well, unless explicitly avoided.
58641         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58642         (func_emit_tests_Makefile_am): New function.
58643         (func_create_testdir): When --with-tests was specified, emit a
58644         tests/ directory.
58645         * MODULES.html.sh (Future developments): Update.
58646
58647 2005-08-24  Bruno Haible  <bruno@clisp.org>
58648
58649         * modules/tls-tests: New file.
58650         * tests/test-tls.c: New file, from GNU gettext.
58651
58652 2005-08-24  Bruno Haible  <bruno@clisp.org>
58653
58654         * modules/lock-tests: New file.
58655         * tests/test-lock.c: New file, from GNU gettext.
58656
58657 2005-08-24  Bruno Haible  <bruno@clisp.org>
58658
58659         * lib/lock.h: Add multiple inclusion guard.
58660         * lib/tls.h: Add multiple inclusion guard.
58661
58662 2005-08-24  Bruno Haible  <bruno@clisp.org>
58663
58664         * gnulib-tool: Add support for the --aux-dir option to
58665         --create-testdir, --create-megatestdir, --test, --megatest.
58666         (func_create_testdir, func_create_megatestdir): Optionally emit a
58667         AC_CONFIG_AUX_DIR directive.
58668         (create-testdir, create-megatestdir, test, megatest): Provide a
58669         default value for $auxdir.
58670
58671 2005-08-24  Bruno Haible  <bruno@clisp.org>
58672
58673         * gnulib-tool (import): Use compound statement instead of subshell
58674         where possible.
58675
58676 2005-08-24  Bruno Haible  <bruno@clisp.org>
58677
58678         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58679
58680 2005-08-24  Bruno Haible  <bruno@clisp.org>
58681
58682         * gnulib-tool (func_version): Update.
58683
58684 2005-08-24  Bruno Haible  <bruno@clisp.org>
58685
58686         * gnulib-tool (func_import, func_create_testdir,
58687         func_create_megatestdir): Quote all autoconf macro arguments.
58688
58689 2005-08-24  Bruno Haible  <bruno@clisp.org>
58690
58691         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58692         option --force, because --force causes the aclocal.m4 of each
58693         subdirectory to be newer than the corresponding config.h.in.
58694
58695 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58698         All contents moved to gl_REGEX.
58699         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58700         assume that it does.
58701
58702 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * lib/regex.h (REG_NOSYS)
58705         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58706         Define, since POSIX requires it as of 2001.
58707         (_REG_ENOSYS)
58708         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58709         New private symbol, used to keep the enum signed in all cases.
58710         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58711         Youngman in
58712         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58713
58714         * lib/regex_internal.c (re_string_skip_chars, register_state):
58715         (calc_state_hash):
58716         Remove forward decls; no longer needed now that we use prototypes.
58717         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58718         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58719         (clean_state_log_if_needed): Likewise.
58720
58721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58722
58723         * config/srclist.txt: Add glibc bugs 1231-1233.
58724
58725 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         Fix problems reported by Sam Steingold in
58728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58729         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58730         assumed that reg_errcode_t is a signed type, which is not
58731         necessarily true if _XOPEN_SOURCE is not defined.
58732         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58733         since some compilers warn about it otherwise.
58734
58735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58738         (init_word_char, create_initial_state, duplicate_node_closure):
58739         (fetch_token, peek_token_bracket, build_range_exp):
58740         (build_collating_symbol): Remove forward decls; no longer needed
58741         now that we use prototypes.
58742
58743         * lib/regcomp.c:
58744         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58745         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58746         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58747         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58748         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58749         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58750         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58751         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58752         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58753         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58754         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58755         (build_charclass, build_charclass_op, fetch_number, create_tree):
58756         (create_token_tree, mark_opt_subexp, duplicate_tree):
58757         Use prototypes rather than old-style definitions.
58758
58759         * lib/regex_internal.c:
58760         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58761         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58762         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58763         (re_string_reconstruct, re_string_peek_byte_case):
58764         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58765         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58766         (re_node_set_init_copy, re_node_set_add_intersect):
58767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58769         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58770         (re_acquire_state, re_acquire_state_context, register_state):
58771         (create_ci_newstate, create_cd_newstate, free_state):
58772         Likewise.
58773         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58774         re_search_2):
58775         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58776         (re_search_internal, prune_impossible_nodes):
58777         (acquire_init_state_context, check_matching, static):
58778         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58779         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58780         (update_regs, sift_states_backward, build_sifted_states):
58781         (clean_state_log_if_needed, merge_state_array):
58782         (update_cur_sifted_state, add_epsilon_src_nodes):
58783         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58784         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58785         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58786         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58787         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58788         (check_arrival, check_arrival_add_next_nodes):
58789         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58790         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58791         (check_node_accept_bytes, check_node_accept, extend_buffers):
58792         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58793         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58794         (sift_ctx_init):
58795         Likewise.
58796
58797         * lib/regex_internal.h:
58798         (re_string_allocate, re_string_construct, re_string_reconstruct):
58799         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58800         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58801         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58802         (re_string_context_at, re_string_peek_byte_case):
58803         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58804         is defined, since we now use prototypes always.
58805
58806         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58807         C89 or better.  All uses removed.
58808
58809 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         * config/srclist.txt: Add glibc bugs 1220-1227.
58812
58813 2005-08-20  Jim Meyering  <jim@meyering.net>
58814
58815         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58816         of unused local, dfa.
58817
58818 2005-08-20  Bruno Haible  <bruno@clisp.org>
58819
58820         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58821
58822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58825         (re_node_set_insert_last, re_dfa_add_node):
58826         Rename local variables to avoid GCC shadowing warnings.
58827
58828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58829
58830         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58831         [defined lint]: Suppress bogus uninitialized-variable warnings.
58832
58833         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58834         and let the caller return REG_ESPACE if out of space.  This
58835         removes an uninitialied-variable warning with GCC 4.0.1, and also
58836         avoids taking the address of a local variable.  All callers
58837         changed.
58838
58839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58840
58841         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58842         $LIBCSRC/posix/regexec.c.
58843         Add glibc bug 1217 for regcomp.c.
58844
58845 2005-08-19  Jim Meyering  <jim@meyering.net>
58846
58847         * lib/regexec.c (proceed_next_node): Redo local variables to
58848         avoid GCC shadowing warnings.
58849
58850 2005-08-18  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/strstr.c (strstr): Fix return value in multibyte case.
58853         * lib/strcasestr.c (strcasestr): Likewise.
58854
58855 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58858
58859 2005-08-17  Jim Meyering  <jim@meyering.net>
58860
58861         Make the %s format (seconds since the epoch) work for a negative
58862         number and when used with a zero-padded field width, e.g. %015s.
58863
58864         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58865         label so that it precedes the code to set `digits'.  Otherwise,
58866         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58867         print `00-22'.  Now, it prints `-0022', as it should.
58868
58869 2005-08-17  Bruno Haible  <bruno@clisp.org>
58870
58871         * modules/strstr (Files): Add m4/mbrtowc.m4.
58872         (Depends-on): Add mbuiter.
58873
58874 2005-08-17  Bruno Haible  <bruno@clisp.org>
58875
58876         * modules/strcasestr: New file.
58877         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58878         strcasestr.
58879
58880 2005-08-17  Bruno Haible  <bruno@clisp.org>
58881
58882         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58883
58884 2005-08-17  Bruno Haible  <bruno@clisp.org>
58885
58886         * modules/mbuiter: New file.
58887         * MODULES.html.sh (Extended multibyte and wide character utilities):
58888         Add mbuiter.
58889
58890 2005-08-17  Bruno Haible  <bruno@clisp.org>
58891
58892         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58893         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58894
58895 2005-08-17  Bruno Haible  <bruno@clisp.org>
58896
58897         * m4/strcasestr.m4: New file.
58898
58899 2005-08-17  Bruno Haible  <bruno@clisp.org>
58900
58901         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58902         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58903
58904 2005-08-17  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/strcasestr.h: New file.
58907         * lib/strcasestr.c: New file.
58908
58909 2005-08-17  Bruno Haible  <bruno@clisp.org>
58910
58911         * lib/strcasecmp.c: Use mbuiter.h.
58912
58913 2005-08-17  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/mbuiter.h: New file.
58916
58917 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58918
58919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58920         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58921         and gl_GETOPT are both invoked via different paths (as happens
58922         with GNU tar CVS because it uses both argp and getopt), the former
58923         wins.
58924
58925 2005-08-16  Bruno Haible  <bruno@clisp.org>
58926
58927         * modules/tls: New file.
58928         * MODULES.html.sh (Multithreading): Add tls.
58929
58930 2005-08-16  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/strnlen1: New file.
58933         * MODULES.html.sh (String handling): Add strnlen1.
58934
58935 2005-08-16  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/strcase (Files): Add m4/mbrtowc.m4.
58938         (Depends-on): Add strnlen1, mbchar.
58939
58940 2005-08-16  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/mbiter: New file.
58943         * MODULES.html.sh (Extended multibyte and wide character utilities):
58944         Add mbiter.
58945
58946 2005-08-16  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/mbfile: New file.
58949         * MODULES.html.sh (Extended multibyte and wide character utilities):
58950         Add mbfile.
58951
58952 2005-08-16  Bruno Haible  <bruno@clisp.org>
58953
58954         * modules/mbchar: New file.
58955         * MODULES.html.sh (Extended multibyte and wide character utilities):
58956         New section.
58957
58958 2005-08-16  Bruno Haible  <bruno@clisp.org>
58959
58960         * m4/tls.m4: New file, from GNU gettext.
58961
58962 2005-08-16  Bruno Haible  <bruno@clisp.org>
58963
58964         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58965         always.
58966         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58967
58968 2005-08-16  Bruno Haible  <bruno@clisp.org>
58969
58970         * m4/mbiter.m4: New file.
58971
58972 2005-08-16  Bruno Haible  <bruno@clisp.org>
58973
58974         * m4/mbfile.m4: New file.
58975
58976 2005-08-16  Bruno Haible  <bruno@clisp.org>
58977
58978         * m4/mbchar.m4: New file.
58979
58980 2005-08-16  Bruno Haible  <bruno@clisp.org>
58981
58982         * lib/tls.h: New file, from GNU gettext.
58983         * lib/tls.c: New file, from GNU gettext.
58984
58985 2005-08-16  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/strnlen1.h: New file.
58988         * lib/strnlen1.c: New file.
58989
58990 2005-08-16  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58993         (mbi_init): Update.
58994         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58995         NUL byte, not after it.
58996
58997 2005-08-16  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/strcase.h (strcasecmp): Add note in comments.
59000         * lib/strncasecmp.c: Use code from strcasecmp.c.
59001         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59002         (strcasecmp): Work correctly in multibyte locales.
59003
59004 2005-08-16  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/mbiter.h: New file.
59007
59008 2005-08-16  Bruno Haible  <bruno@clisp.org>
59009
59010         * lib/mbfile.h: New file.
59011
59012 2005-08-16  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/mbchar.h: New file.
59015         * lib/mbchar.c: New file.
59016
59017 2005-08-16  Bruno Haible  <bruno@clisp.org>
59018
59019         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59020         the valid ones. Makes the comparison operations transitive:
59021         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59022         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59023
59024 2005-08-15  Simon Josefsson  <jas@extundo.com>
59025
59026         * modules/ssize_t (License): Change to 'unlimited'.
59027
59028         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59029
59030 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59031
59032         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59033         Add comments for each pending glibc patch.
59034
59035 2005-08-15  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59038         __cplusplus is defined.
59039
59040 2005-08-14  Jim Meyering  <jim@meyering.net>
59041
59042         Sync from coreutils.
59043
59044         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59045         Use the hash-table-based cycle-detection code not just when
59046         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59047         Reported by James Youngman in
59048         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59049         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59050         FTS_TIGHT_CYCLE_CHECK.
59051         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59052         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59053         once again.
59054         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59055         * lib/fts.c (fd_safer): Remove decl.
59056         Include fcntl--.h rather than unistd-safer.h
59057         (fts_safe_changedir): Don't call fd_safer; no longer needed
59058         now that we include fcntl--.h.
59059
59060 2005-08-12  Simon Josefsson  <jas@extundo.com>
59061
59062         * modules/getndelim2: Use ssize_t module.
59063         * modules/getnline: Likewise.
59064         * modules/safe-read: Likewise.
59065         * modules/xreadlink: Likewise.
59066
59067         * modules/ssize_t: New file.
59068
59069 2005-08-12  Simon Josefsson  <jas@extundo.com>
59070
59071         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59072
59073 2005-08-12  Simon Josefsson  <jas@extundo.com>
59074
59075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59076         ssize_t.
59077
59078 2005-08-12  Simon Josefsson  <jas@extundo.com>
59079
59080         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59081         readline, getdelim and check_version.
59082         (Support for systems lacking ISO C 99: Sizes of integer types):
59083         Add size_max.
59084
59085 2005-08-12  Bruno Haible  <bruno@clisp.org>
59086
59087         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59088
59089 2005-08-11  Simon Josefsson  <jas@extundo.com>
59090
59091         * modules/readline: New file.
59092
59093         * modules/strnlen (Files): Add strnlen.h.
59094
59095 2005-08-11  Simon Josefsson  <jas@extundo.com>
59096
59097         * m4/readline.m4: New file.
59098
59099 2005-08-11  Simon Josefsson  <jas@extundo.com>
59100
59101         * lib/readline.h, readline.c: New file.
59102
59103 2005-08-11  Simon Josefsson  <jas@extundo.com>
59104
59105         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59106         gl_AVOID.
59107
59108 2005-08-11  Bruno Haible  <bruno@clisp.org>
59109
59110         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59111
59112 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59113
59114         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59115
59116 2005-08-10  Simon Josefsson  <jas@extundo.com>
59117
59118         * tests/test-iconvme.c: New file.
59119
59120 2005-08-10  Simon Josefsson  <jas@extundo.com>
59121
59122         * m4/strnlen.m4: New file.
59123
59124         * m4/strndup.m4: Don't check for strnlen declaration, done in
59125         strnlen.m4.
59126
59127 2005-08-10  Simon Josefsson  <jas@extundo.com>
59128
59129         * lib/strndup.c: Use strnlen.h.
59130
59131         * lib/strnlen.h: New file.
59132
59133 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59134
59135         * README: Typos.
59136
59137 2005-08-02  Simon Josefsson  <jas@extundo.com>
59138
59139         * modules/readline: New file.
59140
59141 2005-08-02  Simon Josefsson  <jas@extundo.com>
59142
59143         * modules/getdelim: New file.
59144
59145         * modules/getline: Rewrite, don't use getndelim2.
59146
59147 2005-08-02  Simon Josefsson  <jas@extundo.com>
59148
59149         * m4/getline.m4: Separate out getdelim stuff into separate module.
59150
59151         * m4/getdelim.m4: New file.
59152
59153 2005-08-02  Simon Josefsson  <jas@extundo.com>
59154
59155         * lib/getline.h, getline.c: Rewrite.
59156
59157         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59158
59159 2005-07-31  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/lock.h (gl_lock_initializer): New macro.
59162         (gl_lock_define_initialized): Use it.
59163         (gl_rwlock_initializer): New macro.
59164         (gl_rwlock_define_initialized): Use it.
59165         (gl_recursive_lock_initializer): New macro.
59166         (gl_recursive_lock_define_initialized): Use it.
59167
59168 2005-07-30  Karl Berry  <karl@gnu.org>
59169
59170         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59171         Report from Ben Pfaff, regarding getopt.
59172
59173 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59176         normal way.
59177         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59178         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59179         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59180         (gl_GETOPT): Use the new macros.  Most of the implementation
59181         is moved to the new macros.  This is for programs like Emacs
59182         that don't want all the functionality of gl_GETOPT.
59183
59184 2005-07-26  Bruno Haible  <bruno@clisp.org>
59185
59186         * m4/lock.m4: Update from GNU gettext.
59187
59188 2005-07-26  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/lock.h: Update from GNU gettext.
59191         * lib/lock.c: Update from GNU gettext.
59192
59193 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59194
59195         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59196         obsolescent AC_TRY_RUN.  Include the default includes files, for
59197         'exit'.
59198
59199 2005-07-24  Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/visibility: New file.
59202         * MODULES.html.sh (Misc): Add visibility.
59203
59204 2005-07-24  Bruno Haible  <bruno@clisp.org>
59205
59206         * m4/visibility.m4: New file.
59207
59208 2005-07-24  Bruno Haible  <bruno@clisp.org>
59209
59210         * doc/visibility.texi: New file.
59211
59212 2005-07-22  Bruno Haible  <bruno@clisp.org>
59213
59214         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59215         $(ALLOCA_H), redundant through BUILT_SOURCES.
59216         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59217         redundant through BUILT_SOURCES.
59218         * modules/byteswap (Makefile.am): Remove explicit dependency on
59219         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59220         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59221         $(FNMATCH_H), redundant through BUILT_SOURCES.
59222         * modules/getopt (Makefile.am): Remove explicit dependency on
59223         $(GETOPT_H), redundant through BUILT_SOURCES.
59224         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59225         redundant through BUILT_SOURCES.
59226         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59227         redundant through BUILT_SOURCES.
59228         * modules/stdbool (Makefile.am): Remove explicit dependency on
59229         $(STDBOOL_H), redundant through BUILT_SOURCES.
59230         * modules/stdint (Makefile.am): Remove explicit dependency on
59231         $(STDINT_H), redundant through BUILT_SOURCES.
59232         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59233         Remove explicit dependency on $(SYSEXITS_H).
59234         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59235
59236 2005-07-18  Simon Josefsson  <jas@extundo.com>
59237
59238         * lib/check-version.c (check_version): Accept identical versions too.
59239
59240 2005-07-18  Bruno Haible  <bruno@clisp.org>
59241
59242         * modules/lock: New file.
59243         * MODULES.html.sh (Multithreading): New section.
59244
59245 2005-07-18  Bruno Haible  <bruno@clisp.org>
59246
59247         * m4/lock.m4: New file, from GNU gettext.
59248
59249 2005-07-18  Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/lock.h: New file, from GNU gettext.
59252         * lib/lock.c: New file, from GNU gettext.
59253
59254 2005-07-18  Bruno Haible  <bruno@clisp.org>
59255
59256         * lib/lock.h (gl_once_t): New type.
59257         (gl_once_define, gl_once): New macros.
59258         * lib/lock.c (fresh_once): New variable.
59259         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59260         functions.
59261
59262 2005-07-16  Simon Josefsson  <jas@extundo.com>
59263
59264         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59265         workaround, suggested by Bruno.
59266
59267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59268
59269         * modules/xalloc (Depends-on): Add xalloc-die.
59270         * modules/xvasprintf (Depends-on): Add xalloc-die.
59271
59272 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59273
59274         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59275         with a minor change.
59276
59277 2005-07-15  Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59280         When using lib/poll.c, define poll as rpl_poll.
59281
59282 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59283
59284         * modules/argp (Depends-on): Remove unlocked-io.
59285
59286 2005-07-14  Derek Price  <derek@ximbiot.com>
59287
59288         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59289         for glob symlink bug.
59290
59291 2005-07-14  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59294         Instead, test for *_unlocked function declarations directly.
59295
59296 2005-07-11  Simon Josefsson  <jas@extundo.com>
59297
59298         * modules/size_max: New file.
59299
59300         * modules/xsize: Depend on size_max module for size_max.m4.
59301
59302 2005-07-11  Simon Josefsson  <jas@extundo.com>
59303
59304         * lib/size_max.h: New file.
59305
59306 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59309         copyright symbol and the year.
59310         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59311         (version_etc_va): Use parameterized copyright notice.
59312         Reword to conform to the current GNU coding standards.
59313
59314 2005-07-11  Karl Berry  <karl@gnu.org>
59315
59316         * doc/gnulib.texi (Quoting): new node.
59317         (Initial import): more info, from Patrice.
59318
59319 2005-07-11  Bruno Haible  <bruno@clisp.org>
59320
59321         * gnulib-tool (func_usage): Document option --avoid.
59322         (Command line options): Handle --avoid.
59323         (func_acceptable): New function.
59324         (func_modules_transitive_closure): Use it.
59325
59326 2005-07-11  Bruno Haible  <bruno@clisp.org>
59327
59328         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59329         Reported by Jim Meyering.
59330
59331 2005-07-10  Bruno Haible  <bruno@clisp.org>
59332
59333         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59334         Needed when size_t is smaller than 'unsigned int'.
59335         Reported by Paul Eggert.
59336
59337 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59338
59339         * modules/argp (Depends-on): Add unlocked-io
59340
59341 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59342
59343         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59344         block of defines.
59345
59346 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59347
59348         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59349         fix now.
59350
59351 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59352         and Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59355         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59356
59357 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * modules/regex (Files): Add lib/regex_internal.c,
59360         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59361         (Depends-on): Add extensions.
59362         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59363
59364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59367         pathconf.
59368         * m4/same.m4 (gl_SAME): Likewise.
59369         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59370
59371         * m4/regex.m4: Adjust to new libc regex implementation.
59372         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59373         all the .c and .h parts of (the new) regex.
59374         Quote the m4 stuff better.
59375         Check for RE_ICASE bug of old gnulib.
59376         Check for REG_STARTEND of recent libc.
59377         Rename local variables from jm_* to gl_*.
59378         Quote operand of "test -f".
59379         Say "recent enough" version of libc, not "version 2".
59380         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59381         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59382         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59383         Remove check for btowc, isascii.
59384         Require AM_LANGINFO_CODESET.
59385
59386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/regex.c, regex.h: Sync from libc.
59389         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59390         * lib/regexec.c:
59391         New files, synced from libc, except that regex_internal.h
59392         currently has a small porting fix.
59393
59394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59395
59396         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59397         regex_internal.c, regexec.c.
59398         Add regex_internal.h too, but as a comment, since the libc version
59399         is currently broken in gnulib mode.
59400
59401 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         Support programs like Emacs that use gnulib but not gettext.
59404         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59405         * modules/gettext-h: New file.
59406         * modules/gettext (Files): Remove lib/gettext.h.
59407         (Depends-on): Add gettext-h.
59408         (Makefile.am): Remove lib_SOURCES.
59409         * modules/argmatch, modules/c-stack, modules/closeout:
59410         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59411         * modules/execute, modules/file-type, modules/getaddrinfo:
59412         * modules/getopt, modules/human, modules/javacomp:
59413         * modules/javaexec, modules/mkdir-p, modules/obstack:
59414         * modules/openat, modules/pagealign_alloc, modules/pipe:
59415         * modules/quotearg, modules/regex, modules/rpmatch:
59416         * modules/unicodeio, modules/userspec, modules/version-etc:
59417         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59418         * modules/xsetenv:
59419         Depend on gettext-h, not gettext.
59420
59421 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * gnulib-tool (func_import): Add support for 'public domain' license.
59424         * modules/alloca, modules/atexit, modules/memmove:
59425         Now public domain, not GPL.
59426         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59427         * modules/realloc, modules/strerror, modules/strtod:
59428         Now LGPL, not GPL.
59429
59430 2005-07-05  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59433         autoconf CVS. Needed for mingw.
59434
59435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59436
59437         Remove the dependency of the strftime module on the tzset module.
59438         * modules/strftime (Depends-on): Remove dependency on tzset.
59439
59440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59441
59442         Remove the dependency of the strftime module on the tzset module.
59443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59444         gl_FUNC_TZSET_CLOBBER.
59445
59446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         Remove the dependency of the strftime module on the tzset module.
59449         * lib/strftime.c (my_strftime)
59450         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59451         Copy the input structure, to work around some of the bug with
59452         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59453         Solaris releases, you should also use the tzset module, but we won't
59454         require it as a dependency any more since we don't want LGPLed code
59455         to depend on GPLed code.
59456
59457 2005-07-02  Jim Meyering  <jim@meyering.net>
59458
59459         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59460         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59461         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59462         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59463
59464 2005-07-02  Jim Meyering  <jim@meyering.net>
59465
59466         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59467
59468 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59471         declares only 'struct timespec;' (!).
59472
59473 2005-07-01  Jim Meyering  <jim@meyering.net>
59474
59475         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59476         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59477         * lib/save-cwd.c, tempname.c:
59478         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59479         and don't include <sys/file.h>).
59480
59481 2005-06-29  Jim Meyering  <jim@meyering.net>
59482
59483         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59484         type name.  Use the variable name instead.
59485         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59486         Likewise.
59487
59488 2005-06-28  Simon Josefsson  <jas@extundo.com>
59489
59490         * modules/check-version (Files): Add check-version.m4.
59491
59492 2005-06-28  Simon Josefsson  <jas@extundo.com>
59493
59494         * m4/check-version.m4: New file, suggested by Jim Meyering
59495         <jim@meyering.net>.
59496
59497 2005-06-28  Simon Josefsson  <jas@extundo.com>
59498
59499         * lib/check-version.h, lib/check-version.c: New files.
59500
59501 2005-06-28  Simon Josefsson  <jas@extundo.com>
59502
59503         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59504         collision with global variable.  Better indentation.  Don't
59505         increment buffer pointer beyond buffer end.  Based on comments
59506         from Paul Eggert <eggert@cs.ucla.edu>.
59507
59508         * lib/base64.h: Indent.
59509
59510 2005-06-28  Simon Josefsson  <jas@extundo.com>
59511
59512         * doc/gnulib.texi (Library version handling): New section.
59513
59514 2005-06-28  Jim Meyering  <jim@meyering.net>
59515
59516         * check-module (find_included_lib_files): Hard-code another
59517         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59518         but modules/fts-lgpl (correctly) does not list those files.
59519
59520         * modules/canonicalize (Files): Add lib/pathmax.h.
59521
59522 2005-06-25  Simon Josefsson  <jas@extundo.com>
59523
59524         * modules/check-version: New file.
59525
59526 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59529         initializer of struct addrinfo, as an indication that we don't
59530         care how many members the structure has.
59531
59532 2005-06-24  Derek Price  <derek@ximbiot.com>
59533         and Bruno Haible  <bruno@clisp.org>
59534
59535         Remove stat module & update lstat.
59536         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59538         * m4/stat.m4: Remove this file.
59539
59540 2005-06-24  Derek Price  <derek@ximbiot.com>
59541         and Bruno Haible  <bruno@clisp.org>
59542
59543         Remove stat module & update lstat.
59544         * lib/stat.c: Remove this file...
59545         (slash_aware_lstat): ...moving this content and its support...
59546         * lib/lstat.c (rpl_lstat): ...into here.
59547         * lib/lstat.h: New file.
59548
59549 2005-06-24  Derek Price  <derek@ximbiot.com>
59550         and Bruno Haible  <bruno@clisp.org>
59551
59552         Remove stat module & update lstat.
59553         * config/srclist.txt (libc sources): Remove stat.
59554
59555 2005-06-24  Derek Price  <derek@ximbiot.com>
59556         and Bruno Haible  <bruno@clisp.org>
59557
59558         Remove stat module & update lstat.
59559         * MODULES.html.sh (stat): Remove.
59560         * MODULES.html: Regenerated.
59561         * modules/lstat (Description): Correct function name.
59562         (Files): Add "lstat.h".
59563         (Depends-on): Remove stat, add xalloc, stat-macros.
59564         * modules/stat: Remove this file.
59565         (Include): Add "lstat.h", remove <sys/stat.h>.
59566
59567 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59568
59569         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59570         (ranged_convert): Don't save conversion in a temporary struct.
59571         This causes a warning with GCC 4.0.0, and anyway in the typical
59572         case it's not worth the extra 100 bytes or so of code.
59573         (ranged_convert, __mktime_internal): When calling a function via a
59574         pointer P, use P () rather than (*P) (), as we now assume C89 or
59575         better.
59576
59577 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59578
59579         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59580         "who -r" failed to give output.  Problem reported by Tim Waugh.
59581
59582         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59583         (xcalloc): Use it to avoid needless tests.
59584         Problem reported by Jim Meyering.
59585
59586 2005-06-20  Derek Price  <derek@ximbiot.com>
59587
59588         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59589         unnecessary for Autoconfs > 2.59c.
59590
59591 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59592
59593         * lib/argp.h (__option_is_short): Check upper limit of
59594         __key. Isprint() requires its argument to have the value
59595         of an unsigned char or EOF.
59596
59597 2005-06-16  Jim Meyering  <jim@meyering.net>
59598
59599         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59600         when either N or S is zero.
59601
59602 2005-06-16  Derek Price  <derek@ximbiot.com>
59603
59604         * m4/bison.m4: Declare YACC & YFLAGS precious.
59605
59606 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59607
59608         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59609         multibyte string or pattern, fall back on unibyte matching.
59610         Problem reported by James Youngman.
59611
59612 2005-06-08  Bruno Haible  <bruno@clisp.org>
59613
59614         * modules/csharpcomp: New file.
59615         * MODULES.html.sh (C#): Add csharpcomp.
59616
59617 2005-06-08  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/csharpcomp.m4: New file, from GNU gettext.
59620
59621 2005-06-08  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/csharpcomp.h: New file, from GNU gettext.
59624         * lib/csharpcomp.c: New file, from GNU gettext.
59625         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59626
59627 2005-06-08  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59630         warning on mingw.
59631
59632 2005-06-07  Derek Price  <derek@ximbiot.com>
59633
59634         Sync from CVS.
59635         * lib/glob_.h: Indent nested #ifdef.
59636
59637 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         Sync from coreutils.
59640         Use "file name" when talking about file names, instead of "filename"
59641         or "path", as per the GNU coding standards.
59642         * lib/mkdir-p.c: Renamed from makepath.c.
59643         (make_dir_parents): Renamed from make_path.  All callers changed.
59644         * lib/mkdir-p.h: Likewise.  All includers changed.
59645         * lib/filenamecat.c: Renamed from path-concat.c.
59646         (file_name_concat): Renamed from path_concat.  All callers changed.
59647         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59648         * lib/filenamecat.h: Likewise.  All includers changed.
59649         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59650         in comments or local variable names.
59651         * lib/basename.c: Likewise.
59652         * lib/canonicalize.c, canonicalize.h: Likewise.
59653         * lib/dirname.c, dirname.h: Likewise.
59654         * lib/euidaccess.c: Likewise.
59655         * lib/exclude.c: Likewise
59656         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59657         * lib/fsusage.c, fsuage.h: Likewise.
59658         * lib/fts.c, fts_.h: Likewise.
59659         * lib/getcwd.c: Likewise.
59660         * lib/getloadavg.c: Likewise.
59661         * lib/mkstemp.c: Likewise.
59662         * lib/mountlist.c, mountlist.h: Likewise.
59663         * lib/openat.c, openat.h: Likewise.
59664         * lib/readlink-stub.c: Likewise.
59665         * lib/readutmp.c, readutmp.h: Likewise.
59666         * lib/rename.c: Likewise.
59667         * lib/rmdir.c: Likewise.
59668         * lib/same.c: Likewise.
59669         * lib/savedir.c: Likewise.
59670         * lib/stripslash.c: Likewise.
59671         * lib/tempname.c: Likewise.
59672         * lib/xreadlink.c: Likewise.
59673         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59674         All uses changed.
59675         * lib/exclude.h: Likewise.
59676
59677         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59678         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59679         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59681         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59682         files have been getting away with it for years (MORE/BSD 4.3
59683         is extinct now).
59684         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59685         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59686
59687         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59688         Define to 256, not 255, as per modern POSIX.
59689
59690 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         Sync from coreutils.
59693         Use "file name" when talking about file names, instead of "filename"
59694         or "path", as per the GNU coding standards.
59695         * MODULES.html.sh: mkdir-p renamed from makepath.
59696         filenamecat renamed from path-concat.
59697         * modules/filenamecat: Renamed from modules/path-concat.
59698         (Files): filenamecat.h and filenamecat.c renamed from
59699         path-concat.h and path-concat.c.
59700         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59701         (Include): filenamecat.h, not path-concat.h.
59702         * modules/mkdir-p: Renamed from modules/makepath.
59703         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59704         makepath.c.
59705         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59706         (Include): mkdir-p.h, not makepath.h.
59707
59708 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         Sync from coreutils.
59711         * m4/mkdir-p.m4: Renamed from makepath.m4.
59712         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59713         Rename files from makepath.c to mkdir-p.c, and from
59714         makepath.h to mkdir-p.h.
59715         * m4/filenamecat.m4: Renamed from path-concat.m4.
59716         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59717         Rename files from path-concat.c to filenamecat.c,
59718         and from path-concat.h to filenamecat.h.
59719         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59720         "file name" in local variables or comments.
59721         * m4/rename.m4: Likewise.
59722
59723 2005-06-01  Bruno Haible  <bruno@clisp.org>
59724
59725         * modules/csharpexec: New file.
59726         * MODULES.html.sh (C#): New section.
59727
59728 2005-06-01  Bruno Haible  <bruno@clisp.org>
59729
59730         * m4/csharp.m4: New file, from GNU gettext.
59731         * m4/csharpexec.m4: New file, from GNU gettext.
59732
59733 2005-06-01  Bruno Haible  <bruno@clisp.org>
59734
59735         * lib/csharpexec.h: New file, from GNU gettext.
59736         * lib/csharpexec.c: New file, from GNU gettext.
59737         * lib/csharpexec.sh.in: New file, from GNU gettext.
59738
59739 2005-05-31  Derek Price  <derek@ximbiot.com>
59740             Paul Eggert  <eggert@cs.ucla.edu>
59741
59742         Sync from cvs.
59743         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59744
59745 2005-05-31  Derek Price  <derek@ximbiot.com>
59746             Paul Eggert  <eggert@cs.ucla.edu>
59747
59748         Sync from cvs.
59749         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59750
59751 2005-05-29  Derek Price  <derek@ximbiot.com>
59752
59753         * config/srclist.txt (glob_.h, glob.c): Add these files.
59754
59755 2005-05-29  Derek Price  <derek@ximbiot.com>
59756
59757         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59758         * modules/glob: New file.
59759         * modules/getlogin_r: Add link to POSIX spec in description.
59760
59761 2005-05-29  Derek Price  <derek@ximbiot.com>
59762             Paul Eggert  <eggert@cs.ucla.edu>
59763
59764         * m4/glob.m4: New file.
59765
59766 2005-05-29  Derek Price  <derek@ximbiot.com>
59767             Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * lib/glob_.h, lib/glob.c: New files.
59770
59771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59774         * modules/fts-lgpl (Depends-on): Remove gettext.
59775
59776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59777
59778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59779         and don't require gt_INTTYPES_PRI.
59780
59781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59782
59783         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59784
59785         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59786         the configuration hassle isn't worth it.
59787         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59788         (LONGEST_MODIFIER, PRIuMAX): Remove.
59789
59790 2005-05-27  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59793
59794 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59795
59796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59797         _POSIX_PTHREAD_SEMANTICS for Solaris.
59798
59799 2005-05-25  Derek Price  <derek@ximbiot.com>
59800
59801         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59802
59803 2005-05-25  Derek Price  <derek@ximbiot.com>
59804             Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59807         * lib/getlogin_r.c, getlogin_r.h: New files.
59808
59809 2005-05-25  Bruno Haible  <bruno@clisp.org>
59810             Derek Price  <derek@ximbiot.com>
59811
59812         * lib/getlogin_r.h: Simplify API documentation.
59813
59814 2005-05-23  Derek Price  <derek@ximbiot.com>
59815
59816         * modules/minmax (Files): Add m4/minmax.m4.
59817         (configure.ac): Add gl_MINMAX.
59818
59819 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59820
59821         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59822         so that unistd-safer.h (GPL'ed code) need not be included.
59823
59824 2005-05-22  Bruno Haible  <bruno@clisp.org>
59825
59826         * m4/minmax.m4: New file.
59827         Based on a patch by Derek Price <derek@ximbiot.com>.
59828
59829 2005-05-22  Bruno Haible  <bruno@clisp.org>
59830
59831         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59832         (INT64_MIN): Fix definition.
59833         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59834
59835         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59836         NEED_SIGNED_INT_TYPES.
59837
59838         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59839         HAVE_SYSTEM_INTTYPES.
59840
59841 2005-05-22  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59844         Also include <sys/param.h> if it defines MIN, MAX.
59845         Based on a patch by Derek Price <derek@ximbiot.com>.
59846
59847 2005-05-21  Jim Meyering  <jim@meyering.net>
59848
59849         * modules/fts (Files): Add m4/inttypes-pri.m4.
59850         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59851
59852 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59853
59854         New fts module.
59855         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59856         (setup_dir, free_dir): New functions.
59857         (enter_dir, leave_dir): Define trivial
59858         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59859         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59860         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59861         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59862         Move to fts-cycle.c.
59863         (fts_open): Use setup_dir.
59864         (fts_close): Use free_dir.
59865         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59866         This adds a label and some gotos, but the alternatives were messier.
59867         Check for memory allocation failure when entering a dir.
59868         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59869         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59870         (FTS): New member fts_cycle, that is a union that contains the
59871         old active_dir_ht and cycle_state.  All uses changed to mention
59872         fts_cycle.ht and fts_cycle.state.
59873         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59874         fts.c, with the following changes:
59875         (setup_dir, free_dir): New functions.
59876         (enter_dir): Now returns bool.  Return true if successful, false
59877         if memory exhausted.  All callers changed.
59878         Do not bother partly cleaning up on
59879         memory allocation failure; that is free_dir's job.
59880         However, free ad if hash_insert fails, to avoid memory leak.
59881         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59882         fts->fts_options to see which union member to use.
59883
59884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59885
59886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59887         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59888
59889 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59892
59893 2005-05-20  Jim Meyering  <jim@meyering.net>
59894
59895         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59896         Now a macro, to pacify GCC.
59897
59898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59899
59900         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59901         of -1.
59902
59903 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59904
59905         * lib/chown.c (rpl_chown): Return -1 on failure.
59906
59907 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59908
59909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59910         Don't check for stddef.h.
59911         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59912         don't use its results.
59913         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59914         since we include them unconditionally.  Don't require
59915         AM_STDBOOL_H, since stdbool is a prerequisite.
59916         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59917         since we assume C89 or better.
59918         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59919         as we don't use their results.
59920         Don't check for fchdir, memmove, memset, strrchr, as we use
59921         them unconditionally.
59922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59923         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59924
59925 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59928         Include <stddef.h> unconditionally, since we assume C89 now.
59929         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59930         * lib/fts.c: Include fts_.h first, to check interface.
59931         Do not include intprops.h; no longer needed.
59932         Include cycle-check.h and hash.h, since fts_.h no longer does.
59933         Remove unnecessary casts of closedir to void.
59934         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59935         decide whether to decrement nlinks.
59936         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59937         (FTS): Use struct hash_table * instead of Hash_table, so that
59938         we no longer need to include hash.h here.
59939
59940 2005-05-18  Jim Meyering  <jim@meyering.net>
59941
59942         * modules/dirfd (License): Change to LGPL.  Most of the code
59943         is already in the public domain.
59944
59945 2005-05-18  Jim Meyering  <jim@meyering.net>
59946
59947         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59948         Reported by Yoann Vandoorselaere.
59949
59950 2005-05-17  Jim Meyering  <jim@meyering.net>
59951
59952         * m4/fts.m4: New file, from coreutils.
59953
59954 2005-05-17  Jim Meyering  <jim@meyering.net>
59955
59956         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59957
59958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         Sync from coreutils.
59961         * m4/unlinkdir.m4: New file.
59962
59963 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         Sync from coreutils.
59966         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59967         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59968         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59969         White space changes only.
59970         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59971         special.
59972         * lib/yesno.c: Include getline.h, not ctype.h.
59973         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59974         Use getline to remove arbitrary restriction on response length.
59975
59976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59977
59978         * config/srclist-update: Spell out "Street" in FSF postal
59979         mail address; this is the style the FSF seems to prefer.
59980
59981         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59982         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59983         this updates FSF postal mail address.
59984
59985         Sync from coreutils.
59986         * modules/unlinkdir: New file.
59987         * modules/yesno (Depends-on): Add getline.
59988         * MODULES.html.sh (File system functions): Add unlinkdir.
59989
59990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59993         lib/strsep.h:
59994         Change the initial comment to refer to GPL, not LGPL.
59995         gnulib-tool will change it to LGPL as needed.
59996
59997         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59998         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59999         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60000         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60001         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60002         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60003         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60004         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60005         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60006         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60007         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60008         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60009         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60010         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60011         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60012         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60013         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60014         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60015         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60016         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60017         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60018         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60019         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60020         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60021         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60022         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60023         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60024         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60025         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60026         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60027         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60028         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60029         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60030         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60031         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60032         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60033         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60034         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60035         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60036         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60037         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60038         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60039         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60040         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60041         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60042         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60043         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60044         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60045         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60046         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60047         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60048         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60049         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60050         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60051         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60052         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60053         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60054         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60055         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60056         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60057         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60058         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60059         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60060         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60061         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60062         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60063         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60064         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60065         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60066         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60067         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60068         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60069         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60070         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60071         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60072         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60073         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60074         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60075         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60076         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60077         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60078         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60079         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60080         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60081         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60082         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60083         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60084         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60085         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60086         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60087         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60088         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60089         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60090         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60091         lib/yesno.c, lib/yesno.h:
60092         Update FSF postal mail address.
60093
60094 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60097         tests/test-memmem.c, tests/test-stpncpy.c:
60098         Update FSF postal mail address.
60099
60100 2005-05-13  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60103         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60104         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60105         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60106         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60107         Add support for 64-bit integers in the MSVC compiler.
60108
60109 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60110
60111         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60112
60113 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60114
60115         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60116
60117 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * doc/getdate.texi (General date syntax): Don't say that date
60120         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60121         Problem reported by Nic Ferrier.
60122
60123 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60124
60125         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60126         specified in ai_socktype. Fix invalid ai_protocol
60127         check. ai_protocol is usually set to 0 or depending on
60128         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60129         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60130         ai_socktype / ai_protocol in the returned addrinfo structure.
60131
60132 2005-05-10  Simon Josefsson  <jas@extundo.com>
60133
60134         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60135         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60136
60137 2005-05-10  Karl Berry  <karl@gnu.org>
60138
60139         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60140         (from http://www.gnu.org/licenses).
60141         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60142         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60143         fdl.texi suffices.
60144
60145 2005-05-10  Karl Berry  <karl@gnu.org>
60146
60147         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60148         (COPYING.DOC): remove.
60149
60150         * config/srclist-update: new FSF address.
60151
60152 2005-05-10  Derek Price  <derek@ximbiot.com>
60153
60154         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60155         possible.
60156
60157 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60158             Bruno Haible  <bruno@clisp.org>
60159
60160         * modules/inet_ntop: New file.
60161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60162         inet_ntop.
60163
60164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60165             Bruno Haible  <bruno@clisp.org>
60166
60167         * m4/inet_ntop.m4: New file.
60168
60169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60170             Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/inet_ntop.h: New file.
60173         * lib/inet_ntop.c: New file, from glibc with modifications.
60174
60175 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * modules/time_r (License): Change to LGPL.
60178         * modules/extensions (License): Change to LGPL.  Actually,
60179         the license is more permissive than that, but currently gnulib-tool
60180         doesn't know how to handle more-permissive licenses.
60181
60182         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60183         Problem reported by Dave Love.
60184
60185 2005-05-08  Jim Meyering  <jim@meyering.net>
60186
60187         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60188         blank.
60189
60190 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * modules/argmatch (Depends-on): Add stdbool.
60193         * modules/backupfile (Depends-on): Likewise.
60194         * modules/chdir-long (Depends-on): Likewise.
60195         * modules/closeout (Depends-on): Likewise.
60196         * modules/cycle-check (Depends-on): Likewise.
60197         * modules/dirname (Depends-on): Likewise.
60198         * modules/fnmatch (Depends-on): Likewise.
60199         * modules/fsusage (Depends-on): Likewise.
60200         * modules/fwriteerror (Depends-on): Likewise.
60201         * modules/getcwd (Depends-on): Likewise.
60202         * modules/getloadavg (Depends-on): Likewise.
60203         * modules/hard-locale (Depends-on): Likewise.
60204         * modules/makepath (Depends-on): Likewise.
60205         * modules/mountlist (Depends-on): Likewise.
60206         * modules/nanosleep (Depends-on): Likewise.
60207         * modules/posixtm (Depends-on): Likewise.
60208         * modules/quotearg (Depends-on): Likewise.
60209         * modules/readtokens (Depends-on): Likewise.
60210         * modules/readtokens0 (Depends-on): Likewise.
60211         * modules/readutmp (Depends-on): Likewise.
60212         * modules/save-cwd (Depends-on): Likewise.
60213         * modules/strftime (Depends-on): Likewise.
60214         * modules/userspec (Depends-on): Likewise.
60215         * modules/utimecmp (Depends-on): Likewise.
60216         * modules/xgetcwd (Depends-on): Likewise.
60217         * modules/xnanosleep (Depends-on): Likewise.
60218         * modules/xstrtod (Depends-on): Likewise.
60219         * modules/yesno (Depends-on): Likewise.
60220
60221 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60222
60223         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60224         needless checks.
60225
60226 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         Merge from coreutils.  Among other things,
60229         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60230         * lib/fd-safer.c: New file.
60231         * lib/fcntl-safer.h, open-safer.c: Remove.
60232         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60233         * lib/dup-safer.c: Include unistd-safer.h first.
60234         Don't include errno.h.
60235         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60236         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60237         * lib/file-type.c: Rely on file-type.h change.
60238         * lib/getloadavg.c: Include unistd-safer.h.
60239         (getloadavg): Use safer open.
60240         * lib/getusershell.c: Include "stdio-safer.h".
60241         (getusershell): Use safer fopen.
60242         * lib/long-options.c (long_options): Use NULL rather than 0.
60243         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60244         'free'.
60245         * lib/modechange.c: Likewise.
60246         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60247         (MODE_DONE): New constant.
60248         (struct mode_change): Remove 'next' member.
60249         (make_node_op_equals): New function; like the old one of the
60250         same name, except it allocates an array.
60251         (mode_compile, mode_create_from_ref): Use it.
60252         (mode_compile): Allocate result as an array, not a linked list.
60253         Parse octal string ourself, so that we catch mistakes like "+0".
60254         (mode_adjust): Arg is an array, not a linked list.
60255         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60256         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60257         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60258         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60259         Remove.  This is now stat-macros.h's job.
60260         (talloc): Remove.  All callers replaced by xalloc, so that
60261         our invokers don't have to worry about reporting memory failures.
60262         (make_node_op_equals): Remove.
60263         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60264         New constants.
60265         (struct mode_change): Moved here from modechange.h.
60266         (mode_append_entry): Remove.
60267         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60268         apps to have incorrect behavior.  Use simpler algorithm for head
60269         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60270         Detect more invalid usages rather than having somewhat-random behavior.
60271         Don't insert an "a=" action, as that leads to incorrect behavior.
60272         (mode_compile, mode_create_from_ref): Return NULL on error instead
60273         of an enum, since now there's only one way to have an error.  All
60274         callers changed.
60275         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60276         at the correct time.  Simplify calculation of "+u" and its ilk.
60277         Don't mishandle "+X".
60278         (mode_free): Remove "register" and localize decls.
60279         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60280         (struct mode_change): Move to modechange.c; callers don't
60281         need to see this stuff.
60282         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60283         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60284         (mode_change, mode_adjust): Reflect the new signatures noted above.
60285         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60286         that might redefine system include files.
60287         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60288         (my_usleep): Use NULL rather than (void *) 0.
60289         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60290         Use siginterrupt to specify that system calls should be interrupted.
60291         (rpl_nanosleep): Move initialization of suspended closer to call of
60292         my_usleep.
60293         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60294         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60295         (desirable_utmp_entry): New function.
60296         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60297         using x2nrealloc, to simplify logic.
60298         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60299         size calculation.  Do not assume utmp file is a regular file.
60300         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60301         (READ_UTMP_CHECK_PIDS): New constant.
60302         * lib/save-cwd.c: Include unistd-safer.h.
60303         (save_cwd): Use fd_safer.
60304         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60305         [!_LIBC] Include "stat-macros.h" instead.
60306         * lib/unistd-safer.h (fd_safer): New decl.
60307
60308 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         * modules/getloadavg (Depends-on): Add unistd-safer.
60311         * modules/getusershell (Depends-on): Add stdio-safer.
60312         * modules/lstat (Depends-on): Remove xalloc.
60313         * modules/mkstemp (Depends-on): Add stat-macros.
60314         * modules/modechange (Depends-on): Remove xstrtol.
60315         Add stat-macros, xalloc.
60316         * modules/save-cwd (Depends-on): Add unistd-safer.
60317         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60318         * modules/unistd-safer (Files): Add lib/fd-safer.c
60319         (Makefile.am): Remove lib_SOURCES.
60320
60321         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60322         Remove fcntl-safer; unistd-safer supersedes it.
60323
60324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60327         AC_HEADER_STAT.
60328         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60329         (gl_PREREQ_CHOWN): Remove.
60330         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60331         it.  Don't require AC_HEADER_STAT.
60332         (gl_PREREQ_LSTAT): Remove.
60333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60334         Don't require AC_HEADER_STAT.
60335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60336         (gl_PREREQ_RMDIR): Remove.
60337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60338         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60339         the stat-macros module a prerequisite.
60340         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60341         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60342         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60343         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60344         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60345         variable names.
60346         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60347         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60348         variable prefixes.
60349         * m4/fcntl-safer.m4: Remove.
60350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60352         Invoke gl_PREREQ_FD_SAFER.
60353         (gl_PREREQ_FD_SAFER): New macro.
60354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60355         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60356         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60357         Remove duplicate call to AC_LIBOBJ(readutmp).
60358         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60359
60360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60361         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60362
60363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         * MODULES.html.sh (Misc): Add byteswap.
60366
60367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60368
60369         * modules/getcwd (Depends-on): Add extensions.
60370         * modules/openat (Depends-on): Likewise.
60371
60372 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60373
60374         * modules/byteswap: New file.
60375
60376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60377
60378         * m4/byteswap.m4: New file.
60379
60380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60381
60382         * lib/byteswap_.h: New file.
60383
60384 2005-04-25  Karl Berry  <karl@gnu.org>
60385
60386         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60387
60388 2005-04-25  Albert Chin  <china@thewrittenword.com>
60389
60390         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60391         Toolkit C bug.
60392
60393 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60394
60395         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60396         (func_ln_if_changed) Remove forcibly for no error message
60397         in case file does not exist.
60398
60399 2005-04-19  Simon Josefsson  <jas@extundo.com>
60400
60401         * gnulib-tool (Options): Make --symlink mean --symbolic.
60402
60403 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60404
60405         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60406
60407 2005-04-16  Simon Josefsson  <jas@extundo.com>
60408
60409         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60410
60411 2005-04-15  Simon Josefsson  <jas@extundo.com>
60412
60413         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60414
60415 2005-04-15  Simon Josefsson  <jas@extundo.com>
60416
60417         * gnulib-tool: Rename --symlink to --symbolic.
60418
60419 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60420
60421         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60422         symbolic links to files instead of copying/moving.  Add --aux-dir,
60423         specifying directory relative --dir where auxiliary build tools
60424         are placed.
60425
60426 2005-04-14  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/allocsa (License): Change to LGPL.
60429         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60430
60431 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60434         that "UTC +1 second" continues to work.  Problem reported
60435         by Dmitry V. Levin.
60436         (relunit_snumber): New rule.
60437         (relunit): Use it.
60438
60439 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/getdate.y (universal_time_zone_table): New constant.
60442         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60443         universal_time_zone_table.
60444         (lookup_zone): Prefer universal_time_zone_table to
60445         local_time_zone_table, so that "GMT" time stamps are allowed in
60446         London during the summer.  Problem reported by Ian Abbott.
60447
60448 2005-04-12  Jim Meyering  <jim@meyering.net>
60449
60450         * lib/human.c (humblock): Set *options even when returning due to
60451         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60452         warning from gcc-4.
60453
60454 2005-04-09  Jim Meyering  <jim@meyering.net>
60455
60456         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60457         -Wuninitialized: initialize tm0.tm_year.
60458
60459 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60462         count, since there's no maximum.  All uses changed.
60463         Add member dsts_seen.
60464         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60465         not being INT_MAX.
60466         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60467         Use pc_rels_seen to decide whther a date is absolute.
60468
60469         * lib/getdate.y (number): Don't overwrite year.
60470         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60471         check.
60472
60473 2005-04-02  Simon Josefsson  <jas@extundo.com>
60474
60475         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60476         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60477
60478 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60479
60480         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60481         where no absolute path name can be longer than PATH_MAX.
60482
60483 2005-03-27  Jim Meyering  <jim@meyering.net>
60484
60485         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60486
60487 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60490         "one's complement" -> "ones' complement" in comment, as per Knuth.
60491         "value of type" -> "type or expression" in comment.
60492         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60493
60494 2005-03-26  Jim Meyering  <jim@meyering.net>
60495
60496         Comment nits.
60497         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60498         Correct typos: s/or/of/.
60499
60500 2005-03-26  Jim Meyering  <jim@meyering.net>
60501
60502         * modules/check-include-files: Move to ../ and rename to...
60503         * check-module: ...this.
60504
60505 2005-03-25  Jim Meyering  <jim@meyering.net>
60506
60507         * modules/xvasprintf (Files): Add xalloc.h.
60508
60509 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * modules/gettext (Files): config/config.rpath ->
60512         build-aux/config.rpath
60513         * modules/iconv (Files): Likewise.
60514         Problem reported by Oskar Liljeblad.
60515
60516 2005-03-23  Jim Meyering  <jim@meyering.net>
60517
60518         * modules/check-include-files: New script to check for
60519         missing dependencies, multiple includes, etc.
60520
60521         * modules/c-strtold (Depends-on): Add xalloc.
60522         * modules/c-strtod (Depends-on): Add xalloc.
60523         * modules/hash (Depends-on): Add xalloc.
60524         (Files): Remove lib/xalloc.h.
60525
60526         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60527         * modules/userspec (Files): Add lib/inttostr.h.
60528
60529 2005-03-23  Jim Meyering  <jim@meyering.net>
60530
60531         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60532
60533 2005-03-22  Jim Meyering  <jim@meyering.net>
60534
60535         * modules/stat-macros: New module.
60536         * modules/canonicalize, modules/euidaccess, modules/file-type,
60537         * modules/filemode, modules/lchown, modules/makepath,
60538         * modules/rmdir, modules/stat: Depend on new stat-macros module
60539         rather than listing lib/stat-macros.h manually.
60540         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60541
60542 2005-03-22  Jim Meyering  <jim@meyering.net>
60543
60544         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60545
60546 2005-03-22  Bruno Haible  <bruno@clisp.org>
60547
60548         * config/srclist.txt: Replace target directory 'config' with
60549         'build-aux'.
60550         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60551         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60552         ../build-aux/.
60553
60554 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * modules/chdir-long (Depends-on): Add mempcpy.
60557
60558         * modules/acl, modules/backupfile, modules/c-strtod,
60559         modules/c-strtold, modules/canon-host, modules/canonicalize,
60560         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60561         modules/exclude, modules/exitfail, modules/file-type,
60562         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60563         modules/getdate, modules/getline, modules/getpagesize,
60564         modules/getpass, modules/getugroups, modules/group-member,
60565         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60566         modules/inttostr, modules/long-options, modules/makepath,
60567         modules/md5, modules/memcasecmp, modules/memcoll,
60568         modules/modechange, modules/mountlist, modules/path-concat,
60569         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60570         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60571         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60572         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60573         modules/strftime, modules/strndup, modules/strverscmp,
60574         modules/timespec, modules/unlocked-io, modules/userspec,
60575         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60576         modules/yesno:
60577         Remove lib_SOURCES line from Makefile.am section, as this is now
60578         done automatically by the corresponding Autoconf macro.
60579
60580 2005-03-21  Jim Meyering  <jim@meyering.net>
60581
60582         Changes imported from coreutils.
60583
60584         * lib/cycle-check.c: Don't include xalloc.h.
60585
60586         * lib/path-concat.c: Don't include assert.h.
60587         (path_concat): Remove assertion that would have triggered
60588         for ABASE starting with more than one slash.
60589         Reported by Andreas Schwab.
60590
60591         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60592         properly when ABASE is an absolute file name.
60593         Correct the description of this function.
60594         Include <assert.h>.
60595         Add an assertion and a test driver.
60596         This fixes a bug introduced on 2004-07-02.
60597         Andreas Schwab reported the resulting failure of cp --parents:
60598         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60599
60600 2005-03-21  Jim Meyering  <jim@meyering.net>
60601
60602         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60604
60605 2005-03-21  Jim Meyering  <jim@meyering.net>
60606         and  Paul Eggert  <eggert@cs.ucla.edu>
60607
60608         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60609         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60610         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60611         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60612         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60613         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60614         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60615         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60616         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60617         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60618         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60619         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60620         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60621         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60622         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60623         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60624         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60625         for these modules.
60626
60627 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60630         (which shouldn't happen), generate nothing instead of returning 0
60631         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60632
60633 2005-03-16  Bruno Haible  <bruno@clisp.org>
60634
60635         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60636         HAVE_LONGLONG_64BIT.
60637
60638 2005-03-16  Bruno Haible  <bruno@clisp.org>
60639
60640         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60641         HAVE_LONGLONG_64BIT.
60642
60643 2005-03-16  Bruno Haible  <bruno@clisp.org>
60644
60645         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60646         HAVE_LONGLONG_64BIT.
60647
60648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60649
60650         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60651         reliably distinguish strftime failure from empty output on POSIX
60652         hosts.
60653
60654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60657         (iconv_string): Don't guess a size-zero buffer, as that might cause
60658         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60659         result would be 'too large', where 'too large' is (heuristically)
60660         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60661         overflow concerns.  This will prevent some unwanted malloc failures
60662         when the inputs are very large.
60663
60664 2005-03-15  Karl Berry  <karl@gnu.org>
60665
60666         * config/srclist.txt (config.rpath): from gettext.
60667         * config/config.rpath: update.
60668
60669 2005-03-15  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60672         to 'negate'.
60673
60674         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60675         variable.
60676
60677         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60678         results.
60679
60680 2005-03-14  Simon Josefsson  <jas@extundo.com>
60681
60682         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60683         <fx@gnu.org>.
60684
60685 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60686
60687         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60688         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60689         intprops.h.
60690         * lib/strtol.c: Likewise.
60691
60692 2005-03-14  Jim Meyering  <jim@meyering.net>
60693
60694         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60695         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60696         to be nonzero so that we (and caller) can detect the difference
60697         between a valid zero-length expansion and an error return, even
60698         when the underlying strftime fails before writing anything into
60699         that location.
60700
60701 2005-03-14  Bruno Haible  <bruno@clisp.org>
60702
60703         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60704         Update from GNU gettext 0.14.3.
60705
60706 2005-03-10  Jim Meyering  <jim@meyering.net>
60707
60708         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60709
60710 2005-03-10  Jim Meyering  <jim@meyering.net>
60711
60712         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60713         so that this module works on systems without fchdir.
60714
60715 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60716
60717         Factor int-properties macros into a single file, except for
60718         glibc-related files.
60719         * lib/intprops.h: New file.
60720         * lib/getloadavg.c: Include it instead of limits.h.
60721         (INT_STRLEN_BOUND): Remove.
60722         * lib/human.c: Include intprops.h.
60723         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60724         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60725         302/1000.
60726         * lib/inttostr.h: Include intprops.h instead of limits.h.
60727         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60728         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60729         for consistency with intprops.h.
60730         (time_t_is_integer, twos_complement_arithmetic): Use them.
60731         * lib/sig2str.h: Include <signal.h>, intprops.h.
60732         (INT_STRLEN_BOUND): Remove.
60733         * lib/strftime.c (TYPE_SIGNED): Remove.
60734         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60735         * lib/strtol.c: Adjust comments to match intprops.h.
60736         * lib/userspec.c: Include intprops.h.
60737         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60738         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60739         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60740         instead of rolling our own expressions.
60741         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60742
60743         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60744         instead of int.
60745         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60746         the right thing even if adding 1900 would overflow.  Similarly
60747         for tm_mon + 1 and tm_yday + 1.
60748         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60749         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60750         (DO_SIGNED_NUMBER): New macro.
60751         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60752
60753 2005-03-07  Bruno Haible  <bruno@clisp.org>
60754
60755         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60756
60757 2005-03-07  Bruno Haible  <bruno@clisp.org>
60758
60759         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60760
60761 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60762
60763         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60764         (func_import): Only replace files via --import when they have actually
60765         changed.
60766
60767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60768
60769         * m4/mmap-anon.m4: New file.
60770         * m4/pagealign_alloc.m4: New file.
60771
60772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60773             Bruno Haible  <bruno@clisp.org>
60774
60775         * modules/pagealign_alloc: New file.
60776         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60777
60778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60779             Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/pagealign_alloc.h: New file.
60782         * lib/pagealign_alloc.c: New file.
60783
60784 2005-03-03  Bruno Haible  <bruno@clisp.org>
60785
60786         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60787         Use an all-permissive copyright notice, recommended by RMS.
60788
60789 2005-03-02  Bruno Haible  <bruno@clisp.org>
60790
60791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60792         of AIX, the replacement has to be done only after <string.h> is
60793         included, therefore not in config.h. stpncpy.h does the replacement,
60794         and stpncpy.c uses it.
60795
60796 2005-03-02  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60799         stpncpy.c uses it.
60800
60801 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60802
60803         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60804         The workaround isn't strictly needed for POSIX conformance, and
60805         it's too much of a pain to configure and maintain.  We'll ask
60806         people to fix their kernels instead.
60807         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60808         (NANOSLEEP_BUG_WORKAROUND): Remove.
60809         (xnanosleep): Remove the workaround.
60810
60811 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60812
60813         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60814         Reported by Derek Price.
60815         (Include): Add "timespec.h".
60816
60817         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60818
60819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60820
60821         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60822         to detect nanosleep bug.
60823
60824 2005-03-01  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60827
60828 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         * modules/gethrxtime: New file.
60831         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60832         (Depends-on): Add gethrxtime.
60833         (configure.ac): Add gl_XNANOSLEEP.
60834         (Makefile.am): Remove lib_SOURCES line.
60835
60836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60839         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60840
60841 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60842
60843         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60844         * lib/timespec.h (gettime): Return void, since it always
60845         succeeds now.  All uses changed.
60846         * lib/gettime.c (gettime) Likewise.
60847         [HAVE_NANOTIME]: Prefer nanotime.
60848         Assume gettimeofday succeeds, as POSIX requires.
60849         Assime time () succeeds, since other code already does.
60850         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60851         (timespec_subtract): Remove.
60852         (NANOSLEEP_BUG_WORKAROUND): New constant.
60853         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60854         things considerably.  Use it only on GNU/Linux hosts, since the
60855         workaround shouldn't be needed elsewhere.
60856
60857 2005-02-24  Bruno Haible  <bruno@clisp.org>
60858
60859         * modules/gettext (Files): Add m4/glibc2.m4.
60860
60861 2005-02-24  Bruno Haible  <bruno@clisp.org>
60862
60863         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60864         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60865         * m4/progtest.m4:
60866         Update from GNU gettext 0.14.2.
60867         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60868
60869 2005-02-24  Bruno Haible  <bruno@clisp.org>
60870
60871         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60872         * lib/config.charset: Update from GNU gettext 0.14.2.
60873
60874 2005-02-24  Bruno Haible  <bruno@clisp.org>
60875
60876         * lib/gettext.h: Update from GNU gettext 0.14.2.
60877
60878 2005-02-23  Simon Josefsson  <jas@extundo.com>
60879
60880         * m4/iconvme.m4: New file.
60881
60882 2005-02-23  Jim Meyering  <jim@meyering.net>
60883
60884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60885         change.
60886         Thanks to Bruno Haible for catching it.
60887
60888 2005-02-22  Simon Josefsson  <jas@extundo.com>
60889
60890         * modules/iconvme: New file.
60891
60892         * MODULES.html.sh: Add iconvme.
60893
60894 2005-02-22  Simon Josefsson  <jas@extundo.com>
60895
60896         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60897
60898 2005-02-22  Simon Josefsson  <jas@extundo.com>
60899
60900         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60901
60902 2005-02-22  Jim Meyering  <jim@meyering.net>
60903
60904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60905         s/ifndef/ifdef/.
60906
60907 2005-02-20  Neil Conway  <neilc@samurai.com>
60908
60909         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60910         returned by OSX/Darwin if the specified buffer is not large
60911         enough for the hostname.
60912
60913 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60914
60915         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60916         pass it to _help, otherwise the latter coredumps trying to
60917         dereference state.root_argp.
60918
60919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60920
60921         * modules/chdir-long (Depends-on): Add memrchr.
60922         * modules/memrchr (Files): Add lib/memrchr.h.
60923         (Include): "memrchr.h".
60924
60925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60928
60929 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         * lib/memrchr.h: New file.
60932         * lib/chdir-long.c: Include it.
60933         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60934         Don't bother including stddef.h.
60935
60936 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60939         inclusion.
60940         Include <sys/types.h>, for dev_t.
60941         (ME_DUMMY, ME_REMOTE): Move from here....
60942         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60943         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60944         Dmitry V. Levin.
60945         Include mountlist.h first, to test the interface.
60946
60947 2005-01-29  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/progname.c (program_name): Initialize.
60950         Needed when linking statically on MacOS X.
60951
60952 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60953
60954         Sync from coreutils.
60955         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60956         (Depends-on): Add c-strtod.
60957         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60958
60959 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60960
60961         Sync from coreutils.
60962         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60963
60964         Remove files that are specific to coreutils.
60965         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60966
60967 2005-01-28  Bruno Haible  <bruno@clisp.org>
60968
60969         * modules/javacomp: New file.
60970         * MODULES.html.sh (Java): Add javacomp.
60971
60972 2005-01-28  Bruno Haible  <bruno@clisp.org>
60973
60974         * m4/javacomp.m4: New file, from GNU gettext.
60975
60976 2005-01-28  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/javacomp.sh.in: New file, from GNU gettext.
60979         * lib/javacomp.h: New file, from GNU gettext.
60980         * lib/javacomp.c: New file, from GNU gettext.
60981
60982 2005-01-26  Simon Josefsson  <jas@extundo.com>
60983
60984         * lib/gai_strerror.c: Use GPL in header.
60985
60986 2005-01-26  Bruno Haible  <bruno@clisp.org>
60987
60988         * modules/javaexec: New file.
60989         * MODULES.html.sh (Java): Add javaexec.
60990
60991 2005-01-26  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/javaexec.m4: New file, from GNU gettext.
60994
60995 2005-01-26  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/javaexec.sh.in: New file, from GNU gettext.
60998         * lib/javaexec.h: New file, from GNU gettext.
60999         * lib/javaexec.c: New file, from GNU gettext.
61000
61001 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61002
61003         * modules/lchown (Depends-on): Remove lchown.h
61004
61005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61006
61007         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61008         must be defined if the header file was not found, in order
61009         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61010
61011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61012
61013         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61014         initializers for struct pentry_state.
61015         (__argp_error): Check return value of __asprintf
61016         (__argp_failure): Translate error message
61017
61018         * lib/argp-parse.c: Removed braces around the expansion of N_()
61019
61020 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61021
61022         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61023         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61024         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61025         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61026         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61027         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61028         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61029         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61030         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61031         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61032         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61033         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61034         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61035         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61036         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61037         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61038         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61039         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61040         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61041         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61042         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61043         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61044         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61045         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61046         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61047         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61048         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61049         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61050         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61051         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61052         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61053         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61054         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61055         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61056         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61057         Use an all-permissive copyright notice, recommended by RMS.
61058
61059 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         * modules/chdir-long (Depends-on): Remove mempcpy.
61062
61063 2005-01-21  Jim Meyering  <jim@meyering.net>
61064
61065         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61066         same value as for Solaris 9.
61067
61068         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61069         component length.  This included changing the parameter to be
61070         of type `char *' rather than `char const *'.
61071         * lib/chdir-long.h (chdir_long): Update prototype.
61072
61073         * lib/openat.c (fdopendir, fstatat): New functions.
61074         * lib/openat.h: Include headers required for use of DIR and struct
61075         stat.
61076         [AT_SYMLINK_NOFOLLOW]: Define.
61077         (fdopendir, fstatat): Add prototypes.
61078
61079 2005-01-21  Bruno Haible  <bruno@clisp.org>
61080
61081         * modules/classpath: New file.
61082         * MODULES.html.sh (Java): Add classpath.
61083
61084 2005-01-21  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/classpath.h: New file, from GNU gettext.
61087         * lib/classpath.c: New file, from GNU gettext.
61088
61089 2005-01-20  Simon Josefsson  <jas@extundo.com>
61090
61091         * modules/version-etc-fsf: New file.
61092
61093 2005-01-20  Simon Josefsson  <jas@extundo.com>
61094
61095         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61096         * lib/version-etc.c: Remove version_etc_copyright.
61097         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61098         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61099
61100 2005-01-20  Simon Josefsson  <jas@extundo.com>
61101
61102         * lib/base64.h (isbase64): Add.
61103
61104         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61105         using a unsigned prototype, don't inline.
61106         (base64_decode): Use it.
61107
61108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61109
61110         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61111         it.
61112
61113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61114
61115         * lib/save-cwd.c (save_cwd): Remove code to support the case
61116         where fchdir is missing or flaky.
61117
61118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61121
61122 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61125         AC_LIBSOURCES now does this.
61126         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61127         with new ullong_max module.
61128
61129 2005-01-19  Bruno Haible  <bruno@clisp.org>
61130
61131         * modules/sh-quote: New file.
61132         * MODULES.html.sh (Executing programs): Add sh-quote.
61133
61134 2005-01-19  Bruno Haible  <bruno@clisp.org>
61135
61136         * lib/sh-quote.h: New file, from GNU gettext.
61137         * lib/sh-quote.c: New file, from GNU gettext.
61138
61139 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61140
61141         Merge from coreutils.
61142         * m4/ullong_max.m4: New file.
61143         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61144         (gl_MACROS): Assume localeconv exists.
61145
61146 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         Merge changes from coreutils, as described below in several
61149         changelogs dated today.
61150
61151         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61152         (O_DIRECTORY): Remove; not needed here, since "." must be
61153         a directory.  All uses removed.
61154         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61155         universal on Suns, and we also need to test for IRIX.
61156         Revamp code to use 'if' rather than '#if'.
61157         Avoid unnecessary comparison of cwd->desc to 0.
61158
61159         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61160         for known valid error numbers rather than observed invalid ones.
61161
61162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * modules/ullong_max: New file.
61165
61166         * modules/chdir-long, modules/openat: New files.
61167         * modules/save-cwd (Depends-on): Depend on chdir-long.
61168         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61169
61170 2005-01-18  Jim Meyering  <jim@meyering.net>
61171
61172         Merge from coreutils.
61173         * m4/chdir-long.m4, m4/openat.m4: New files.
61174         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61175         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61176         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61177         is sane and DOES follow symlinks.  Besides, testing 20 different
61178         systems found no broken chown implementations.
61179         Prompted by a change in rsync's copy of this macro.
61180         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61181
61182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61183
61184         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61185         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61186         NULL-means-set-to-current-time semantics.
61187         Remove temporary file immediately, rather than waiting
61188         for configure's at-exit trap code to do it.
61189
61190 2005-01-18  Jim Meyering  <jim@meyering.net>
61191
61192         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61193
61194         * lib/utimens.c (futimens): Account for the fact that futimes
61195         can also fail with errno == ENOSYS or errno == ENOENT.
61196         Patch from Dmitry V. Levin.
61197
61198         Change the name of the robust chdir function from chdir to chdir_long.
61199         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61200         (restore_cwd): Use chdir_long, not chdir.
61201         * lib/chdir-long.c: Renamed from chdir.c.
61202         * lib/chdir-long.h: Renamed from chdir.h.
61203         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61204         Hurd.
61205
61206 2005-01-18  Bruno Haible  <bruno@clisp.org>
61207
61208         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61209         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61210         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61211         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61212         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61213         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61214         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61215         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61216         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61217         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61218         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61219         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61220         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61221         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61222         Use an all-permissive copyright notice, recommended by RMS.
61223
61224 2005-01-18  Bob Proulx  <bob@proulx.com>
61225
61226         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61227         simplify offsetof() macro construct to avoid compile failure with
61228         native HP-UX 11.0 ANSI C compiler.
61229
61230 2005-01-17  Bruno Haible  <bruno@clisp.org>
61231
61232         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61233         redundant because stpncpy.m4 takes care of it.
61234
61235 2005-01-17  Bruno Haible  <bruno@clisp.org>
61236
61237         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61238
61239 2005-01-17  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61242         used.
61243
61244 2005-01-17  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/fwriteerror.h (fwriteerror): Change specification to include
61247         fclose.
61248         * lib/fwriteerror.c: Include <stdbool.h>.
61249         (fwriteerror): At the end, close the file stream. Record whether
61250         stdout was already closed.
61251
61252 2005-01-17  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/execute.c (environ): Declare if needed.
61255         * lib/pipe.c (environ): Likewise.
61256         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61257
61258 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61259
61260         * modules/argp: Depend on vsnprintf
61261
61262 2005-01-10  Jim Meyering  <jim@meyering.net>
61263
61264         * modules/closeout (Depends-on): Add atexit.
61265
61266 2005-01-06  Bruno Haible  <bruno@clisp.org>
61267
61268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61269
61270 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61273         definitions to be after all include files, to avoid collisions.
61274         Problem reported by Bob Proulx.
61275
61276 2005-01-04  Jim Meyering  <jim@meyering.net>
61277
61278         Changes imported from coreutils.
61279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61280         as the mkstemp template, use a temporary directory and an
61281         8.3-friendly template to avoid trouble on systems like DJGPP.
61282         Reported by Juan M. Guerrero via Stepan Kasal.
61283         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61284         close. Remove the temporary directory right away, rather than waiting
61285         for configure's at-exit trap code to do it.
61286         Suggestion from Stepan Kasal.
61287
61288 2005-01-01  Simon Josefsson  <jas@extundo.com>
61289
61290         * gnulib-tool: Print #include directives when --import'ing.
61291
61292 2004-12-28  Simon Josefsson  <jas@extundo.com>
61293
61294         * tests/test-base64.c: Include required header files.  Remove
61295         unused variables.
61296
61297 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * modules/error (Depends-on): Remove gettext.
61300
61301 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61304         not needed.  This removes a dependency on the gettext module.
61305         [defined _LIBC]: Do not include <libintl.h>; not needed.
61306
61307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61310         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61311
61312 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61313
61314         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61315         HAVE_DECL_STRTOLD.
61316
61317 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * modules/getdate (Depends-on): Remove alloca-opt.
61320
61321 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61322
61323         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61324
61325 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61326
61327         * lib/argp-parse.c: Include <stddef.h>.
61328         (alignof, alignto): New macros.
61329         (parser_init): Don't assume that void * is aligned sufficiently
61330         for struct option.
61331
61332         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61333         need to extend the stack.
61334         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61335         large.
61336
61337 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61338
61339         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61340
61341 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61342
61343         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61344         (2004-10-24) change.  Apparently this was a false alarm.
61345
61346         * modules/getdate: Depend on alloca-opt, not alloca.
61347
61348 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61349
61350         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61351         Remove now-obsolete comment about AIX.
61352         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61353         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61354         (YYMAXDEPTH): New macro.
61355
61356 2004-12-18  Simon Josefsson  <jas@extundo.com>
61357
61358         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61359
61360 2004-12-18  Bruno Haible  <bruno@clisp.org>
61361
61362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61363
61364 2004-12-18  Bruno Haible  <bruno@clisp.org>
61365
61366         * lib/fatal-signal.c (fatal_signals): Make non-const.
61367         (init_fatal_signals): New function.
61368         (uninstall_handlers, install_handlers): Ignore signals that were set to
61369         SIG_IGN.
61370         (at_fatal_signal): Call init_fatal_signals.
61371         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61372         SIG_IGN.
61373         Reported by Paul Eggert.
61374
61375 2004-12-18  Bruno Haible  <bruno@clisp.org>
61376
61377         * doc/alloca.texi: New file.
61378         * doc/alloca-opt.texi: New file.
61379
61380 2004-12-17  Jim Meyering  <jim@meyering.net>
61381
61382         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61383         Otherwise, install-sh could exit with improper exit status when
61384         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61385
61386 2004-12-16  Simon Josefsson  <jas@extundo.com>
61387
61388         * tests/test-base64.c: Add license.
61389
61390 2004-12-15  Stepan Kasal  <address@hidden>
61391
61392         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61393
61394 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * modules/getcwd (Files): Add m4/d-ino.m4.
61397         Suggested by Mark D. Baushke.
61398
61399 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * lib/getdate.y (textint): New member "negative".
61402         (time_zone_hhmm): New function.
61403         Expect 14 shift-reduce conflicts, not 13.
61404         (o_colon_minutes): New rule.
61405         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61406         (yylex): Set the "negative" member of signed numbers.
61407
61408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * doc/getdate.texi (Time of day items, Time zone items):
61411         Describe new formats +00:00, UTC+00:00.
61412
61413 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61414
61415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61416         spurious "-l"s.  Problem reported by Stepan Kasal.
61417
61418 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61421         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61422
61423 2004-12-04  Simon Josefsson  <jas@extundo.com>
61424
61425         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61426         Vandoorselaere <yoann@prelude-ids.org>.
61427
61428 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61429
61430         Changes imported from coreutils.
61431         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61432         exist.
61433         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61434
61435 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         Changes imported from coreutils.
61438         * lib/hard-locale.c: Assume <locale.h> exists.
61439         Include "strdup.h".
61440         (GLIBC_VERSION): New macro.
61441         (hard_locale): Assume setlocale exists.
61442         Rewrite to avoid #ifdef.
61443         Use strdup rather than malloc + strcpy.
61444         * lib/human.c: Assume <locale.h> exists.
61445         (human_readable): Assume localeconv exists.
61446
61447 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61448
61449         * modules/hard-locale (Depends-on): Add strdup.
61450
61451 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61452
61453         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61454         convert T2, not T.  (Imported from libc.)
61455
61456 2004-11-30  Simon Josefsson  <jas@extundo.com>
61457
61458         * modules/restrict (License): Change to LGPL.
61459
61460 2004-11-30  Simon Josefsson  <jas@extundo.com>
61461
61462         * m4/restrict.m4: Add copyright and copying conditions.
61463
61464 2004-11-30  Simon Josefsson  <jas@extundo.com>
61465
61466         * m4/base64.m4: New file.
61467
61468 2004-11-30  Simon Josefsson  <jas@extundo.com>
61469
61470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61471         base64.
61472
61473         * tests/test-base64.c: New file.
61474
61475         * modules/base64: New file.
61476
61477 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61478
61479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61480         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61481
61482         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61483
61484 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61487         (__getcwd.c): Don't restore errno; glibc doesn't.
61488         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61489         first, falling back to our code only if its results look suspicious.
61490         Ensure that the resulting buffer is only as large as necessary.
61491
61492         * lib/readutmp.c: Include readutmp.h first.
61493         Include <errno.h>, since readutmp.h no longer does that.
61494         * lib/readutmp.h: Don't include <errno.h>,
61495         <sys/param.h>, <time.h>; not needed to establish interface.
61496         (errno): Remove decl.
61497         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61498         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61499         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61500
61501 2004-11-28  Simon Josefsson  <jas@extundo.com>
61502
61503         * lib/base64.h, base64.c: New file.
61504
61505 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61508
61509 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61512         (Depends-on): Remove pathmax, same.  Add mempcpy.
61513         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61514         (Makefile.am): Append getcwd.h to lib_SOURCES.
61515         (Include): Add getcwd.h.
61516         (Maintainer): Change from Jim Meyering to "all, glibc",
61517         since getdate now uses intended-for-glibc code.
61518         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61519         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61520
61521 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61524         HP's ANSI C compiler.
61525         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61526         Declaring int functions causes warnings on some modern systems and
61527         shouldn't be needed to compile on ancient ones.
61528         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61529         defined.
61530
61531         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61532         with the following changes.
61533         (__set_errno): Parenthesize properly.
61534         Include <stdbool.h>.
61535         (MIN, MAX, MATCHING_INO): New macros.
61536         (__getcwd): Define with prototype, not K&R form.
61537         Use heuristics to allocate default buffer on stack if possible.
61538         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61539         behavior, and to avoid the PATH_MAX limit when computing
61540         ../../../../...
61541         Use MATCHING_INO to compare inode number to file.
61542         Check for arithmetic overflow in size calculations.
61543         Fix bug in reallocation of dot array that caused getcwd to fail
61544         on directories nested deeper than 75.
61545         Be more careful about saving errno on error.
61546         Do not use realloc; use only free+malloc, as this is a bit
61547         more flexible and avoids a needless copy operation.
61548         Do not inspect st_dev and st_ino for symbolic links; POSIX
61549         doesn't specify the latter.
61550         Check for closedir errors.
61551         Avoid needless casts.
61552         Use "#ifdef weak_alias" around weak_alias, to be like other
61553         glibc code.
61554         The following changes to getcwd.c have effect only when used in
61555         gnulib; they have no effect inside glibc proper.
61556         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61557         as alloca isn't used.
61558         (alloca, __alloca): Likewise.
61559         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61560         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61561         unconditionally, as gnulib assumes C89 or better.
61562         Do not include <sys/param.h>.
61563         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61564         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61565         better.
61566         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61567         Include <dirent.h> in a way that is compatible with modern Autoconf.
61568         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61569         New macros, if not already defined.
61570         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61571         Use "_LIBC", not "defined _LIBC", for consistency.
61572         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61573         a mempcpy module.
61574         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61575         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61576         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61577         credit only to Jim Meyering and adjust the copyright dates.
61578         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61579         <stdlib.h>, <unistd.h>, "pathmax.h".
61580         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61581         (INITIAL_BUFFER_SIZE): Remove.
61582         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61583
61584 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61587         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61588         Use the _ONCE methods, for efficiency.
61589         Check for fcntl.h.  In test program, include <errno.h>
61590         and <fcntl.h> if available.  Remove old K&R cruft from
61591         test program.  Check for common errors in GNU/Linux,
61592         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61593         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61595         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61596         name accordingly.
61597         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61598         accommodate new getcwd.c.
61599         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61601         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61602         that's all we need now.
61603
61604 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61605
61606         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61607         argp-parse.c depends on getopt internals, that means we should
61608         always use our getopt, to be on the safe side.
61609         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61610         order not to spoil the result of an eventual previous invocation
61611         of gl_GETOPT_SUBSTITUTE.
61612
61613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61614
61615         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61616         redefinition warnings. To avoid them, include the defines
61617         in `#if !defined __need_getopt ... #endif'. The only place
61618         where __getopt_argv_const is used is in definitions
61619         of getopt_long and getopt_long_only below, which are as well
61620         protected by `#ifndef __need_getopt'.
61621         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61622         __need_getopt after including <stdio.h> and <unistd.h> These
61623         headers might have defined it.
61624
61625 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61626
61627         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61628
61629 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61630
61631         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61632         (futimens): New function, which uses futimes if available.
61633         (futimens, utimens): Support timespec==NULL, with same semantics
61634         as utime and utimens.
61635         * lib/utimens.h (futimens): New decl.
61636
61637 2004-11-23  Jim Meyering  <jim@meyering.net>
61638
61639         * lib/getopt_.h: Remove trailing blanks.
61640
61641 2004-11-23  Jim Meyering  <jim@meyering.net>
61642
61643         * lib/__fpending.c: Add comment.
61644
61645 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61646
61647         * modules/canonicalize (Depends-on): Add xreadlink.
61648         Problem reported by James Youngman.
61649
61650 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61653         New macros.
61654         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61655         optopt): Use them instead of invoking ## directly; otherwise, the
61656         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61657
61658 2004-11-19  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/strtok_r.c: Move comments from here...
61661         * lib/strtok_r.h: ... to here.
61662
61663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61664
61665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61666         implementations that mishandle size_t overflow.
61667
61668 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61671         might fail.  Problem reported by Yoann Vandoorselaere.
61672         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61673         implementations that mishandle size_t overflow.
61674
61675 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61676
61677         * modules/canon-host (Depends-on): Add strdup.
61678
61679 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61680
61681         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61682
61683 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         * lib/canon-host.c: Include "strdup.h".
61686         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61687         Use strdup instead of malloc/strcpy to duplicate strings.
61688
61689         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61690         (human_space_before_unit): New constant.
61691         * lib/human.c (human_readable): Support it.
61692
61693         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61694         (xgetcwd): Set errno correctly when failing.
61695         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61696         the failure is actually due to a PATH_MAX problem.
61697
61698         Further getopt changes to make it more likely that glibc will
61699         buy the changes back.
61700         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61701         (getopt): Use it, so to preserve glibc semantic
61702         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61703         when compiling for libc.
61704         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61705         (getopt_long, getopt_long_only): Use it.
61706
61707         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61708         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61709         (getopt): Argv is now char * const *, as per standard.
61710         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61711         not char *__getopt_argv_const *.
61712         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61713         _getopt_long_only_r): Likewise.
61714         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61715         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61716         _getopt_long_r, _getopt_long_only_r): Likewise.
61717         * lib/getopt_.h (__getopt_argv_const): Remove.
61718         (getopt): Argv is now char * const *, as per standard.
61719
61720         * lib/getdate.y (tORDINAL): New token.
61721         (day, relunit): Allow it for relative times.
61722         (relative_time_table): Use tORDINAL for ordinals.
61723
61724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61727         Document that "second" isn't allowed as an ordinal number.
61728
61729 2004-11-16  Jim Meyering  <jim@meyering.net>
61730
61731         * modules/closeout (Depends-on): Add fpending.
61732
61733 2004-11-15  Jim Meyering  <jim@meyering.net>
61734
61735         * lib/closeout.c: Include "__fpending.h" once again.
61736         Include <stdbool.h>.
61737         (close_stdout): Don't fail just because stdout was closed initially,
61738         since some programs don't write to stdout in the normal course of
61739         operation (other than --version and --help), and we don't want this
61740         function to make e.g. `touch file >&-' fail.
61741         But do fail if it was closed and someone has tried to write to it.
61742         E.g., `printf foo >&-' must fail.
61743
61744 2004-11-13  Jim Meyering  <jim@meyering.net>
61745
61746         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61747
61748 2004-11-12  Simon Josefsson  <jas@extundo.com>
61749
61750         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61751         small doc fix is still pending.
61752
61753 2004-11-11  Simon Josefsson  <jas@extundo.com>
61754
61755         * modules/strtok_r: New file.
61756
61757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61758         strtok_r.
61759
61760 2004-11-11  Simon Josefsson  <jas@extundo.com>
61761
61762         * m4/strtok_r.m4: New file.
61763
61764         * m4/getopt.m4: Replace opterr.
61765
61766 2004-11-11  Simon Josefsson  <jas@extundo.com>
61767
61768         * lib/strtok_r.h, strtok_r.c: New file.
61769
61770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61771
61772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61773         of replacing opterr, getopt, etc.  This should handle the
61774         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61775
61776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61779         we can stop lying to compilers about the constness of argv when we
61780         are compiled outside glibc.
61781         (getopt, getopt_long, getopt_long_only): Use it.
61782         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61783         _getopt_internal, getopt): Likewise.
61784         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61785         _getopt_long_only_r): Likewise.
61786         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61787         _getopt_long_r, _getopt_long_only_r): Likewise.
61788
61789         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61790         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61791         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61792         the other external symbols.
61793         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61794         declaration, since the above renaming now works around collisions.
61795
61796 2004-11-11  Jim Meyering  <jim@meyering.net>
61797
61798         * lib/linebreak.c: Remove trailing blanks.
61799         * lib/alloca_.h: Likewise.
61800         * lib/acosl.c: Likewise.
61801         * lib/euidaccess.c: Likewise.
61802         * lib/allocsa.h: Likewise.
61803
61804 2004-11-10  Simon Josefsson  <jas@extundo.com>
61805
61806         * m4/getaddrinfo.m4: New file.
61807
61808 2004-11-10  Simon Josefsson  <jas@extundo.com>
61809
61810         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61811
61812 2004-11-10  Simon Josefsson  <jas@extundo.com>
61813
61814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61815         getaddrinfo.
61816
61817         * modules/getaddrinfo: New file.
61818
61819 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61822
61823 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * lib/mktime.c (SHR): New macro, which is a portable
61826         substitute for >> that should work even on Crays.
61827         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61828         Problem reported by Mark D. Baushke in
61829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61830         * lib/getdate.y (SHR): Likewise.
61831         (tm_diff): Use it.
61832         * lib/strftime.c (SHR): Likewise.
61833         (tm_diff): Use it.
61834         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61835         quote_these_too, so that right shifts are well defined.  All uses
61836         changed.
61837
61838 2004-11-10  Jim Meyering  <jim@meyering.net>
61839
61840         Ensure that no close failure goes unreported.
61841         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61842         return early when it seems there's nothing to flush.
61843         Don't include __fpending.h.
61844
61845 2004-11-10  Jim Meyering  <jim@meyering.net>
61846
61847         * modules/closeout (Depends-on): Remove fpending.
61848
61849 2004-11-10  Jim Meyering  <jim@meyering.net>
61850
61851         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61852
61853 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61854
61855         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61856         gl_FUNC_STRFTIME.
61857         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61858         and AC_REQUIRE when possible, to avoid duplicate checks.
61859         Check for <wchar.h>.
61860
61861 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61862
61863         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61864
61865 2004-11-09  Bruno Haible  <bruno@clisp.org>
61866
61867         * m4/sockpfaf.m4: New file.
61868
61869 2004-11-05  Bruno Haible  <bruno@clisp.org>
61870
61871         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61872         Reported by Mark D. Baushke <mdb@cvshome.org>.
61873
61874 2004-11-04  Bruno Haible  <bruno@clisp.org>
61875
61876         2004-09-11  Bruno Haible  <bruno@clisp.org>
61877                 * allocsa.valgrind: New file.
61878         2004-02-06  Bruno Haible  <bruno@clisp.org>
61879                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61880                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61881                 Reported by Christopher Seip <chris.seip@hp.com>.
61882
61883 2004-11-04  Bruno Haible  <bruno@clisp.org>
61884
61885         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61886         (Makefile.am): Distribute it.
61887
61888 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61891         with errno == ERANGE if the buffer is too small.
61892         Problem reported by Mark D. Baushke.
61893
61894 2004-11-03  Albert Chin  <china@thewrittenword.com>
61895             Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61898         equivalent, substitute $ac_type for equivalent type rather than
61899         blindly using uint32_t *always* which won't work if uint32_t is not
61900         available.  Define _UINT32_T to work around typedef of uint32_t if
61901         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61902         2.5.1.
61903
61904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61905
61906         * m4/jm-macros.m4: Sync from coreutils.
61907         (gl_MACROS): Check for mbrlen, for pathchk.
61908         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61909
61910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         * lib/xreadlink.c (MAXSIZE): New macro.
61913         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61914         size does not exceed MAXSIZE.  Avoid cast.
61915         As suggested by Mark D. Baushke in
61916         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61917         if readlink fails with buffer size just under MAXSIZE, try again
61918         with MAXSIZE.
61919
61920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61921
61922         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61923
61924 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61925         and  Paul Eggert  <eggert@cs.ucla.edu>
61926
61927         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61928         (get_date): Overparenthesize to avoid GCC warning.
61929
61930 2004-11-02  Bruno Haible  <bruno@clisp.org>
61931
61932         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61933         returns void.
61934
61935 2004-11-02  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61938         function returns void.
61939
61940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61941
61942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61943         fflush_unlocked, flockfile, funlockfile, funlockfile,
61944         fputs_unlocked, putc_unlocked.
61945
61946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61949         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61950         already declared.
61951
61952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * modules/getdate (Files): Add doc/getdate.texi.
61955         (Depends-on): Add setenv, xalloc.
61956
61957 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61958
61959         * lib/getdate.y: Add support for TZ="foo" within a date string.
61960         Fix some bugs near time_t boundaries.  Reject dates with
61961         out-of-range components, e.g., "Sept 31".
61962         Include <stdlib.h>, "setenv.h", "xalloc.h".
61963         (ISDIGIT_LOCALE): Remove; unused.
61964         Note that the TZ and time functions used here are not reentrant.
61965         (mktime_ok, get_tz): New functions.
61966         (TZBUFSIZE): New constant.
61967         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61968         This requires that we sometimes generate our own TZ="XXX..." setting.
61969
61970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * doc/getdate.texi: New file, from coreutils with modifications for
61973         the new TZ parsing.
61974
61975 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61976
61977         * lib/mktime.c (not_equal_tm): Remove redundant check.
61978
61979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61980
61981         * modules/regex (lib_SOURCES): Add regex.c.
61982         Reported by James Youngman in
61983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61984
61985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * lib/getdate.y: Use Bison 1.875 features, and some minor
61988         code cleanups.  This change does not affect semantics.
61989         Don't include <stdlib.h>; no longer needed.
61990         Don't include unlocked-io.h; only the "#if TEST" code uses
61991         stdio, and performance isn't crucial there.
61992         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61993         Bison 1.875 features as described below.
61994         All uses of "PC." replaced by "pc->".
61995         (YYSTYPE): Add a forward declaration.
61996         (yylex, yyerror): Use full prototypes in forward decls.
61997         Use "%pure-parser" rather than obsolescent "%pure_parser".
61998         Use %parse-param and %lex-param instead of obsolescent
61999         YYPARSE_PARAM and YYLEX_PARAM.
62000         (meridian_table, month_and_day_table, time_units_table,
62001         relative_time_table, time_zone_table, military_table,
62002         lookup_zone, lookup_word, get_date):
62003         Use NULL instead of 0 where appropriate.
62004         (to_hour): Avoid abort (), to avoid a dependency on
62005         stdlib.h.
62006         (yyerror, yylex): Now accepts parser_control * arg.
62007         (main) [TEST]: Use '\0' rather than 0 for char.
62008
62009 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62012
62013 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62016         It's now the caller's responsibility to handle the case where
62017         !HAVE_GETPAGESIZE && !defined getpagesize.
62018
62019         * lib/mktime.c (leapyear): Arg is long int, not int.
62020
62021 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62024
62025 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62028         missing.  Problem reported by James Youngman.
62029
62030 2004-10-16  Simon Josefsson  <jas@extundo.com>
62031
62032         * gnulib-tool: Fix comments.  Fix parse problem.
62033         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62034
62035 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62036
62037         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62038         implementation of getopt_long.  Problem reported by Alexander Taler in:
62039         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62040
62041 2004-10-15  Bruno Haible  <bruno@clisp.org>
62042
62043         * gnulib-tool: Untabify. Initialize supplied_libname.
62044         (func_usage): More homogenous output.
62045         (func_modules_transitive_closure, func_modules_to_filelist,
62046         func_emit_lib_Makefile_am): New functions.
62047         (func_import): New function, extracted from big case statement. Use
62048         func_get_license, func_modules_transitive_closure,
62049         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62050         opt_lgpl. Don't use test -a, as it's not portable.
62051         (func_create_testdir): Use func_modules_transitive_closure,
62052         func_modules_to_filelist, func_emit_lib_Makefile_am.
62053
62054 2004-10-15  Bruno Haible  <bruno@clisp.org>
62055
62056         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62057
62058 2004-10-15  Bruno Haible  <bruno@clisp.org>
62059
62060         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62061         the portions belonging to each module.
62062         Suggested by Derek Robert Price <derek@ximbiot.com>.
62063
62064 2004-10-12  Simon Josefsson  <jas@extundo.com>
62065
62066         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62067         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62068         to real functions.
62069
62070 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62071
62072         * modules/vsnprintf: New file.
62073
62074 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62075
62076         * m4/vsnprintf.m4: New file.
62077
62078 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62079
62080         * lib/vsnprintf.h: New file.
62081         * lib/vsnprintf.c: New file.
62082
62083 2004-10-11  Bruno Haible  <bruno@clisp.org>
62084
62085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62086         vsnprintf.
62087
62088 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62091
62092 2004-10-07  Bruno Haible  <bruno@clisp.org>
62093
62094         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62095         fits into the provided buffer.
62096
62097 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * lib/diacrit.c, diacrit.h: Add GPL notice.
62100
62101         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62102         notice.
62103         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62104         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62105         This avoids a potential constant-folding bug.
62106
62107 2004-10-05  Bruno Haible  <bruno@clisp.org>
62108
62109         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62110         for the declaration of strsep.
62111
62112 2004-10-05  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62115
62116 2004-10-04  Simon Josefsson  <jas@extundo.com>
62117
62118         * modules/memmem: New file.
62119         * tests/test-memmem.c: New file.
62120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62121
62122 2004-10-04  Simon Josefsson  <jas@extundo.com>
62123
62124         * m4/memmem.m4: New file.
62125
62126 2004-10-04  Simon Josefsson  <jas@extundo.com>
62127
62128         * lib/memmem.h: New file.
62129         * lib/memmem.c: New file, taken from glibc.
62130
62131 2004-10-04  Simon Josefsson  <jas@extundo.com>
62132
62133         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62134         '#ifdef USE_UNLOCKED_IO'.
62135
62136 2004-10-04  Simon Josefsson  <jas@extundo.com>
62137
62138         * config/srclist.txt: Add memmem from glibc.
62139
62140 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62143
62144         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62145         modules/exclude, modules/getdate, modules/getline,
62146         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62147         modules/getusershell, modules/linebuffer, modules/md5,
62148         modules/mountlist, modules/posixtm, modules/readtokens,
62149         modules/readutmp, modules/regex, modules/sha1,
62150         modules/version-etc, modules/yesno:
62151         Remove dependency on unlocked-io.
62152
62153 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62156
62157         * m4/unlocked-io.m4: Add copyright notice.
62158         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62159
62160 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62161
62162         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62163         * lib/xmalloc.c (xmemdup): Likewise.
62164         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62165         XFREE): Remove these long-obsolescent macros.
62166         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62167         * lib/xstrdup.c: Remove.
62168
62169         * lib/regex.c (re_comp): Cast gettext return value to char *,
62170         Problem reported by Martin Neitzel via Mark D. Baushke.
62171
62172 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62173
62174         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62175         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62176         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62177         regex.c, sha1.c, version-etc.c, yesno.c:
62178         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62179         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62180         the includer's responsibility.
62181
62182         Sync from coreutils.
62183
62184         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62185         points to the start of a string, as the C Standard says the
62186         resulting behavior is undefined.
62187
62188         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62189         simple -> simple_backups, numbered_existing ->
62190         numbered_existing_backups, numbered -> numbered_backups
62191         to avoid shadowing problems.  All uses changed.
62192         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62193         * lib/backupfile.c (check_extension, numbered_backup):
62194         Rename locals to avoid shadowing 'basename'.
62195         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62196         once.
62197
62198         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62199         * lib/.cvsignore: Add getopt.h.
62200
62201 2004-10-04  Bruno Haible  <bruno@clisp.org>
62202
62203         * modules/README: New file.
62204         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62205         not a module.
62206
62207 2004-10-02  Jim Meyering  <jim@meyering.net>
62208
62209         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62210
62211 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62212
62213         * modules/strsep: New file.
62214
62215 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62216
62217         * m4/strsep.m4: New file.
62218
62219 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62220
62221         * lib/strsep.h: New file.
62222         * lib/strsep.c: New file.
62223
62224 2004-10-01  Simon Josefsson  <jas@extundo.com>
62225
62226         * lib/snprintf.c (snprintf): Handle size==0.
62227
62228 2004-10-01  Simon Josefsson  <jas@extundo.com>
62229             Bruno Haible  <bruno@clisp.org>
62230
62231         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62232         (snprintf): Declare 'args'.
62233
62234 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         * lib/snprintf.c: Remove comments as to why each header is needed.
62237
62238 2004-10-01  Bruno Haible  <bruno@clisp.org>
62239
62240         * MODULES.html.sh: Add strsep.
62241
62242 2004-09-30  Simon Josefsson  <jas@extundo.com>
62243
62244         * modules/snprintf: New file.
62245
62246 2004-09-30  Simon Josefsson  <jas@extundo.com>
62247
62248         * m4/snprintf.m4: New file.
62249
62250 2004-09-30  Simon Josefsson  <jas@extundo.com>
62251
62252         * lib/snprintf.h, lib/snprintf.c: New files.
62253
62254 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62255
62256         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62257         (hol_entry_help): Never translate an empty string.
62258         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62259         * lib/argp.h (OPTION_NO_TRANS): New option.
62260
62261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         * modules/argp (Maintainer): Replace Simon Josefsson
62264         by Sergey Poznyakoff.
62265
62266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62267
62268         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62269         changes merged back into glibc.
62270
62271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62272
62273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62274
62275 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62276
62277         * lib/xvasprintf.c: Include xalloc.h.
62278         (xvasprintf): Use xalloc_die, not xmalloc_die.
62279
62280 2004-09-29  Bruno Haible  <bruno@clisp.org>
62281
62282         * modules/alloca-opt: New file, derived from modules/alloca.
62283         * modules/allocsa: Depend on alloca-opt instead of alloca.
62284         * modules/setenv: Likewise.
62285         * modules/vasnprintf: Likewise.
62286         * MODULES.html.sh: Add alloca-opt.
62287
62288 2004-09-28  Simon Josefsson  <jas@extundo.com>
62289
62290         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62291         LGPL, and to replace license template from GPL to LGPL.
62292
62293 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         * modules/dummy: Change license to LGPL.
62296
62297 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62300
62301 2004-09-24  Simon Josefsson  <jas@extundo.com>
62302
62303         * modules/minmax (License): Change from GPL to LGPL.
62304
62305 2004-09-23  Simon Josefsson  <jas@extundo.com>
62306
62307         * gnulib-tool (--import): Typo.
62308
62309 2004-09-23  Simon Josefsson  <jas@extundo.com>
62310
62311         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62312
62313 2004-09-22  Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/*: Add 'License' field.
62316         * gnulib-tool: Accept --extract-license option.
62317         (func_get_license): New function.
62318
62319 2004-09-21  Bruno Haible  <bruno@clisp.org>
62320
62321         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62322         Reported by Simon Josefsson.
62323
62324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62327         gl_AC_TYPE_LONG_LONG.
62328
62329 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62332
62333 2004-09-18  Simon Josefsson  <jas@extundo.com>
62334         and  Paul Eggert  <eggert@cs.ucla.edu>
62335
62336         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62337         calls with autoreconf.  Define GL_LIB.
62338
62339 2004-09-14  Karl Berry  <karl@gnu.org>
62340
62341         * config/srclist.txt: unsync setenv.c, sigh.
62342
62343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62346         Problem reported by Bruno Haible in:
62347         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62348
62349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62350
62351         * config/srclist.txt: Comment out argp-pvh.c.
62352
62353 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62354
62355         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62356         in case some system header has #define'd it.  Problem reported by
62357         Soeren D. Schulze in
62358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62359
62360 2004-09-09  Karl Berry  <karl@gnu.org>
62361
62362         * regex.[ch]: delete from the root.  These were supposed to be
62363                 synced with emacs cvs, but this has not happened for about
62364                 a year, and anyway nothing else uses emacs regex.[ch].
62365                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62366                 lib/regex[.ch] is untouched.
62367
62368 2004-09-09  Bruno Haible  <bruno@clisp.org>
62369
62370         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62371
62372 2004-09-09  Bruno Haible  <bruno@clisp.org>
62373
62374         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62375         modifications.
62376         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62377
62378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62379
62380         * modules/xvasprintf: New file.
62381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62382
62383 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62384
62385         * lib/xvasprintf.h: New file.
62386         * lib/xvasprintf.c: New file.
62387         * lib/xasprintf.c: New file.
62388
62389 2004-09-08  Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62392
62393 2004-09-08  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62396         length is > INT_MAX.
62397         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62398         more.
62399
62400 2004-09-08  Bruno Haible  <bruno@clisp.org>
62401
62402         * lib/stdint_.h: New file, taken from GNU clisp.
62403
62404 2004-09-08  Bruno Haible  <bruno@clisp.org>
62405             Oskar Liljeblad  <oskar@osk.mine.nu>
62406
62407         * modules/stdint: New file.
62408         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62409
62410 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62411
62412         Import from coreutils.
62413         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62414         strings on unbounded length.  alloca's performance benefits aren't
62415         that important here.
62416         (V_STRDUP): Remove.
62417         (parse_with_separator): New function, with most of the internals
62418         of the old parse_user_spec.  Allow user to omit both user and group,
62419         for compatibility with FreeBSD.
62420         Clone only the user name, not the entire spec.
62421         Do not set *uid, *gid unless entirely successful.
62422         Avoid memory leak in some failing cases.
62423         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62424         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62425         (parse_user_spec): Rewrite to use parse_with_separator.
62426
62427 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         * modules/userspec: Don't depend on alloca.
62430
62431 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62432
62433         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62434
62435 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62438         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62439         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62440
62441 2004-08-16  Simon Josefsson  <jas@extundo.com>
62442
62443         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62444         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62445         Add --dry-run for --import.
62446         Let user provided command line parameters override configure.ac
62447         settings.
62448
62449 2004-08-12  Simon Josefsson  <jas@extundo.com>
62450
62451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62452         as discussed with Paul Eggert in threads rooted at
62453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62454         and
62455         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62456         Before, the test was empty, and relied on ELIDE_CODE in source
62457         code.)
62458         (gl_PREREQ_GETOPT): New macro.
62459         (gl_GETOPT): Use them.
62460
62461 2004-08-12  Simon Josefsson  <jas@extundo.com>
62462
62463         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62464         * lib/getopt_.h: Renamed from getopt.h.
62465
62466 2004-08-12  Simon Josefsson  <jas@extundo.com>
62467
62468         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62469         Change default library name from libfoo to libgnu.
62470         Now, if you have a configure.ac that says:
62471                 gl_SOURCE_BASE(gl)
62472                 gl_M4_BASE(gl/m4)
62473                 gl_MODULES(error getopt etcetera)
62474                 gl_INIT
62475         you can import all you need by running:
62476                 ../gnulib/gnulib-tool --import
62477
62478         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62479         (Makefile.am): Rewrite, use logic from argz.
62480         (Include): Use <getopt.h> instead of "getopt.h".
62481
62482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62483
62484         * modules/argp (Files): Add m4/unlocked-io.m4.
62485         (Depends-on): Add extensions.
62486
62487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62490         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62491         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62492         Check for program_invocation_name, program_invocation_short_name,
62493         flockfile, funlockfile, features.h, _getopt_long_only_r.
62494
62495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62498         its complicated substitute.
62499         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62500         and program_invocation_name.
62501         (__argp_basename) [!_LIBC]: Remove; the only use was
62502         replaced by its body.
62503         (__argp_short_program_name): Change condition from
62504         !defined __argp_short_program_name to
62505         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62506         to match argp-namefrob.h.
62507         (__argp_failure): Don't assume strerror_r returns char *.
62508         * lib/argp-parse.c (N_): Define unconditionally.
62509         (argp_default_options): Fill out initializers with 0 to avoid
62510         gcc warnings.
62511
62512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62515         getopt1.c.
62516
62517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62518
62519         Merge from coreutils.
62520
62521         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62522
62523         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62524         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62525
62526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62527
62528         Merge from coreutils.
62529
62530         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62531         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62532         for Reliant Unix 5.43.
62533
62534         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62535         (union fooround): Use uintmax_t, not long int.
62536         The rest is a merge from libc:
62537         [defined _LIBC]: Include <shlib-compat.h>.
62538         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62539
62540         * lib/settime.c (settime): Recode to avoid warning with
62541         Sun Forte C 6U2.
62542
62543         * lib/strverscmp.c: Convert to UTF-8.
62544
62545 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62548         m4/uintmax_t.m4.
62549
62550 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62551
62552         * modules/xalloc-die: New file.
62553         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62554
62555         * modules/md5 (Files): Add m4/uint32_t.m4.
62556         * modules/sha1: Renamed from modules/sha.
62557         (Files):
62558         Rename lib/sha.h to lib/sha1.h.
62559         Rename lib/sha.c to lib/sha1.c.
62560         Rename m4/sha.m4 to m4/sha1.m4.
62561         (lib_SOURCES): Likewise.
62562         (configure.ac): Rename gl_SHA to gl_SHA1.
62563         (Include): sha.h -> sha1.h.
62564
62565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62568         * m4/sha1.m4: Renamed from sha.m4.
62569         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62570
62571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * lib/obstack.h (obstack_empty_p):
62574         Don't assume that chunk->contents is suitably aligned.
62575         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62576         Likewise. Problem reported by Benno in
62577         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62578
62579         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62580         readable.  This could be improved further but it'd take some work.
62581
62582 2004-08-08  Simon Josefsson  <jas@extundo.com>
62583
62584         * modules/xgethostname (Depends-on): Remove exit and error (not
62585         used).
62586
62587         * modules/getpass-gnu: Add getpass.h.
62588         (Depends-on): Add stdbool.
62589         * modules/getpass: Add getpass.h.
62590
62591 2004-08-08  Simon Josefsson  <jas@extundo.com>
62592
62593         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62594         Check getpass declaration.
62595
62596 2004-08-08  Simon Josefsson  <jas@extundo.com>
62597
62598         * lib/xgethostname.c: Don't include error.h (not used).
62599
62600         * lib/getpass.h: Add.
62601         * lib/getpass.c: Include getpass.h first.
62602
62603 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * lib/xalloc-die.c: New file.
62606         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62607         All uses removed.
62608         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62609         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62610         xalloc-die.c.
62611         (_, N_, xalloc_die): Move to xalloc-die.c.
62612         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62613         so that we needn't mess with xalloc_msg_memory_exhausted.
62614
62615         * lib/sha1.h: Renamed from sha.h.
62616         (SHA1_H): Renamed from _SHA_H.
62617         (sha1_ctx): Renamed from sha_ctx.
62618         (sha1_init_ctx): Renamed from sha_init_ctx.
62619         (sha1_process_block): Renamed from sha_process_block.
62620         (sha1_process_bytes): Renamed from sha_process_bytes.
62621         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62622         (sha1_read_ctx): Renamed from sha_read_ctx.
62623         (sha1_stream): Renamed from sha_stream.
62624         (sha1_buffer): Renamed from sha_buffer.
62625         * lib/sha1.c: Likewise; renamed from sha.c.
62626         Do not include <sys/types.h>.
62627         Include <stddef.h> rather than <stdlib.h>.
62628
62629 2004-08-08  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62632         FILESYSTEM_PREFIX_LEN.
62633         * lib/progreloc.c: Likewise.
62634         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62635
62636 2004-08-06  Simon Josefsson  <jas@extundo.com>
62637
62638         * modules/progname (Depends-on): Don't depend on stdbool.
62639
62640 2004-08-06  Simon Josefsson  <jas@extundo.com>
62641
62642         * modules/getsubopt: New file.
62643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62644         getsubopt.
62645
62646 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         More merge from coreutils.
62649
62650         * m4/utimens.m4, m4/utimecmp.m4: New files.
62651         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62652         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62653         prereq.m4, sha.m4: Import changes from coreutils.
62654
62655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         More merge from coreutils.
62658         * modules/raise, modules/readtokens0, modules/utimens:
62659         * modules/utimecmp, module/xnanosleep: New files.
62660         * modules/strftime: Add lib/strftime.h.
62661         Change include from <time.h> to "strftime.h".
62662         * modules/yesno: Add lib/yesno.h.
62663         * modules/backupfile: Remove lib/addext.c.
62664         * modules/euidaccess: Add stat-macros.h.
62665         * modules/canonicalize, modules/euidaccess,
62666         modules/filemode, modules/lchown, modules/makepath,
62667         modules/rmdir, modules/stat: Likewise.
62668
62669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         Merge from tar.
62672         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62673         SIZE_MAX is a valid preprocessor constant.
62674         (__argp_basename): Change from "#ifndef _LIBC"
62675         to "#ifndef __argp_short_program_name", so that
62676         we don't compile these functions for tar.
62677
62678         More merges from coreutils.
62679         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62680         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62681         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62682         * lib/addext.c: Remove; no longer needed.
62683         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62684         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62685         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62686         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62687         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62688         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62689         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62690         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62691         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62692         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62693         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62694         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62695         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62696         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62697         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62698         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62699         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62700         Import changes from coreutils.
62701
62702 2004-08-05  Simon Josefsson  <jas@extundo.com>
62703
62704         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62705
62706 2004-08-05  Simon Josefsson  <jas@extundo.com>
62707
62708         * m4/getsubopt.m4: New file.
62709
62710 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62711
62712         Merge from coreutils.
62713
62714         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62715         * m4/getcwd-path-max.m4: New files.
62716
62717         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62718         FILESYSTEM_PREFIX_LEN ->
62719         FILE_SYSTEM_PREFIX_LEN.
62720         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62721         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62722         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62723         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62724
62725         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62726         prerequisite modules now handle the DOS stuff.
62727         Don't check for unistd.h.
62728
62729 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         Merge from coreutils.
62732
62733         * lib/.gdb-history: Remove; this doesn't belong here.
62734
62735         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62736         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62737         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62738         * lib/getcwd.c: New files.
62739
62740         * lib/dirname.h: Include <stdbool.h>.
62741         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62742         for consistency with POSIX terminology.  All uses changed.
62743         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62744         (strip_trailing_slashes): Use bool for booleans.
62745         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62746
62747         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62748         sometimes returns a positive errno value even when it succeeds.
62749         (print_errno_message) [!LIBC]: Fall back on strerror if
62750         __strerror_r fails.
62751
62752         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62753         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62754         (longest_relative_suffix): New function.
62755         (path_concat): Use it.  Assume first argument is not NULL.
62756         Port to DOS.  Omit redundant separators.
62757         Report an error instead of returning NULL.
62758         Use mempcpy instead of memcpy.
62759         (xpath_concat): Remove: not declared or used.
62760
62761         * lib/same.h: Include <stdbool.h>
62762         (same_name): Return bool, not int.
62763         * lib/same.c (same_name): Likewise.
62764         (errno): Don't declare; we assume C89 or better now.
62765
62766         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62767         if not already defined.
62768
62769         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62770         * lib/dup-safer.c (errno): Likewise.
62771
62772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62773
62774         Merge from coreutils.
62775         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62776         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62777         * modules/path-concat: Don't depend on strdup.
62778
62779 2004-08-03  Simon Josefsson  <jas@extundo.com>
62780
62781         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62782         * lib/progname.h: Don't include stdbool.h.
62783
62784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62787         * MODULES.html.sh (func_all_modules): Remove fatal.
62788
62789 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62792
62793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62796         working.
62797
62798 2004-08-02  Simon Josefsson  <jas@extundo.com>
62799
62800         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62801         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62802         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62803
62804 2004-08-01  Simon Josefsson  <jas@extundo.com>
62805
62806         * lib/xgetdomainname.c: Include stdlib.h, for free().
62807
62808 2004-07-19  Bruno Haible  <bruno@clisp.org>
62809
62810         * MODULES.html.sh (func_all_modules): Add dummy.
62811
62812 2004-07-16  Simon Josefsson  <jas@extundo.com>
62813
62814         * modules/dummy: New file.
62815
62816 2004-07-16  Simon Josefsson  <jas@extundo.com>
62817
62818         * lib/dummy.c: New file.
62819
62820 2004-07-16  Bruno Haible  <bruno@clisp.org>
62821
62822         * lib/backupfile.h: Add extern "C" for C++.
62823         * lib/closeout.h: Likewise.
62824         * lib/copy-file.h: Likewise.
62825         * lib/findprog.h: Likewise.
62826         * lib/full-write.h: Likewise.
62827         * lib/pathname.h: Likewise.
62828         * lib/progname.h: Likewise.
62829         * lib/stpcpy.h: Likewise.
62830         * lib/stpncpy.h: Likewise.
62831         * lib/strcase.h: Likewise.
62832         * lib/strstr.h: Likewise.
62833         * lib/xalloc.h: Likewise.
62834
62835         * lib/mbswidth.h: Add extern "C" for C++.
62836         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62837
62838 2004-07-13  Robert Millan  <robertmh@gnu.org>
62839
62840         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62841
62842 2004-07-09  Simon Josefsson  <jas@extundo.com>
62843
62844         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62845         failed without this.)
62846
62847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         * modules/chown (Files): Add lib/fchown-stub.c, since
62850         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62851
62852 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62853
62854         * lib/fchown-stub.c: New file.
62855
62856 2004-06-24  Jim Meyering  <jim@meyering.net>
62857
62858         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62859
62860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * modules/argz: Omit "#include".
62863
62864         * MODULES.html.sh (func_all_modules): Add calloc, to match
62865         2004-06-01 addition of calloc module.
62866
62867 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         * m4/argz.m4: New file, which is autoupdated from libtool.
62870
62871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62874         libtool.
62875
62876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * config/srclist-update: Don't insist on "USA." before the
62879         close-comment, as libtool omits the period and puts the */ on a
62880         separate line.
62881         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62882         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62883
62884 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62885
62886         * modules/argz: New file.
62887         * MODULES.html.sh (func_all_modules): Add argz.
62888
62889 2004-06-12  Jim Meyering  <jim@meyering.net>
62890         and  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * modules/hash (Files): Add lib/xalloc.h.
62893         * modules/pipe (Depends-on): Add wait-process.
62894         * modules/stat (Depends-on): Add xalloc.
62895         * modules/userspec (Files): Add lib/userspec.h.
62896         * modules/xstrto
62897
62898         Upgrade from gettext-0.13.
62899         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62900         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62901         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62902
62903 2004-06-10  Jim Meyering  <jim@meyering.net>
62904
62905         * lib/calloc.c: New file.
62906
62907 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62908
62909         * lib/getdate.y (yylex): Allow space between sign and number.
62910         Problem reported by Dan Jacobson.
62911
62912 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62913
62914         Merge from coreutils CVS.
62915
62916         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62917         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62918         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62919         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62920         xstrtol.m4: Fix copyright date and/or serial number.
62921
62922         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62923         See if we need an fchown replacement.
62924         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62925         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62926         and use the replacement function if we detect either defect.
62927
62928         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62929         gl_UTIMECMP.
62930
62931 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62932         and  Jim Meyering  <jim@meyering.net>
62933
62934         Merge from coreutils CVS.
62935
62936         * lib/stat-macros.h: New file, with contents from file-type.h
62937         and coreutils' system.h.
62938         * lib/file-type.c: Include "stat-macros.h".
62939         * lib/file-type.h (file_type): Move all macro definitions to new file,
62940         stat-macros.h.
62941
62942         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62943         Wrap old code with this conditional.
62944         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62945         function that does not dereference symlinks.
62946         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62947
62948         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62949         dependency problems.
62950         (xreadlink): Accept new arg SIZE, for efficiency.
62951         All decls and uses changed.
62952         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62953
62954         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62955         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62956
62957         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62958         sysexits.h.
62959
62960 2004-06-01  Jim Meyering  <jim@meyering.net>
62961
62962         * m4/calloc.m4: New file.
62963
62964 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62967         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62968         Also, fix a typo in a diagnostic.
62969
62970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62971
62972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62973         or AC_FUNC_REALLOC.
62974
62975 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62978         macros to be defined.
62979         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62980         the allocator returns NULL because the requested size is zero.
62981
62982 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62985         var.  Add comment explaining why libc still defines it.  This
62986         merges the following patch from glibc:
62987         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62988
62989 2004-05-20  Andreas Schwab  <schwab@suse.de>
62990
62991         * m4/free.m4: Replace free if it not known to work, not the other
62992         way round.
62993
62994 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62997         present in glibc since revision 1.1 of this file.
62998         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62999         obstack_alignment_mask, obstack_alloc, obstack_base,
63000         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63001         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63002         obstack_grow0, obstack_init, obstack_int_grow,
63003         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63004         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63005         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63006         nonexistent functions.
63007
63008 2004-05-18  Karl Berry  <karl@gnu.org>
63009
63010         * config/srclist.txt: break link for vasnprintf.c.
63011
63012 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         Port obstack to the AS/400, where pointers are 16 bytes wide and
63015         you cannot cast an integer to a valid pointer.  This patch is
63016         currently waiting to be integrated into glibc; see
63017         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63018
63019         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63020         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63021         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63022         (struct obstack): temp member is now a union of a pointer and
63023         an integer, instead of an integer.  All integer uses changed.
63024         This does not affect the physical layout of struct obstack,
63025         except on hosts (like the AS/400) where the size or alignment of
63026         void * is greater than that of ptrdiff_t.
63027         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63028         __STDC__)]: Store temporary in pointer member of union, not
63029         integer member.
63030         * lib/obstack.c: Include <stddef.h>, for offsetof.
63031         (struct fooalign): Remove; it doesn't need a name.
63032         (union fooround): Change double to long double, and add void *.
63033         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63034         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63035         not a macro.  Hence the values are always int; so remove all
63036         casts-to-int in uses.
63037
63038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63039
63040         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63041         we can get this patch merged into glibc.
63042
63043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63044             Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * m4/argp: Depend on alloca.
63047
63048 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63049             Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63052         freecoding.
63053
63054 2004-05-17  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63057         precision that consists of a '.' followed by an empty digit string.
63058         Patch by Tor Lillqvist <tml@iki.fi>.
63059
63060 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63063         for backward compatibility with older code.  We need our own
63064         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63065         it under some other name, and our alloca.h will define it.
63066
63067 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63068             Derek Price  <derek@ximbiot.com>
63069
63070         * lib/alloca.c: Include <alloca.h>, to get our interface.
63071         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63072         include <alloca.h> first.  Use C89 prototype for alloca; this
63073         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63074         Use #elif for simplicity, since we can assume C89 now.
63075         Don't try to source the system alloca.h since it will not be found
63076         and to prevent recursively including its replacement.
63077         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63078         * lib/regex.c: Likewise.
63079
63080 2004-05-16  Derek Price  <derek@ximbiot.com>
63081             Paul Eggert  <eggert@cs.ucla.edu>
63082
63083         getline cleanup.  This changes the getndelim2 API: both order of
63084         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63085         no delimiter).
63086
63087         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63088         interface does that.
63089         (getline): Always use getdelim, so that we don't have two
63090         copies of this code.
63091         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63092         if available.
63093         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63094         (GETNDELIM2_MAXIMUM): New macro.
63095         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63096         instead of the old practice of delim2==0.  All callers changed.
63097         Return -1 on overflow, instead of returning junk.
63098         Do not set *linesize unless allocation succeeds.
63099         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63100         that we include sys/types.h.
63101         * lib/getnline.h: Likewise.
63102         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63103         (getndelim2): Reorder arguments.
63104         * lib/getnline.c (getnline, getndelim):
63105         Don't discard the NMAX argument.
63106         (getnline): Invoke getndelim, to avoid code duplication.
63107         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63108         of (size_t) -1 by callers of the getnline family.
63109
63110 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63113         Check for gettimeofday.
63114         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63115         Check for settimeofday, stime.
63116
63117 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         * lib/nanosleep.c (suspended): Change its type from int to
63120         sig_atomic_t volatile.
63121         (first_call): Make it private to rpl_nanosleep, and have it
63122         be zero initially as that's a bit faster.
63123         (my_usleep): Round up fractional times instead of truncating them,
63124         as this is the usual meaning for 'sleep'.
63125
63126         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63127         doesn't work.
63128         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63129         (ENOSYS): Define if not defined.
63130         (settime): Fall back on stime if it exists and settimeofday fails.
63131         But don't bother with fallbacks if a method fails with errno == EPERM.
63132
63133 2004-05-11  Jim Meyering  <jim@meyering.net>
63134
63135         Prior to this change, the save_cwd caller required read access to the
63136         current directory on most systems (ones with the fchdir function).
63137
63138         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63139         fails, try write-only, and finally, resort to using xgetcwd.
63140
63141 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * lib/obstack.c, obstack.h: Import changes from libc.
63144
63145 2004-04-28  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63148         also implicitly appends .exe to executables.
63149         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63150         accepts Windows pathnames.
63151         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63152         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63153         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63154         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63155         Reported by Derek Robert Price <derek@ximbiot.com>.
63156
63157 2004-04-21  Karl Berry  <karl@gnu.org>
63158
63159         * config/srclist.txt (localcharset.c): break sync.
63160
63161 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63162
63163         * m4/host-os.m4: Add a copyright notice.
63164
63165 2004-04-20  Jim Meyering  <jim@meyering.net>
63166
63167         Change UTILS_ to gl_ in AC_DEFINE'd names.
63168         Change utils_- and jm_-prefixed variables, too.
63169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63170         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63172
63173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63174         Don't emit trailing blanks.
63175         Also rename jm_-prefixed variables to have gl_ prefix.
63176
63177         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63178         Also rename jm_-prefixed variables to have gl_ prefix.
63179
63180         * m4/jm-macros.m4: Reflect the renamings.
63181         * m4/prereq.m4: Likewise.
63182
63183 2004-04-20  Jim Meyering  <jim@meyering.net>
63184
63185         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63186         memory.
63187
63188 2004-04-20  Jim Meyering  <jim@meyering.net>
63189             Bruno Haible  <bruno@clisp.org>
63190
63191         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63192         memory when realloc fails.
63193
63194 2004-04-19  Jim Meyering  <jim@meyering.net>
63195
63196         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63197         now that readutmp.c may call `free (0)'.
63198
63199 2004-04-19  Bruno Haible  <bruno@clisp.org>
63200
63201         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63202         * m4/inttypes_h.m4: Likewise.
63203         * m4/stdint_h.m4: Likewise.
63204         * m4/intmax_t.m4: Likewise.
63205         * m4/uintmax_t.m4: Likewise.
63206
63207 2004-04-18  Jim Meyering  <jim@meyering.net>
63208
63209         * m4/prereq.m4: Don't forbid jm_ prefix.
63210
63211         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63212         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63213         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63214         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63215         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63216         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63217         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63218         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63219         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63220         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63221         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63222         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63223         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63224         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63225         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63226         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63227         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63228         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63229         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63230
63231 2004-04-18  Jim Meyering  <jim@meyering.net>
63232
63233         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63234         failure, don't leak memory and do call END_UTMP_ENT.
63235
63236 2004-04-16  Jim Meyering  <jim@meyering.net>
63237
63238         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63239         coreutils' stat program.
63240         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63241
63242 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63243
63244         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63245         C89.
63246         (CHAR_BIT): Remove, since we assume C89.
63247         Include <stdint.h> if available, as per current Autoconf CVS advice.
63248
63249 2004-03-31  Jim Meyering  <jim@meyering.net>
63250
63251         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63252         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63253         * m4/xalloc.m4: Likewise.
63254
63255 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63256
63257         Merge from coreutils.
63258
63259         * m4/inttostr.m4: New file.
63260         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63261         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63262         Require gl_CLOCK_TIME.
63263         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63264
63265 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63266
63267         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63268         not bool, to be more consistent with Unix conventions.
63269         Suggested by Bruno Haible.
63270
63271         Merge from coreutils.
63272
63273         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63274         * lib/umaxtostr.c: New files.
63275
63276         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63277         the usual <time.h> dance.
63278         (get_date): Change signature to support fractional time stamps.
63279         All callers changed.
63280         * lib/getdate.y: Include "getdate.h" first, as we can now
63281         assume C89 and don't need to worry about 'const'.
63282         Similarly, include "unlocked-io.h" near start, not in middle.
63283         Include <limits.h>.
63284         (textint.value): Use long int rather than int.
63285         (textint.digits): Use size_t rather than int.
63286         (BILLION, LOG10_BILLION): New constants.
63287         (parser_control): New member rel_ns.  Members day_ordinal,
63288         time_zone, month, day, hour, minutes, rel_year, rel_month,
63289         rel_day, rel_hour, rel_minutes, rel_seconds
63290         are now long int, not int.  Member seconds is now struct timespec,
63291         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63292         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63293         not int.
63294         (%union.intval): Now long int, not int.
63295         New member timespec.
63296         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63297         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63298         (spec): Now is a timespec or an item list.
63299         (timespec, items): New nonterminals.
63300         (time, rel, relunit, number, get_date):
63301         Add support for fractional seconds.
63302         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63303         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63304         (to_hour): First arg is now long int, not int.
63305         (to_year): Returns long int, not int.
63306         Don't treat year -70 like 70.
63307         (tm_diff): Returns long int, not int.
63308         (lookup_word): Use bool instead of int when appropriate.
63309         (yylex): Use size_t for count, not int.
63310         Detect overflow when parsing large integer constants.
63311         Add support for fractions.
63312         (get_date): Make pointers 'const' if possible.
63313         Use more-portable code to detect integer overflow.
63314         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63315         Don't use ctime; it's not reliable if the year has >4 digits.
63316
63317         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63318         This is for compatibility with BSD.
63319
63320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63321         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63322         From coreutils' system.h.
63323
63324         * lib/userspec.c: Don't include "posixver.h".
63325         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63326         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63327         compatible extension.  Simplify code by removing a boolean int
63328         that was always nonzero if a string was nonnull.
63329
63330 2004-03-30  Jim Meyering  <jim@meyering.net>
63331
63332         Merge from coreutils.
63333
63334         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63335         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63336         on some systems one must include <grp.h> before it.
63337         Reported by Christian Krackowizer.
63338
63339 2004-03-30  Jim Meyering  <jim@meyering.net>
63340
63341         Merge from coreutils.
63342
63343         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63344
63345         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63346         an empty input stream.
63347
63348         * lib/readtokens.c: Include <stdbool.h>.
63349         (readtoken): Use `size_t' rather than int/long.
63350         All callers adjusted.
63351         Use `bool' rather than `int' where appropriate.
63352         Use memset rather than an explicit loop.
63353         Use x2nrealloc rather than xrealloc.
63354         Allow the use of `\0' as a delimiter.
63355         (readtokens): Likewise.
63356         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63357
63358 2004-03-30  Jim Meyering  <jim@meyering.net>
63359
63360         * m4/realloc.m4: Remove file, since now it does no more than
63361         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63362         the `configure.ac' section of module/realloc.
63363         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63364
63365 2004-03-30  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63368         nonnull.
63369
63370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63371
63372         Merge changes to getloadavg.c from coreutils and Emacs.
63373
63374         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63375         Define to an expression, not to the empty string.
63376         Include cloexec.h and xalloc.h.
63377         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63378         Use set_cloexec_flag rather than rolling our own.
63379         * lib/cloexec.c, lib/cloexec.h: New files.
63380
63381 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63382
63383         * m4/cloexec.m4: New file.
63384
63385 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63386
63387         * lib/getopt.h: Sync with libc CVS.
63388
63389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63390             Bruno Haible  <bruno@clisp.org>
63391
63392         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63393         mbswidth.
63394
63395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63396             Bruno Haible  <bruno@clisp.org>
63397
63398         * lib/mbswidth.h: Include <wchar.h> only if
63399         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63400         <wchar.h>.
63401         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63402
63403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63404
63405         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63406         Sync with libc CVS.
63407         * lib/getopt_int.h: New file, also synced from libc.
63408
63409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63410
63411         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63412         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63413         Bring back getopt.c, getopt.h, getopt1.c.
63414
63415 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63416
63417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63418         All uses changed.  Check for sa_sigaction member; this fixes
63419         a bug first reported by Jason Andrade in
63420         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63421
63422 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63423
63424         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63425         '#if' expressions.  Unlike the code it replaces, it does not
63426         depend on (defined _SC_PAGESIZE).  However, it does depend on
63427         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63428         first reported by Jason Andrade in
63429         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63430
63431 2004-02-25  Simon Josefsson  <jas@extundo.com>
63432
63433         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63434
63435 2004-02-25  Simon Josefsson  <jas@extundo.com>
63436
63437         * lib/strdup.h: New file.
63438         * lib/strdup.c: Include it.
63439         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63440         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63441
63442 2004-02-23  Karl Berry  <karl@gnu.org>
63443
63444         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63445         (from fencepost.gnu.org:/gd/gnuorg).
63446
63447 2004-02-23  Karl Berry  <karl@gnu.org>
63448
63449         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63450         * config/srclist.txt: add maintain/standards documents.
63451
63452 2004-02-18  Bruno Haible  <bruno@clisp.org>
63453
63454         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63455         Reported by Derek Robert Price <derek@ximbiot.com>.
63456
63457 2004-02-16  Karl Berry  <karl@gnu.org>
63458
63459         * config/mkinstalldirs, install-sh: update from automake.
63460
63461 2004-02-06  Karl Berry  <karl@gnu.org>
63462
63463         * m4/po.m4: update from gettext 0.14.1.
63464
63465 2004-02-06  Karl Berry  <karl@gnu.org>
63466
63467         * lib/config.charset: update from gettext 0.14.1.
63468
63469 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63470
63471         Add comments and code, prompted by suggestions from Bruno Haible
63472         for sh-quote.
63473         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63474         describing the enum quoting_style values.
63475         * lib/quotearg.c (quotearg_alloc): New function.
63476         (quotearg_buffer_restyled): Treat lone { and } as special.
63477         Treat = as special.  Work around bug with older shells
63478         that "see" a '\' that is really the 2nd byte of a multibyte char.
63479         Quote empty string with shell_quoting_style.
63480
63481 2004-02-03  Bruno Haible  <bruno@clisp.org>
63482
63483         * m4/pipe.m4: New file, from GNU gettext.
63484
63485 2004-02-03  Bruno Haible  <bruno@clisp.org>
63486
63487         * lib/pipe.h: New file, from GNU gettext.
63488         * lib/pipe.c: New file, from GNU gettext.
63489
63490 2004-01-27  Bruno Haible  <bruno@clisp.org>
63491
63492         * m4/execute.m4: New file, from GNU gettext.
63493
63494 2004-01-27  Bruno Haible  <bruno@clisp.org>
63495
63496         * lib/execute.h: New file, from GNU gettext.
63497         * lib/execute.c: New file, from GNU gettext.
63498         * lib/w32spawn.h: New file, from GNU gettext.
63499
63500 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63501
63502         Merge from diffutils.
63503
63504         * lib/file-type.c (file_type): Add typed memory objects.
63505         * lib/file-type.h (S_TYPEISTMO): New macro.
63506
63507         * lib/c-stack.h (c_stack_action): Remove argv argument.
63508         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63509         (die): Don't calculate message unless segv_action returns.
63510         (get_stack_location, min_address_from_argv, max_address_from_argv,
63511         volatile stack_base, volatile_stack_size): Remove.
63512         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63513         that every segmentation violation is a stack overflow.  (Ouch!)
63514         See Debian bug 136249 (still outstanding) for more info about why
63515         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63516
63517 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63518
63519         Exit-status fix from coreutils.
63520
63521         Use exit_failure consistently in place of EXIT_FAILURE,
63522         so that program exit statuses are consistent on failure.
63523
63524         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63525         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63526         * lib/argmatch.h: Comment fix to match the above.
63527         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63528         Now a macro referring to exit_failure, instead of a separate
63529         variable.  Include "exitfail.h" to get it.
63530         * lib/xstrtol.h: Include "exitfail.h".
63531         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63532
63533         * lib/long-options.c (parse_long_options): Use prototype
63534         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63535         for clarity.
63536
63537 2004-01-21  Jim Meyering  <jim@meyering.net>
63538
63539         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63540         so as not to conflict with a different-sized __mktime_internal
63541         function in GNU libc.
63542         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63543         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63544
63545 2004-01-20  Karl Berry  <karl@gnu.org>
63546
63547         * config/config.guess: update from config.
63548
63549         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63550
63551 2004-01-20  Bruno Haible  <bruno@clisp.org>
63552
63553         Safer stack allocation.
63554         * lib/setenv.c: Include allocsa.h.
63555         (alloca): Remove fallback definition.
63556         (freea): Remove macro.
63557         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63558         instead of freea.
63559
63560 2004-01-20  Bruno Haible  <bruno@clisp.org>
63561
63562         * m4/eealloc.m4: New file, from GNU gettext.
63563
63564 2004-01-20  Bruno Haible  <bruno@clisp.org>
63565
63566         * m4/allocsa.m4: New file, from GNU gettext.
63567
63568 2004-01-20  Bruno Haible  <bruno@clisp.org>
63569
63570         * lib/xallocsa.h: New file, from GNU gettext.
63571         * lib/xallocsa.c: New file, from GNU gettext.
63572
63573 2004-01-20  Bruno Haible  <bruno@clisp.org>
63574
63575         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63576
63577 2004-01-20  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63580         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63581         specially.
63582
63583 2004-01-20  Bruno Haible  <bruno@clisp.org>
63584
63585         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63586         patch.
63587
63588 2004-01-20  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63591
63592 2004-01-20  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/eealloc.h: New file.
63595
63596 2004-01-20  Bruno Haible  <bruno@clisp.org>
63597
63598         * lib/binary-io.h: Avoid warnings on Cygwin.
63599
63600 2004-01-20  Bruno Haible  <bruno@clisp.org>
63601
63602         * lib/allocsa.h: New file, from GNU gettext.
63603         * lib/allocsa.c: New file, from GNU gettext.
63604
63605 2004-01-18  Karl Berry  <karl@gnu.org>
63606
63607         * doc/gpl.texi, doc/lgpl.texi: new files.
63608
63609 2004-01-18  Karl Berry  <karl@gnu.org>
63610
63611         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63612         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63613
63614 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63615
63616         Merge from coreutils.
63617
63618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63619         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63620         (gl_DEFAULT_POSIX2_VERSION): Move
63621         the documentation from 'configure' into 'config.hin',
63622         so that 'configure --help' isn't burdened by it and
63623         we don't have to worry about its formatting there.
63624         Reword the documentation so that it's more succinct
63625         and can be run together into a single paragraph.
63626         * m4/same.m4 (gl_SAME): Check for pathconf.
63627
63628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63629
63630         Merge from coreutils.
63631
63632         * lib/posixver.c: Include posixver.h.
63633
63634         * lib/same.c: Include <stdbool.h>, <limits.h>.
63635         (_POSIX_NAME_MAX): Define if not defined.
63636         (MIN): New macro.
63637         (same_name): If file names are silently truncated, report
63638         that the file names are the same if they are the same after
63639         the silent truncation.
63640
63641         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63642         conversion function.
63643         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63644         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63645         longer needed.
63646
63647 2004-01-15  Jim Meyering  <jim@meyering.net>
63648
63649         Merge from coreutils.
63650
63651         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63652         if no library is required.
63653         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63654         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63655         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63656         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63657         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63658         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63659         value, $ac_cv_search_crypt, if it's "none required".
63660         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63661         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63662         not gl_FUNC_GETLOADAVG.
63663         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63664         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63665
63666 2004-01-15  Jim Meyering  <jim@meyering.net>
63667
63668         Merge from coreutils.
63669
63670         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63671         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63672         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63673
63674         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63675         optional configure-time default.
63676
63677         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63678
63679         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63680
63681 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63682
63683         Merge from coreutils.
63684
63685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63686         value, $ac_cv_search_nanosleep, if it's "none required".
63687
63688 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63689
63690         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63691         with like-named macro in fnmatch.c.
63692         (EXT): Use an internal constant instead.
63693
63694         Merge fnmatch patches from glibc.
63695         * lib/fnmatch.c (mbsinit): Remove define.
63696         Add libc_hidden_ver (__fnmatch, fnmatch).
63697         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63698         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63699
63700 2004-01-14  Karl Berry  <karl@gnu.org>
63701
63702         * config/install-sh: update from automake.
63703
63704 2004-01-13  Karl Berry  <karl@gnu.org>
63705
63706         * config/install-sh: update from automake.
63707
63708 2004-01-09  Karl Berry  <karl@gnu.org>
63709
63710         * config/install-sh: update from automake.
63711
63712 2004-01-05  Karl Berry  <karl@gnu.org>
63713
63714         * config/config.{sub,guess}: update from config.
63715
63716 2003-12-31  Karl Berry  <karl@gnu.org>
63717
63718         * config/depcomp: update from automake.
63719
63720 2003-12-14  Karl Berry  <karl@gnu.org>
63721
63722         * lib/config.charset: update from gettext-runtime.
63723
63724 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63725
63726         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63727         Bug reported by Alfred M. Szmidt.
63728
63729 2003-12-03  Bruno Haible  <bruno@clisp.org>
63730
63731         * m4/gettext.m4: Upgrade from gettext-0.13.
63732         * m4/po.m4: Upgrade from gettext-0.13.
63733         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63734         * m4/intmax.m4: New file, from gettext-0.13.
63735         * m4/printf-posix.m4: New file, from gettext-0.13.
63736
63737 2003-11-29  Karl Berry  <karl@gnu.org>
63738
63739         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63740
63741 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63742             Bruno Haible  <bruno@clisp.org>
63743
63744         * lib/printf-parse.h: Don't include sys/types.h.
63745         (ARG_NONE): New macro.
63746         (char_directive): Change type of *arg_index fields to size_t.
63747         * lib/printf-parse.c: Don't include sys/types.h.
63748         (SSIZE_MAX): Remove macro.
63749         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63750         Remove unnecessary overflow check.
63751         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63752         fields.
63753
63754 2003-11-25  Bruno Haible  <bruno@clisp.org>
63755
63756         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63757
63758 2003-11-25  Bruno Haible  <bruno@clisp.org>
63759
63760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63761         gt_TYPE_SSIZE_T.
63762
63763 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63764
63765         * modules/alloca: Remove dependency on xalloc.
63766
63767 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63768
63769         * lib/alloca.c: Remove dependency on xalloc module.
63770         (xalloc_die): Remove.
63771         (memory_full) [!defined emacs]: New macro.
63772         [!defined emacs]: Don't include xalloc.h.
63773         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63774         address arithmetic overflows.  Change datatypes a bit to avoid
63775         unnecessary casts.
63776
63777 2003-11-22  Jim Meyering  <jim@meyering.net>
63778
63779         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63780         s/size/size_t/.
63781
63782 2003-11-21  Karl Berry  <karl@gnu.org>
63783
63784         * config/config.{sub,guess}: update from config.
63785
63786 2003-11-18  Karl Berry  <karl@gnu.org>
63787
63788         * config/config.{sub,guess}: update from config.
63789
63790         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63791
63792 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63793
63794         * README: Mention that S+T cannot overflow if S is the size of
63795         an existing object and T is sufficiently small.
63796
63797 2003-11-17  Jim Meyering  <jim@meyering.net>
63798
63799         On systems without utime and without a utimes function capable of
63800         dealing with a NULL struct utimbuf* argument, this utime replacement
63801         could -- in unusual circumstances -- leak a file descriptor.
63802         * lib/utime.c: Include <unistd.h> and <errno.h>.
63803         (utime_null): Be sure to close `fd' and to preserve errno.
63804         Reported by Geoff Collyer via Arnold Robbins.
63805
63806 2003-11-17  Bruno Haible  <bruno@clisp.org>
63807
63808         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63809         (Depends-on): Add xsize.
63810
63811 2003-11-17  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63814
63815 2003-11-17  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/vasnprintf.c (alloca): Remove fallback definition.
63818         (freea): Remove definition.
63819         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63820         Reported by Paul Eggert.
63821
63822 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63823             Bruno Haible  <bruno@clisp.org>
63824
63825         Protect against address arithmetic overflow.
63826         * lib/printf-args.h: Include stddef.h.
63827         (arguments): Change type of field 'count' to size_t.
63828         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63829         'unsigned int' where appropriate.
63830         * lib/printf-parse.h: Include sys/types.h.
63831         (char_directive): Change type of *arg_index fields to ssize_t.
63832         (char_directives): Change type of fields 'count', max_*_length to
63833         size_t.
63834         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63835         (SSIZE_MAX): Define fallback value.
63836         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63837         instead of 'int' where appropriate. Check a_allocated, d_allocated
63838         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63839         * lib/vasnprintf.c: Include xsize.h.
63840         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63841         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63842         overflow. Avoid wraparound when converting a width or precision from
63843         decimal to binary.
63844
63845 2003-11-16  Bruno Haible  <bruno@clisp.org>
63846
63847         Update from GNU gettext.
63848         * lib/printf-parse.c: Generalize to it can be compiled for wide
63849         strings.
63850         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63851         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63852         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63853         SNPRINTF): New macros.
63854         Don't include <alloca.h> if the file is used inside libintl.
63855         (local_wcslen): New function, for Solaris 2.5.1.
63856         (VASNPRINTF): Use it instead of wcslen.
63857
63858 2003-11-16  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/xsize.h (xmax): New function.
63861         (xsum, xsum3, xsum4): Declare as "pure" functions.
63862
63863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63864
63865         * modules/xalloc (Files): Undo latest change, since xalloc.h
63866         no longer needs SIZE_MAX or PTRDIFF_MAX.
63867
63868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63869
63870         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63871         gl_PTRDIFF_MAX.
63872
63873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63874
63875         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63876         "return", to pacify some unknown compiler.  Problem reported
63877         by Joerg Schilling.
63878
63879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63880
63881         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63882         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63883         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63884         heuristic is just as accurate as far as we know, and it removes a
63885         dependency on size_max.m4 and ptrdiff_max.m4.
63886
63887 2003-11-11  Bruno Haible  <bruno@clisp.org>
63888
63889         * modules/xsize (Files): Add m4/size_max.m4.
63890         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63891
63892 2003-11-11  Bruno Haible  <bruno@clisp.org>
63893
63894         * m4/size_max.m4: New file.
63895         * m4/ptrdiff_max.m4: New file.
63896         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63897         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63898         (gl_XALLOC): Invoke it.
63899
63900 2003-11-11  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63903         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63904         defined.
63905
63906 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63907
63908         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63909         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63910         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63911         From Bruno Haible.
63912         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63913         not (size_t) -1, since it's defined here.
63914
63915 2003-11-09  Karl Berry  <karl@gnu.org>
63916
63917         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63918
63919 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63920
63921         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63922         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63923         Reject sizes of exactly SIZE_MAX bytes.
63924         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63925         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63926
63927 2003-11-05  Bruno Haible  <bruno@clisp.org>
63928
63929         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63930         SIZE_MAX defined in <limits.h> on Solaris.
63931
63932 2003-11-04  Jim Meyering  <jim@meyering.net>
63933
63934         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63935         variable names, rather than @VAR@.
63936         * modules/poll: Likewise.
63937
63938 2003-11-04  Bruno Haible  <bruno@clisp.org>
63939
63940         * modules/xsize: New file.
63941         * modules/linebreak: Depend on xsize.
63942         * MODULES.html.sh (func_all_modules): Add xsize.
63943
63944 2003-11-04  Bruno Haible  <bruno@clisp.org>
63945
63946         * m4/xsize.m4: New file.
63947
63948 2003-11-04  Bruno Haible  <bruno@clisp.org>
63949
63950         * lib/xsize.h: New file.
63951         * lib/linebreak.c: Include xsize.h.
63952         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63953         argument for overflow.
63954         Suggested by Paul Eggert.
63955
63956 2003-11-03  Karl Berry  <karl@gnu.org>
63957
63958         * config/config.{guess,sub}: update from config.
63959
63960 2003-11-03  Jim Meyering  <jim@meyering.net>
63961
63962         * modules/userspec (lib_SOURCES): Add userspec.h.
63963         (Include): Add "userspec.h".
63964         Improve description.
63965
63966 2003-11-03  Jim Meyering  <jim@meyering.net>
63967
63968         * lib/userspec.c: Include "userspec.h".
63969         * lib/userspec.h: New file.
63970
63971 2003-11-03  Bruno Haible  <bruno@clisp.org>
63972
63973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63974
63975 2003-11-03  Bruno Haible  <bruno@clisp.org>
63976
63977         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63978         available, to avoid (extremely rare) race condition.
63979         Suggested by Paul Eggert.
63980
63981 2003-11-02  Karl Berry  <karl@gnu.org>
63982
63983         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63984
63985 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63986
63987         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63988         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63989         (read_filesystem_list): Set and use me_type_malloced.
63990         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63991         whatever the type happens to be), for brevity and consistency.
63992         Check for size calculation overflow on Alphas running OSF/1.
63993
63994 2003-10-31  Jim Meyering  <jim@meyering.net>
63995
63996         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63997
63998         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63999
64000 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64001             Bruno Haible  <bruno@clisp.org>
64002
64003         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64004         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64005
64006 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64007
64008         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64009         netbsd*-gnu*.  Suggested by Robert Millan.
64010
64011 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64012
64013         * modules/group-member: Depend on stdbool.
64014
64015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64016
64017         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64018
64019 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64020
64021         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64022         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64023         after the 'gnu' in these cases.  This fixes some bugs in the
64024         previous change, and is based on suggestions by Robert Millan.
64025
64026 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64027
64028         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64029         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64030         no longer needed.
64031         * lib/quotearg.c (quotearg_n_options): Use it.
64032         * lib/group-member.c: Include <stdbool.h>.
64033         (free_group_info): Arg is now const *; don't free arg.
64034         (get_group_info): Now returns bool and accepts struct group_info *,
64035         rather than returning a malloc'ed struct group_info *.
64036         All uses changed.  Check for overflow in internal size calculation.
64037
64038         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64039         rather than xmalloc/xrealloc.
64040         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64041         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64042         conformance bug: the old code used a pointer after freeing the
64043         storage that it addressed.
64044         * lib/hash.c (hash_initialize): Simplify the code by using
64045         xalloc_oversized rather than doing it by hand.
64046         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64047         the buffer preserved.  Use free and xmalloc instead.
64048         * lib/quotearg.c (quotearg_n_options): Likewise.
64049         Use a simpler test for size overflow.  Don't use xalloc_oversized
64050         because unsigned int might be wider than size_t (!); this suggests
64051         that we should switch from unsigned int to size_t for slot numbers.
64052
64053 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64054
64055         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64056         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64057         NetBSD kernels.  Requested by Richard Stallman.
64058
64059 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64060
64061         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64062         to allocate the returned structure.  Do not allocate a subarray,
64063         as x2nrealloc will do that.
64064         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64065         instead of xnrealloc.
64066         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64067
64068 2003-10-27  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/stdbool_.h: Better support for BeOS.
64071
64072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64073
64074         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64075         now uses inline.
64076
64077 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64078
64079         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64080         callers that want to do their own size-overflow checking.  Include
64081         <stdbool.h>, since xalloc_oversized returns bool.
64082         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64083         to use xalloc_oversized.
64084
64085         Add two functions x2realloc, x2nrealloc, for programs that grow
64086         arrays dynamically by doubling their sizes.
64087         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64088         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64089         New functions.
64090
64091         Port to C99 semantics for 'inline' of external functions.
64092         Bug reported by Bruno Haible.
64093         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64094         with the old contents of xnmalloc.
64095         (xnmalloc, xmalloc): Use it.
64096         (xnrealloc_inline): New static inline function,
64097         with the old contents of xnrealloc.
64098         (xnrealloc, xrealloc): Use it.
64099
64100         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64101         that.
64102
64103 2003-10-26  Karl Berry  <karl@gnu.org>
64104
64105         * config/srclist.txt (COPYING.DOC): no longer available from
64106         /gd/gnuorg; don't know where the ultimate source is.
64107
64108 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64109
64110         Fix several address-calculation bugs in the hash modules,
64111         plus some minor code cleanup.
64112
64113         * lib/hash.h: Include <stdbool.h>, for bool.
64114         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64115         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64116         hash_get_n_entries, hash_get_max_bucket_length,
64117         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64118         hash_rehash): Use size_t rather than unsigned.
64119         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64120         hash_get_n_buckets_used, hash_get_n_entries,
64121         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64122         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64123         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64124         Likewise.
64125         (SIZE_MAX): Define if not defined.
64126         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64127         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64128         hash_print):
64129         Use const * when possible.
64130         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64131         (check_tuning): Fix bug: if tuning parameters were very close to
64132         0 or 1, rounding errors could have caused subscript violations.
64133         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64134         (hash_initialize): Add 'fail:' label
64135         to free table and return NULL, and use it to simplify code.
64136         Use calloc rather than clearing the storage ourself.
64137         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64138         buffer size calculations.
64139         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64140         Include <stddef.h>, for size_t.
64141         * lib/hash-pjw.c (hash_pjw): Likewise.
64142         Switch to method described by Bruno Haible.
64143         Include <limits.h>, for CHAR_BIT.
64144         (SIZE_BITS): New macro.
64145
64146 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64147
64148         * m4/getline.m4 (AM_FUNC_GETLINE):
64149         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64150         hosts.  Problem reported by Derek Robert Price in
64151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64152         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64153         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64154
64155 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64156
64157         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64158         ceiling the allocation at NMAX bytes rather than silently
64159         discarding input bytes before NMAX is reached.  This makes
64160         a difference only if NMAX exceeds SIZE_MAX / 2.
64161
64162         * lib/obstack.c: Merge from glibc.
64163         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64164         Add libc_hidden_def (_obstack_newchunk).
64165         (_obstack_free) [! defined _LIBC]: Remove.
64166         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64167         a clone of the function body.
64168         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64169         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64170
64171         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64172         glibc.
64173         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64174         arg to memcpy.
64175
64176         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64177         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64178         Don't use lvalue casts, as GCC plans to remove support for them
64179         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64180         was also present in the non-GCC version, indicating that this
64181         code had always been buggy and had never been widely used.
64182         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64183         Use the fast variant of each macro, rather than copying the
64184         definiens of the fast variant; that way, we'll be more likely to
64185         catch future bugs in the fast variants.
64186
64187 2003-10-20  Bruno Haible  <bruno@clisp.org>
64188
64189         * modules/wait-process: New file.
64190         * MODULES.html.sh (func_all_modules): Add wait-process.
64191
64192 2003-10-20  Bruno Haible  <bruno@clisp.org>
64193
64194         * m4/wait-process.m4: New file.
64195
64196 2003-10-20  Bruno Haible  <bruno@clisp.org>
64197
64198         * lib/wait-process.h: New file, from GNU gettext.
64199         * lib/wait-process.c: New file, from GNU gettext.
64200
64201 2003-10-19  Jim Meyering  <jim@meyering.net>
64202
64203         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64204         HPUX 10.20.
64205
64206 2003-10-18  Karl Berry  <karl@gnu.org>
64207
64208         * config/config.guess: update from config.
64209
64210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64211
64212         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64213         (getgroups): First arg is int, not size_t.
64214         Don't let 'free' mangle errno.
64215
64216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64217
64218         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64219
64220 2003-10-16  Karl Berry  <karl@gnu.org>
64221
64222         * config/config.{guess,sub}: update from config.
64223
64224 2003-10-16  Jim Meyering  <jim@meyering.net>
64225
64226         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64227         memcpy.
64228
64229 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64230
64231         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64232         (SIZE_MAX): Remove.
64233         (new_exclude, add_exclude_file): Initial size no longer needs to
64234         be a power of 2.
64235         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64236         our own address arithmetic overflow checking.
64237
64238         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64239         (fnmatch): Do not alloca more than 2000 wide characters;
64240         instead, use malloc for large buffers.
64241         Check for address arithmetic overflow, and return -1
64242         with errno set to ENOMEM in that case.
64243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64244         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64245         instead, return -1.  Check for address arithmetic overflow.
64246
64247 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64248
64249         Handle invalid suffixes and overflow independently, so that
64250         callers can treat them independently as needed.  Fix some bugs in
64251         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64252         suffix for a human-readable blocksize.  The major caller-visible
64253         change is the addition of a new
64254         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64255         that both overflow and suffix chars were found.
64256
64257         * lib/human.c (humblock): Don't check separately for invalid suffix
64258         char; that is xstrtoumax's job (now that its bug is fixed).
64259         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64260         INTMAX_MAX]: New macros.
64261         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64262         TYPE_MAXIMUM): New macros.
64263         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64264         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64265         if overflow occurs, as it's what __strtol does and it's more useful
64266         in practice.
64267         (__xstrtol): If __strtol reports some error other than ERANGE,
64268         reflect it to the caller as LONGINT_INVALID.  If it reports
64269         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64270         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64271         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64272         value.
64273         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64274         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64275         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64276         [defined UINTMAX_MAX]: New macros.
64277
64278 2003-10-14  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64281
64282 2003-10-14  Bruno Haible  <bruno@clisp.org>
64283
64284         * m4/sig_atomic_t: New file, from GNU gettext.
64285         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64286
64287 2003-10-14  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64290         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64291         Also use volatile where needed.
64292
64293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64294
64295         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64296         Change maintainer from Bruno Haible to 'all'.
64297
64298 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64299
64300         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64301
64302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64303
64304         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64305         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64306         and define in terms of the other primitives.
64307         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64308         (SIZE_MAX): Define if not already defined.
64309         (array_size_overflow): New function.
64310         (xalloc_die): Abort instead of exiting if 'error' returns.
64311         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64312         (xmalloc, xrealloc): Use them.
64313         (xcalloc): Check for address arithmetic overflow.
64314         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64315         a bit faster than strcpy.
64316
64317 2003-10-10  Simon Josefsson  <jas@extundo.com>
64318
64319         * modules/argp (Depends-on): Add restrict and strcase.
64320
64321 2003-10-10  Simon Josefsson  <jas@extundo.com>
64322
64323         * m4/argp.m4: Add AC_C_INLINE.
64324
64325 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64326
64327         Merge getpass from libc, plus a few fixes.
64328
64329         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64330         Include <stdbool.h>.
64331         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64332         __fsetlocking to empty.
64333         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64334         do include <bits/libc-lock.h>.
64335         Do not include <fcntl.h>; not needed.
64336         [_LIBC]: Include <wchar.h>.
64337         (NOTCANCEL_MODE): New macro.
64338         (flockfile, funlockfile) [_LIBC]: New macros.
64339         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64340         [!_LIBC]: New macros.
64341         (call_fclose): New function.
64342         (getpass): Use it.  Save tty stream separately; this simplifies the
64343         code and makes it more reliable if stdin happens to equal stdout.
64344         Invoke __fsetlocking on tty.
64345         Handle thread cancellation if needed.
64346         Namespace cleanup (use __tcgetattr, __getline).
64347         Use bool for Booleans.
64348         [USE_IN_LIBIO]: Handle wide streams.
64349         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64350         stream might go where.
64351
64352         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64353         doesn't have to include <stdio.h> before us.
64354         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64355         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64356         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64357         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64358         if not declared, so that we can use getpass.c code from libc without
64359         rewriting it.
64360         (flockfile, ftrylockfile, funlockfile): New macros.
64361
64362 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64363
64364         * modules/getpass: Depend on stdbool.
64365
64366 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64367
64368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64369
64370 2003-10-07  Karl Berry  <karl@gnu.org>
64371
64372         * config/config.{guess,sub}: update from config.
64373
64374 2003-10-06  Jim Meyering  <jim@meyering.net>
64375             Bruno Haible  <bruno@clisp.org>
64376
64377         This lets translators provide better translations for the
64378         "Written by ..." part of --version output.
64379         * lib/version-etc.h: Include stdarg.h.
64380         (version_etc_copyright): Declare as readonly.
64381         (version_etc): Make this function variadic with a NULL-terminated list
64382         of author name strings.
64383         (version_etc_va): New declaration.
64384         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64385         (version_etc_copyright): Declare as readonly.
64386         (version_etc_va): New function. Provide a different translatable string
64387         for each possible number of authors < 10. Abbreviate when there are 10
64388         authors or more.
64389         (version_etc): Make this function variadic. Call version_etc_va.
64390         Suggestion from Gary V. Vaughan.
64391
64392         * lib/long-options.h (parse_long_options): Change prototype: the
64393         authors string is moved to the end and becomes variadic.
64394         * lib/long-options.c: Include stdarg.h.
64395         (parse_long_options): Make this function variadic, too.
64396         Call version_etc_va, not version_etc.
64397
64398 2003-10-06  Bruno Haible  <bruno@clisp.org>
64399
64400         * modules/version-etc-2: Remove file.
64401         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64402
64403 2003-10-06  Bruno Haible  <bruno@clisp.org>
64404
64405         * modules/fatal-signal: New file.
64406         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64407
64408 2003-10-06  Bruno Haible  <bruno@clisp.org>
64409
64410         * m4/fatal-signal.m4: New file.
64411         * m4/signalblocking.m4: New file, from GNU gettext.
64412
64413 2003-10-06  Bruno Haible  <bruno@clisp.org>
64414
64415         * lib/version-etc-2.h: Remove file.
64416         * lib/version-etc-2.c: Remove file.
64417
64418 2003-10-06  Bruno Haible  <bruno@clisp.org>
64419
64420         * lib/fatal-signal.h: New file, from GNU gettext.
64421         * lib/fatal-signal.c: New file, from GNU gettext.
64422
64423 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64424
64425         * README: Rework advice for preventing empty .o files.
64426         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64427         not <sys/types.h>.
64428
64429 2003-10-04  Karl Berry  <karl@gnu.org>
64430
64431         * lib/argp*: update from libc.
64432
64433 2003-10-04  Karl Berry  <karl@gnu.org>
64434
64435         * config/config.{guess,sub}: update from config.
64436
64437 2003-10-02  Bruno Haible  <bruno@clisp.org>
64438
64439         * modules/lchown (Include): Add lchown.h.
64440         * modules/time_r (Include): Use "..." syntax.
64441         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64442
64443 2003-10-01  Simon Josefsson  <jas@extundo.com>
64444
64445         * MODULES.html.sh (func_all_modules): Move gethostname from section
64446         'based on' to section 'lacking' POSIX:2001.
64447
64448 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64449
64450         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64451         to output mode on the same stream.
64452
64453 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64454
64455         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64456         Fix arg typo in previous patch.
64457
64458 2003-09-28  Jim Meyering  <jim@meyering.net>
64459
64460         * lib/error.c: Correct cpp indentation.
64461
64462 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64463
64464         * modules/free: New file.
64465
64466 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64467
64468         * m4/free.m4: New file.
64469
64470 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64471
64472         * lib/minmax.h (MIN, MAX)
64473         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64474         Omit the special code that used __typeof__, since we worry that
64475         it could be more trouble than it's worth.  See:
64476         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64477         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64478
64479         * lib/free.c: New file.
64480
64481 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64482
64483         Trivial fixes to Makefile.am parts of module listings.
64484         * modules/strstr: Append strstr.h to lib_SOURCES.
64485         * modules/strcase: Likewise, for strcase.h.
64486
64487 2003-09-27  Karl Berry  <karl@gnu.org>
64488
64489         * config/mkinstalldirs: update from automake.
64490
64491 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64492
64493         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64494         (error_tail): Do not loop, reallocating temporary buffer, since
64495         the output cannot contain more wide characters than the input
64496         contains bytes, the size must be big enough already.  This avoids
64497         one potential size overflow calculation.  Check for size overflow
64498         when calculating temporary buffer size.  Free temporary buffer
64499         when done, if it was allocated with malloc; this plugs a memory
64500         leak.  Remove casts from void * to pointers, that are no longer
64501         needed now that we're assuming C89 or better.
64502
64503         Merge error changes from glibc.
64504
64505         * lib/error.c, error.h: Update copyright notice header to match glibc.
64506         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64507         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64508         Disable cancellation while printing error.
64509         * lib/error.h: Prepend __ to parameter names.
64510
64511 2003-09-26  Jim Meyering  <jim@meyering.net>
64512
64513         * lib/error.c (error_tail): Move some declarations
64514         into inner scope where the local variables are used.
64515
64516 2003-09-26  Bruno Haible  <bruno@clisp.org>
64517
64518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64519         stpncpy().
64520         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64521
64522 2003-09-26  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64525         (stpncpy): Define as alias for gnu_stpncpy.
64526         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64527
64528 2003-09-25  Simon Josefsson  <jas@extundo.com>
64529
64530         * lib/xgetdomainname.h: New file.
64531         * lib/xgetdomainname.c: New file.
64532
64533 2003-09-25  Simon Josefsson  <jas@extundo.com>
64534             Bruno Haible  <bruno@clisp.org>
64535
64536         * modules/getdomainname: New file.
64537         * modules/xgetdomainname: New file.
64538         * MODULES.html.sh (func_all_modules): Add getdomainname,
64539         xgetdomainname.
64540
64541 2003-09-25  Simon Josefsson  <jas@extundo.com>
64542             Bruno Haible  <bruno@clisp.org>
64543
64544         * m4/getdomainname.m4: New file.
64545
64546 2003-09-25  Simon Josefsson  <jas@extundo.com>
64547             Bruno Haible  <bruno@clisp.org>
64548
64549         * lib/getdomainname.h: New file.
64550         * lib/getdomainname.c: New file.
64551
64552 2003-09-25  Karl Berry  <karl@gnu.org>
64553
64554         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64555
64556 2003-09-25  Karl Berry  <karl@gnu.org>
64557
64558         * config/install-sh: update from automake.
64559
64560 2003-09-25  Bruno Haible  <bruno@clisp.org>
64561
64562         * modules/version-etc-2: New file, from modules/version-etc with
64563         modifications.
64564         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64565
64566 2003-09-25  Bruno Haible  <bruno@clisp.org>
64567
64568         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64569         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64570
64571 2003-09-24  Simon Josefsson  <jas@extundo.com>
64572
64573         * modules/xgethostname: Add xgethostname.h.
64574
64575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64576
64577         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64578         the buffer associated with the argument.  Bug reported by
64579         Simon Josefsson.
64580
64581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64582
64583         * README: Document assumptions that 'int' is at least 32 bits
64584         wide, that integer arithmetic is 2's complement without overflow,
64585         that there are no holes in integer values, that adding sizes of
64586         two nonoverlapping objects can't overflow, and that all-bits-zero
64587         yields scalar zero.  Fix spelling and capitalization typos.
64588
64589 2003-09-19  Karl Berry  <karl@gnu.org>
64590
64591         * lib/argp.h: update from libc.
64592
64593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64594
64595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64596         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64597         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64598
64599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64600
64601         * gnulib-tool: Use "test -h", not "test -L", for portability
64602         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64603         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64604         (sed_extract_prog): Issue s commands one-by-one, rather than
64605         using \| in one s command.
64606
64607 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64608
64609         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64610         input error, instead of returning NULL the next time we are called
64611         (and therefore losing track of errno).
64612
64613 2003-09-16  Bruno Haible  <bruno@clisp.org>
64614
64615         * gnulib-tool (func_create_testdir): Warn about duplicated
64616         dependencies.
64617
64618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64619
64620         * modules/argmatch, modules/fatal, modules/obstack,
64621         modules/xalloc, modules/xgethostname: Sort dependencies by
64622         importance, not alphabetically.
64623
64624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64625
64626         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64627         fails, so that the caller gets the proper errno.
64628
64629         * lib/readutmp.c (read_utmp): Likewise.
64630         Check for fstat error.  Close stream and free storage
64631         when failing.
64632
64633 2003-09-14  Karl Berry  <karl@gnu.org>
64634
64635         * config/srclist.txt (strdup.c): disable for c89 changes.
64636
64637 2003-09-14  Jim Meyering  <jim@meyering.net>
64638
64639         * lib/getloadavg.c: Correct cpp indentation.
64640         * lib/strdup.c: Likewise.
64641         * lib/vasnprintf.c: Likewise.
64642
64643 2003-09-14  Bruno Haible  <bruno@clisp.org>
64644
64645         * modules/fwriteerror: New file.
64646         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64647
64648 2003-09-14  Bruno Haible  <bruno@clisp.org>
64649
64650         * lib/fwriteerror.h: New file.
64651         * lib/fwriteerror.c: New file.
64652
64653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64654
64655         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64656         modules/xgethostname, modules/xalloc: Depend on exit.
64657
64658 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64659
64660         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64661
64662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64663         and AC_MINIX, too, so that their extensions are available.
64664
64665         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64666         This macro has been superseded by gl_BACKUPFILE.
64667
64668         More patches to assume C89 or better.
64669
64670         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64671
64672         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64673         unconditionally.
64674         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64676         Include <string.h>, <stdlib.h> unconditionally.
64677         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64678         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64680         headers or for string.h.
64681         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64682         or strtoul.
64683
64684         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64685         headers.
64686         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64688         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64689         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64692         memcpy, memset.
64693         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64694         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64696         strtol.
64697         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64698         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64700         strtoul.
64701
64702 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64703
64704         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64705         * lib/obstack.c [!defined _LIBC]: Likewise.
64706         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64707         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64708         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64709
64710         More changes to assume C89 or better.
64711
64712         * lib/error.c (error_tail): Assume vprintf.
64713
64714         * lib/argmatch.c (getenv): Remove decl.
64715         * lib/progreloc.c (get_full_program_name): Define via prototype.
64716         * lib/setenv.c (clearenv): Likewise.
64717         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64718         needed.
64719         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64720         (malloc, memcpy): Remove decls.
64721         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64722         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64723         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64724         (memcpy): Remove macro.
64725         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64726         (__P): Remove.  All uses removed.
64727         (PTR): Remove.  All uses changed to void *.
64728         (CHAR_BIT, NULL): Remove.
64729         (spaces, zeros, memset_space, memset_zero)
64730         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64731         Remove.
64732         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64733         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64734         Define with prototype.
64735         Remove now-unnecessary prototype decl.
64736         (extra_args_spec): Assume ANSI C.  All uses changed.
64737         (extra_args_spec_iso): Remove.
64738         (my_strftime, emacs_strftimeu): Define via prototype.
64739         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64740         unconditionally.
64741         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64742         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64743         (strtoul, strtol): Remove decls.
64744         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64745         LONG_MAX): Remove.
64746         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64747         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64748         (LOCALE_PARAM_PROTO): New macro.
64749         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64750         (INTERNAL (strtol), strtol): Define with a prototype.
64751         (PARAMS): Remove.  All uses removed.
64752         * lib/tempname.c: Include <string.h> unconditionally.
64753         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64754         * lib/xgethostname.c (main): Define with a prototype.
64755         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64756         Include <stdlib.h> unconditionally.
64757         (calloc, malloc, realloc, free): Remove decls.
64758         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64759         Include <stdlib.h> unconditionally.  Sort include file names.
64760         (strtod): Remove.
64761         (xstrtod): Define with a prototype.
64762         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64763         (strtol, strtoul): Remove decls.
64764
64765 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64766
64767         More patches to assume C89 or better.
64768         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64769         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64770         string.h, memchr, STDC_HEADERS.
64771
64772 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64773
64774         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64775         Include <stdlib.h>, <string.h> unconditionally.
64776         Remove now-unnecessary cast to char *.
64777         * lib/strnlen.c: Include <string.h> unconditionally.
64778         * lib/yesno.c (yesno): Define with a prototype.
64779
64780 2003-09-11  Bruno Haible  <bruno@clisp.org>
64781
64782         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64783
64784 2003-09-10  Jim Meyering  <jim@meyering.net>
64785
64786         * lib/error.c: Correct indentation of cpp directives.
64787
64788 2003-09-10  Bruno Haible  <bruno@clisp.org>
64789
64790         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64791         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64793         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64794         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64795         <stdlib.h> and <string.h> checks.
64796         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64797         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64798
64799 2003-09-10  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/strcspn.c: Include <string.h> unconditionally.
64802         * lib/strpbrk.c: Include <string.h> unconditionally.
64803         * lib/strstr.c: Include <string.h> unconditionally.
64804         * lib/unicodeio.c: Include <string.h> unconditionally.
64805         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64806         * lib/unsetenv.c: Likewise.
64807         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64808         * lib/yesno.c: Include <stdlib.h> unconditionally.
64809         (rpmatch): Add prototype.
64810
64811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64812
64813         More patches to assume C89 or better.
64814         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64815         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64816         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64817         or for string.h.
64818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64819         stdlib.h.
64820         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64821         C headers.
64822         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64823         string.h.
64824         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64825         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64826         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64827         or for string.h.
64828         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64829         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64830         C headers.
64831         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64832         memcpy.
64833         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64834         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64835         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64836         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64837         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64838         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64839         string.h, free.
64840         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64841         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64842         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64843         C headers, or for string.h.
64844         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64845         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64846         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64847         headers, memory.h, stdlib.h, string.h, strings.h.
64848         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64849         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64850         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64851         strchr.
64852         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64853         headers, memory.h, string.h.
64854         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64855         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64856         free.
64857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64858         headers.
64859         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64860         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64861         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64862         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64863         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64864
64865 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64866
64867         More K&R removal.
64868
64869         * lib/acosl.c (main): Use a prototype.
64870         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64871         tanl.c: Likewise.
64872
64873         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64874
64875         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64876         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64877         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64878         with a prototype.
64879         * lib/getopt.c (const): Remove macro.
64880         Include <string.h> unconditionally.
64881         (my_index): Remove; all uses changed to strchr.
64882         (strlen): Remove decl.
64883         (exchange): Remove forward decl; no longer needed.
64884         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64885         Define with prototype.
64886         * lib/getopt1.c (const): Remove macro.
64887         (getopt_long, getopt_long_only, main): Define with prototype.
64888
64889         * lib/getugroups.c: Include <string.h> unconditionally.
64890
64891         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64892         (getusershell, setusershell, endusershell, readname, main):
64893         Define with prototypes.
64894
64895         * lib/group-member.c: Include group-member.h first.
64896         Include <stdlib.h> unconditionally.
64897
64898         * lib/hard-locale.c: Include hard-locale.h first.
64899         Include <stdlib.h>, <string.h> unconditionally.
64900
64901         * lib/hash.c (free, malloc): Remove decls.
64902         Include <stdlib.h> unconditionally.
64903
64904         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64905         (getenv): Do not declare.
64906
64907         * lib/idcache.c: Include <string.h> unconditionally.
64908
64909         * lib/long-options.c: Include long-options.h first, to test interface.
64910         Include <stdlib.h> unconditionally.
64911
64912         * lib/makepath.c: Include makepath.h first, to test interface.
64913         Include <stdlib.h> and <string.h> unconditionally.
64914
64915         * lib/linebuffer.c: Include <stdlib.h>.
64916         (free): Remove decl.
64917
64918         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64919         stddef.h. rpl_malloc returns void *, not char *.
64920         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64921         prototype.
64922
64923         * lib/md5.h: Include <limits.h> unconditionally.
64924         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64925         (__P): Remove; all uses removed.
64926         * lib/md5.c: Include "md5.h" first.
64927         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64928         md5_buffer, md5_process_bytes, md5_process_block):
64929         Define with prototypes.
64930         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64931         * lib/sha.c: Include "sha.h" first.
64932         Include <stdlib.h>, <string.h> unconditionally.
64933
64934         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64935         * lib/memcmp.c (__ptr_t): Likewise.
64936         * lib/memrchr.c (__ptr_t): Likewise.
64937         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64938         Include <string.h> unconditionally.
64939         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64940         * lib/memchr.c: Include <stdlib.h> unconditionally.
64941         * lib/memchr.c (LONG_MAX): Remove.
64942         * lib/memrchr.c (LONG_MAX): Likewise.
64943         * lib/memchr.c (__memchr): Define via a prototype.
64944         * lib/memrchr.c (__memrchr): Likewise.
64945         * lib/memcmp.c (__P): Remove, and remove all uses.
64946         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64947         Remove forward decls; no longer needed.
64948         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64949         Use types required by C89 in prototype.
64950
64951         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64952         * lib/savedir.c: Likewise.
64953         * lib/mkdir.c (free): Remove decl.
64954         * lib/rmdir.c (rmdir): Define with a prototype.
64955         * lib/savedir.c: Include savedir.h first, to test interface.
64956
64957         * lib/mktime.c (STDC_HEADERS): Remove.
64958         Include <stdlib.h>, <string.h> unconditionally.
64959
64960         * lib/modechange.c: Include <stdlib.h> unconditionally.
64961         (malloc): Remove decl.
64962
64963         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64964         (free): Remove decl.
64965
64966         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64967         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64968         (This type really should be intptr_t, but that's a C99ism.)
64969         (_obstack_memcpy): Remove: all uses changed to memcpy.
64970         Include <string.h> unconditionally.
64971         (struct obstack): Assume __STDC__ for types of members
64972         chunkfun, freefun, extra_arg.
64973         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64974         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64975         obstack_begin, obstack_specify_allocation,
64976         obstack_specify_allocation_with_arg, obstack_chunkfun,
64977         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64978         Remove unprototyped decls and the macros that use them.
64979         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64980         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64981         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64982         (defined __STDC__ && __STDC__)]:
64983         Remove nonprototyped code.
64984         Include <stdlib.h> unconditionally.
64985         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64986         _obstack_allocated_p, _obstack_free, obstack_free,
64987         _obstack_memory_used, print_and_abort):
64988         Define using prototypes.
64989         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64990         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64991         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64992         obstack_next_free, obstack_object_size, obstack_room) [0]:
64993         Remove unused, unprototyped code.
64994
64995         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64996
64997         * lib/physmem.c (physmem_total, physmem_available, main): Define
64998         with prototypes.
64999
65000         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65001         (main): Define with a prototype.
65002
65003         * lib/posixver.c (getenv): Remove decl.
65004
65005         * lib/putenv.c (malloc): Returns void *, not char *.
65006         Include <string.h> unconditionally.
65007         (strchr, memcpy, NULL): Do not define.
65008
65009         * lib/readtokens.c: Include readtokens.h first, to test interface.
65010         Include <stdlib.h>, <string.h> unconditionally.
65011         (init_tokenbuffer): Define with a prototype.
65012
65013         * lib/regex.c (PARAMS): Remove.  All uses removed.
65014         All uses of _RE_ARGS removed, too.
65015         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65016         unconditionally.
65017         (bzero): Assume memset exists.
65018         (memcmp, memcpy, NULL): Remove.
65019         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65020         char, or assignments to local vars of type signed char.
65021         (init_syntax_once, PREFIX(extract_number_and_incr),
65022         PREFIX(print_partial_compiled_pattern),
65023         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65024         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65025         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65026         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65027         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65028         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65029         wcs_compile_range, byte_compile_range, truncate_wchar,
65030         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65031         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65032         count_mbs_length, wcs_re_match_2_internal,
65033         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65034         PREFIX(alt_match_null_string_p),
65035         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65036         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65037         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65038         now-unnecessary declaration, if any.
65039         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65040         regcomp, regexec):
65041         Remove now-unnecessary casts among pointer types.
65042         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65043
65044         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65045         (free): Remove decl.
65046
65047         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65048
65049         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65050         (free): Remove decl.
65051
65052         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65053         * lib/xgetcwd.c: Likewise.
65054
65055         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65056         (free): Remove decl.
65057
65058         * lib/strchrnul.c (strchrnul): Define with a prototype.
65059         Fix bug: c_in was not converted to char before searching.
65060
65061         The following changes are not K&R related:
65062
65063         * lib/group-member.h: Include <sys/types.h>, so that this file is
65064         self-contained.
65065         * lib/makepath.h: Likewise.
65066
65067         * lib/getusershell.c (readname, default_index, line_size, readname):
65068         Use size_t, not int, for sizes.
65069         (readname): If the size overflows, report an error instead of
65070         looping forever.
65071
65072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65073
65074         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65075         libc.
65076
65077 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65078
65079         * README: New section: portability guidelines.
65080
65081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65082
65083         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65084         C89 spec.
65085
65086 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65087
65088         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65089
65090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65091
65092         Assume C89 or better; remove K&R cruft.
65093         A few of these changes were first proposed by Derek Robert Price
65094         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65095
65096         * lib/addext.c: Include <string.h> unconditionally.
65097         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65098         Don't declare getenv or malloc.
65099
65100         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65101         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65102         (NULL): Remove.
65103         (find_stack_direction, alloca): Use prototypes.
65104
65105         * lib/atexit.c (atexit): Define using a prototype.
65106
65107         * lib/basename.c, dirname.c, stripslash.c:
65108         Include <string.h> unconditionally.
65109
65110         * lib/bcopy.c: Include <stddef.h>.
65111         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65112
65113         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65114
65115         * lib/error.h (error, error_at_line, error_print_progname)
65116         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65117         * lib/error.c: Include error.h first, to check interface.
65118         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65119         (VA_START): Remove; all uses changeed to va_start.
65120         (exit, strerror): Remove decls.
65121         (error_print_progname): Prototype uncondionally.
65122         Don't include <errno.h>; no longer needed.
65123         (private_strerror): Remove.
65124         (error_tail): Always define.
65125         (error, error_at_line): Assume C89 or better; always use prototypes.
65126         * lib/fatal.c: Include "fatal.h" first, to test interface.
65127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65128         (VA_START): Remove; all uses changed to va_start.
65129         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65130         this case.
65131         (exit): Remove decl.
65132         (fatal): Prototype unconditionally.  Assume va_start works.
65133         Abort at end, to pacify gcc.
65134
65135         * lib/euidaccess.c (main): Define with a prototype.
65136
65137         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65138
65139         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65140
65141         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65142         prototypes.
65143         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65144         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65145         (getenv): Remove decl.
65146         (fnmatch): Define using a prototype.
65147         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65148         (FCT): Define using a prototype.
65149
65150         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65151
65152         * lib/gethostname.c: Include <stddef.h>.
65153         (gethostname): Define with prototype.  Length is size_t, not int.
65154
65155 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65156
65157         Assume C89 or better; remove K&R cruft.
65158         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65159         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65160         string.h, getenv, malloc.
65161         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65162         headers.
65163         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65164         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65165         do not check for strerror.
65166         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65167         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65168         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65169         do not check for doprnt or vprintf.
65170         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65171         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65172
65173 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65174
65175         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65176         getversion.c should have been removed then, but was accidentally
65177         preserved.
65178
65179         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65180         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65181
65182 2003-09-08  Karl Berry  <karl@gnu.org>
65183
65184         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65185                 config, forget about prep.
65186
65187         * config/depcomp, missing: update from automake.
65188
65189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65190
65191         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65193
65194 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65195
65196         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65197         copy_tm_result.  Bug reported by Simon Josefsson in
65198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65199
65200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65201
65202         * m4/time_r.m4: New file.
65203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65205         is. Check for timegm declaration.
65206         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65207         Do not check for gmtime_r.
65208         Replace mktime if __mktime_internal does not exist and if mktime
65209         hasn't been replaced already.
65210
65211 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65212
65213         * lib/time_r.c, lib/time_r.h: New files.
65214
65215         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65216         __localtime_r.
65217         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65218         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65219
65220         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65221         __gmtime_r.
65222         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65223         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65224         Include <time_r.h>.
65225
65226         * lib/timegm.c: Switch to glibc implementation, with the following
65227         changes:
65228         [defined HAVE_CONFIG_H]: Include <config.h>.
65229         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65230         (__mktime_internal) [!defined _LIBC]: New decl.
65231         (__gmtime_r) [!defined _LIBC]: New macro and function.
65232         (timegm): Use a prototype, since gnulib assumes C89.
65233         Do not bother declaring tmp to be const, as it's not really usefu.
65234         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65235         (timegm): Declare only if HAVE_DECL_TIMEGM.
65236
65237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65238
65239         * MODULES.html.sh (func_all_modules): Add time_r.
65240         * modules/time_r: New file.
65241         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65242         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65243
65244 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65245
65246         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65247         Bug reported by Lute Kamstra in
65248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65249
65250         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65251         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65252         course with correspondingly smaller numbers for tomorrow and
65253         yesterday.  From Tadayoshi Funaba.  Originally installed into
65254         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65255         coreutils merge?).
65256
65257 2003-08-31  Simon Josefsson  <jas@extundo.com>
65258
65259         * modules/timegm: New file.
65260         * MODULES.html.sh (func_all_modules): Add timegm.
65261
65262 2003-08-31  Simon Josefsson  <jas@extundo.com>
65263
65264         * m4/timegm.m4: New file.
65265
65266 2003-08-31  Simon Josefsson  <jas@extundo.com>
65267
65268         * lib/timegm.h: New file.
65269         * lib/timegm.c: New file.  Based on
65270         wget-1.8.2/src/http.c:mktime_from_utc.
65271
65272 2003-08-31  Karl Berry  <karl@gnu.org>
65273
65274         * lib/argp.h: update from libc.
65275
65276 2003-08-28  Bruno Haible  <bruno@clisp.org>
65277
65278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65279         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65280         followed by '#define fnmatch fnmatch_posix' gives an error.
65281
65282 2003-08-28  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65285         warning on QNX, which defines O_BINARY to 000000.
65286
65287 2003-08-27  Jim Meyering  <jim@meyering.net>
65288
65289         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65290         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65291         would fail after 32.  Reported by Danny Levinson.  Details here:
65292         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65293
65294 2003-08-24  Bruno Haible  <bruno@clisp.org>
65295
65296         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65297         MSVC7 <stdio.h> is included later.
65298
65299 2003-08-22  Simon Josefsson  <jas@extundo.com>
65300
65301         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65302
65303 2003-08-20  Karl Berry  <karl@gnu.org>
65304
65305         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65306
65307 2003-08-20  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/progname: New file.
65310         * MODULES.html.sh (func_all_modules): Add progname.
65311
65312 2003-08-20  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/progname.h: New file, from GNU gettext.
65315         * lib/progname.c: New file, from GNU gettext.
65316         * lib/progreloc.c: New file, from GNU gettext.
65317
65318 2003-08-19  Jim Meyering  <jim@meyering.net>
65319
65320         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65321         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65322
65323 2003-08-19  Bruno Haible  <bruno@clisp.org>
65324
65325         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65326         more.
65327
65328 2003-08-19  Bruno Haible  <bruno@clisp.org>
65329
65330         * lib/xstrdup.c: Assume <string.h> exists.
65331
65332 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65333
65334         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65335         in makefile rules.
65336
65337 2003-08-18  Jim Meyering  <jim@meyering.net>
65338
65339         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65340         * m4/lib-ld.m4: Likewise.
65341
65342 2003-08-18  Jim Meyering  <jim@meyering.net>
65343
65344         * lib/setenv.h: Indent nested cpp directive.
65345         * lib/vasnprintf.c: Remove trailing blanks.
65346
65347 2003-08-17  Simon Josefsson  <jas@extundo.com>
65348
65349         * modules/xstrndup: New file.
65350         * MODULES.html.sh (func_all_modules): Add xstrndup.
65351
65352 2003-08-17  Simon Josefsson  <jas@extundo.com>
65353
65354         * modules/argp: Fix autoconf macro name. Add more dependencies.
65355
65356 2003-08-17  Simon Josefsson  <jas@extundo.com>
65357
65358         * m4/xstrndup.m4: New file.
65359
65360 2003-08-17  Simon Josefsson  <jas@extundo.com>
65361
65362         * m4/argp.m4: New file.
65363
65364 2003-08-17  Simon Josefsson  <jas@extundo.com>
65365             Bruno Haible  <bruno@clisp.org>
65366
65367         * lib/xstrndup.h: New file.
65368         * lib/xstrndup.c: New file.
65369
65370 2003-08-17  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/strndup (Files, Include): Add lib/strndup.h.
65373
65374 2003-08-17  Bruno Haible  <bruno@clisp.org>
65375
65376         * modules/euidaccess (Files): Add lib/euidaccess.h.
65377
65378 2003-08-17  Bruno Haible  <bruno@clisp.org>
65379
65380         * lib/strndup.h: New file.
65381
65382 2003-08-17  Bruno Haible  <bruno@clisp.org>
65383
65384         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65385         like AC_GNU_SOURCE.
65386         * modules/extensions (configure.ac): Comment out the invocation of
65387         gl_USE_SYSTEM_EXTENSIONS.
65388
65389 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65390
65391         Merges from coreutils, etc.
65392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65393         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65394         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65395         fixing a typo.
65396         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65397         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65398
65399 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65400
65401         Document merge from coreutils.
65402         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65403         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65404         * modules/utime: Add m4/utimes-null.m4.
65405
65406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65407
65408         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65409         space, undoing this 2003-08-12 change:
65410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65411
65412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65413
65414         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65415         strtoul.c from libc, undoing this 2003-08-12 change:
65416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65417
65418 2003-08-16  Jim Meyering  <jim@meyering.net>
65419
65420         Merges from coreutils.
65421         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65422         prefix.  Adjust cache variables similarly.  Create 500 rather than
65423         just 300 files, to exercise bug on Darwin6.5, too.
65424         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65425         $missing_dir.
65426         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65427         AM_SYS_POSIX_TERMIOS.
65428         Reported by mkc@mathdogs.com.
65429         Also change use of $am_cv_sys_posix_termios
65430         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65431         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65432         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65433         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65434         in /proc/mounts until it finds one with matching device number.  This
65435         is unnecessary when the FILE argument *is* a mount point.  No stat call
65436         is necessary in that case.  So, disable the statvfs-testing code on
65437         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65438         as RedHat bug# 84846.
65439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65440         to 1MB, so as not to render systems with no stack size limit (e.g.,
65441         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65442         Include <unistd.h>.  On some systems,
65443         it is required for the definition of _SC_PAGESIZE.
65444
65445 2003-08-16  Jim Meyering  <jim@meyering.net>
65446
65447         Merge from coreutils.
65448         * lib/xstrtoimax.c: #else #if -> #elif.
65449         * lib/xstrtoumax.c: Likewise.
65450
65451 2003-08-16  Jim Meyering  <jim@meyering.net>
65452
65453         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65454         * m4/utimes.m4: Removed.
65455         * m4/utimes-null.m4: Renamed from utimes.m4.
65456
65457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65458         to 1MB, so as not to render systems with no stack size limit (e.g.,
65459         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65460         Include <unistd.h>.  On some systems,
65461         it is required for the definition of _SC_PAGESIZE.
65462
65463 2003-08-16  Jim Meyering  <jim@meyering.net>
65464         and Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         Merges from coreutils, etc.
65467
65468         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65469         using the latest version from cvs.  This avoids problems with #line
65470         directives using a vendor (Sun) compiler.
65471         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65472         Don't set GETGROUPS_LIB here; now it's
65473         done via getgroups.m4's wrapper function.
65474         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65475         rather than just in sh-util/configure.in, so that the
65476         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65477         same.
65478         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65479         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65480         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65481         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65482         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65483         Remove code that is now done by the newly-required macros.
65484         Append $(EXEEXT) to DF_PROG.
65485         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65486         Do not invoke or require the following here,
65487         since prereq.m4 or some gnulib .m4 now does this for us:
65488         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65489         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65490         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65491         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65492         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65493         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65494         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65495         AC_FUNC_OBSTACK.
65496         Do not replace the following functions, as this is now the job
65497         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65498         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65499         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65500         atexit getpass, strdup, getpagesize.
65501         Replace 'raise'.
65502         Do not check for the following functions, as this is now the job
65503         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65504         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65505         setregid.
65506         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65507         Check for sys/sysctl.h.
65508         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65509         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65510         of checking for ssize_t ourselves.
65511
65512         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65513         Require every macro that gnulib/modules/* suggests for us.
65514         (jm_PREREQ_ADDEXT): New macro.
65515         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65516         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65517
65518         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65519         (gl_PHYSMEM): Use it.
65520         Also check for `table' function.
65521         Check for new headers and functions.
65522         Add check for sys/sysmp.h.
65523         With suggestions from Kaveh Ghazi.
65524         Ignore headers that are present but cannot be compiled.  This
65525         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65526         C 5.4.
65527
65528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65529
65530         Document merge from coreutils.
65531         * modules/userspec: Depend on posixver.
65532         * modules/strftime: Depend on tzset.
65533
65534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65535
65536         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65537         rather than tab, after '#' in shell-script copyright notices.
65538         Suggested by Bruno Haible.
65539
65540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65541
65542         * config/srclist-update: Use three spaces, rather than tab, after '#'
65543         in shell-script copyright notices.  Suggested by Bruno Haible.
65544         Remove unnecessary parenthesization in regular expression.
65545
65546 2003-08-15  Jim Meyering  <jim@meyering.net>
65547
65548         Merge from coreutils.
65549         * lib/xgethostname.c: Include <stdlib.h>.
65550         (xghostname): Don't exit for anything other than memory-related
65551         failure; just return NULL.
65552         * lib/userspec.c: Include "posixver.h".
65553         (parse_user_spec): Accept `.' as a separator only
65554         in pre-POSIX-200112 mode.
65555         * lib/strtoimax.c: Use #elif rather than #else #if.
65556         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65557         Remove function, now that we can rely on a working tzset function.
65558         [!_LIBC]: Ensure that the required autoconf test has been run.
65559         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65560         Use underlying_strftime for %r.
65561         * lib/sha.c: Merge in some clean-up and optimization changes from
65562         glibc.
65563         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65564         Ensure that it is a multiple of 64.
65565         Rearrange loop exit tests so as to avoid performing an
65566         additional fread after encountering an error or EOF.
65567         * lib/realloc.c: Update copyright date.
65568
65569 2003-08-15  Jim Meyering  <jim@meyering.net>
65570         and Paul Eggert  <eggert@twinsun.com>
65571
65572         Merge from coreutils.
65573         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65574         member but strut utmpx does not.  Needed for AIX 4.3.3.
65575         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65576
65577 2003-08-15  Jim Meyering  <jim@meyering.net>
65578         and Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         Merges from coreutils, etc.
65581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65582         Require gl_FUNC_TZSET_CLOBBER.
65583         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65584         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65585         members.
65586
65587 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65588
65589         Help the merge from coreutils.
65590         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65592         * m4/tzset.m4: Use it too.
65593
65594 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65595
65596         * modules/tzset: New file.
65597
65598 2003-08-14  Jim Meyering  <jim@meyering.net>
65599
65600         Merges from coreutils.
65601         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65602         variable names, rather than @FNMATCH_H@.
65603         * modules/alloca: Likewise for $(ALLOCA_H).
65604
65605         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65606         the three copies of the literal target, `fnmatch.h'.
65607         * modules/alloca (alloca.h): Likewise.
65608
65609 2003-08-14  Jim Meyering  <jim@meyering.net>
65610
65611         Merge from coreutils.
65612         * m4/tzset.m4: New file.
65613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65614         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65615         otherwise, AIX 5.1 systems would end up using the latter.
65616         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65617         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65618         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65619         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65620
65621 2003-08-14  Jim Meyering  <jim@meyering.net>
65622
65623         Merge from coreutils.
65624         * lib/obstack.h: Whitespace changes.
65625         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65626         and xcalloc return values.
65627         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65628         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65629         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65630         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65631         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65632         error from mntctl.
65633         Use mntctl's return value to drive the entry-processing loop, since
65634         we can't rely on the value of the vmt_length member in the last
65635         entry.  On some systems doing so could result in exhausting
65636         virtual memory.  Based in part on a patch from Mike Jetzer.
65637
65638 2003-08-14  Jim Meyering  <jim@meyering.net>
65639         and Paul Eggert  <eggert@twinsun.com>
65640
65641         Merges from coreutils, plus other fixes.
65642         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65643         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65644         for credits and details.  Thanks to Kaveh Ghazi for helping
65645         to keep these files in sync.
65646         (ARRAY_SIZE): Define it.
65647         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65648         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65649         (memcasecmp): Don't assume size_t fits in unsigned int.
65650         Remove casts and duplicate code.
65651         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65652         (memcpy): Remove definition.
65653         Merge in some clean-up and optimization changes from glibc.
65654         [BLOCKSIZE]: Move definition to top of file.
65655         Ensure that it is a multiple of 64.
65656         Rearrange loop exit tests so as to avoid performing an
65657         additional fread after encountering an error or EOF.
65658         * lib/md5.h (md5_uintptr): Define.
65659         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65660         return to the initial working directory.  Preserve errno
65661         for caller.
65662         * lib/idcache.c: Include "xalloc.h".
65663         (xmalloc, xrealloc): Remove decls.
65664         (getuser): Remove casts no longer required in C89.
65665         * lib/human.c: Include stdio.h, for sprintf.
65666         * lib/group-member.c: Include "xalloc.h".
65667         (xmalloc, xrealloc): Remove decls.
65668         (get_group_info): Remove casts no longer required in C89.
65669         * lib/getusershell.c (readname): Remove casts no longer required in
65670         C89.
65671         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65672         * lib/getline.c: Whitespace fix, from coreutils.
65673
65674 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65675
65676         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65677         Check for isascii.
65678
65679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65681         Undo previous (whitespace-only) change.
65682
65683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65684
65685         * lib/exclude.c: Include <ctype.h>
65686         (IN_CTYPE_DOMAIN): New macro.
65687         (is_space): New fn.
65688         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65689         and empty lines.
65690
65691         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65692         Undo previous (whitespace-only) change.
65693
65694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65695
65696         * config/srclist-update: Change update back to the old behavior,
65697         leaving whitespace alone.  Use one 'sed' command rather than a
65698         pipeline.
65699         (fixlicense): Now a variable, not a function.
65700         (remove_trailing_blanks): Remove.
65701         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65702         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65703         Undo previous (whitespace-only) change.
65704
65705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65706
65707         Merge from coreutils.
65708         * modules/euidaccess: Add lib_SOURCES, include for new
65709         file euidaccess.h
65710
65711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65712
65713         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65714         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65715         Normalize leading white space and remove trailing white space.
65716
65717         Merge from coreutils
65718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65719
65720         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65721         0.12.1.  These files are now being upgraded automatically by
65722         ../config/srclist-update.
65723
65724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65725
65726         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65727         Normalize leading white space and remove trailing white space.
65728         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65729         notice, as per ../config/srclist-update.
65730
65731         Merge from coreutils.
65732         * lib/euidaccess.h: New file.
65733         * lib/euidaccess.c: Include it.
65734         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65735         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65736         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65737
65738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65739
65740         * config/srclist-update: Add copyright notice.
65741         (remove_id_lines, remove_trailing_blanks): New constants.
65742         (fixfile): Use them to normalize spacing a bit in copied files.
65743         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65744         Normalize leading white space and remove trailing white space.
65745
65746         * config/texinfo.tex: Sync with texinfo.
65747
65748         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65749         strtoul.c from libc, to merge coreutils whitespace changes.
65750
65751         * config/srclist.txt: Get the following m4 files from gettext:
65752         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65753         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65754         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65755         wint_t.m4.
65756
65757 2003-08-12  Karl Berry  <karl@gnu.org>
65758
65759         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65760         been made.
65761
65762 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65763
65764         * modules/gnu-source, m4/gnu-source.m4:
65765         Remove; we're assuming Autoconf 2.54 or later now.
65766         Suggested by Bruno Haible.
65767         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65768
65769 2003-08-11  Bruno Haible  <bruno@clisp.org>
65770
65771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65772
65773 2003-08-11  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65776         (vasnprintf): Use it instead of wcslen.
65777
65778 2003-08-11  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65781         value to ensure that _Bool promotes to int. Use #define for _Bool when
65782         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65783
65784 2003-08-10  Karl Berry  <karl@gnu.org>
65785
65786         * lib/regex.h: update from libc (whitespace fix).
65787
65788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65789
65790         Merge some files from coreutils.  These changes were
65791         originally made by Jim Meyering.
65792         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65793         many older Unixes require this.
65794         * lib/alloca.c (alloca): Remove cast to argument of free;
65795         no longer needed in C89.
65796         * lib/alloca_.h, regex.h: Fix white space to match
65797         what GNU indent does.
65798
65799 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65800
65801         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65802         apparently Emacs's Unicode mode got confused before my 2003-08-05
65803         checkin.
65804
65805 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65806
65807         * m4/extensions.m4: New file.
65808         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65809         Require gl_USE_SYSTEM_EXTENSIONS.
65810         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65811         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65812
65813 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65814
65815         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65816         * modules/extensions, modules/gnu-source: New files.
65817         * modules/timespec, modules/unlocked-io: Depend on extensions.
65818
65819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65820
65821         * modules/restrict: New file.
65822         * MODULES.html.sh (func_all_modules): Add restrict.
65823         * modules/regex: Depend on restrict.
65824
65825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65826
65827         * m4/restrict.m4: New file.
65828         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65829
65830 2003-08-07  Bruno Haible  <bruno@clisp.org>
65831
65832         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65833         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65834
65835 2003-08-07  Bruno Haible  <bruno@clisp.org>
65836
65837         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65838         makes the module 'getndelim2' compatible with the module 'getline'.
65839
65840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65841
65842         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65843         byte with "\201" to avoid glitches when editing that source file
65844         with multi-gnome-terminal.
65845
65846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65847
65848         * lib/bumpalloc.h: Remove.
65849
65850 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65851
65852         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65853         * modules/bumpalloc: Remove.
65854
65855 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65856
65857         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65858         GNU coding style.
65859
65860         Merge from coreutils.
65861         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65862         1. From glibc.
65863         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65864         from Karl Berry, implemented by Jim Meyering.
65865         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65866         from Dmitry V. Levin.
65867         Remove anachronistic cast of xrealloc.
65868         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65869         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65870         type. Otherwise, it wouldn't compile with at least /bin/cc on
65871         ymp-cray-unicos9.0.2.X.
65872         Combine two mostly-identical uses of alloca into one.
65873         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65874
65875 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65876
65877         [From Emacs.]
65878
65879         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65880         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65881         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65882         obsolete NLIST_NAME_UNION.
65883         [__GNU__]: Undef BSD and FSCALE.
65884         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65885
65886 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65887
65888         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65889         an enum type, so that it's guaranteed to promote to int.  See:
65890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65891
65892 2003-08-03  Karl Berry  <karl@gnu.org>
65893
65894         * config/depcomp: update from automake.
65895
65896 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65897
65898         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65899         (strerror): Don't assume that a printable int fits in 14 bytes.
65900
65901 2003-07-31  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/getpass-gnu: New file.
65904         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65905
65906 2003-07-31  Bruno Haible  <bruno@clisp.org>
65907
65908         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65909
65910 2003-07-24  Karl Berry  <karl@gnu.org>
65911
65912         * config/missing: update from automake.
65913
65914 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65915             Bruno Haible  <bruno@clisp.org>
65916
65917         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65918         * lib/getline.c (getline, getdelim): Likewise.
65919         Remove _GNU_SOURCE define; now it's defined in config.h through
65920         m4/getline.m4.
65921
65922 2003-07-23  Karl Berry  <karl@gnu.org>
65923
65924         * config/config.sub: update from prep.
65925
65926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65927
65928         * modules/xalloc (Depends-on): Add exitfail.
65929         * modules/xmemcoll: Likewise.
65930
65931 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65932
65933         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65934         over-parenthesization in macros.
65935
65936         Sync with coreutils.
65937
65938         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65939         required by C99.
65940
65941         Use `exit_failure' for xalloc and xmemcoll instead of their own
65942         private exit-failure variables.
65943         * lib/xalloc.h (xalloc_exit_failure): Remove.
65944         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65945         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65946         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65947         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65948         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65949
65950 2003-07-20  Jim Meyering  <jim@meyering.net>
65951
65952         * modules/closeout (Depends-on): Add exitfail.
65953         Suggestion from Bruno Haible.
65954
65955 2003-07-19  Karl Berry  <karl@gnu.org>
65956
65957         * config/config.sub: update from prep.
65958
65959 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65960
65961         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65962         Remove.
65963         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65964         to test that it can stand by itself.  Include "exitfail.h".
65965         Clients should set exit_failure instead.
65966         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65967
65968 2003-07-18  Bruno Haible  <bruno@clisp.org>
65969
65970         * modules/getndelim2: New file.
65971         * modules/getline: Share files with module getndelim2.
65972         * modules/getnline: Depend on getndelim2 instead of sharing files with
65973         it. Add getnline.c to lib_SOURCES.
65974         * MODULES.html.sh (func_all_modules): Add getndelim2.
65975
65976 2003-07-18  Bruno Haible  <bruno@clisp.org>
65977
65978         * m4/getndelim2.m4: New file.
65979         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65980         invoke gl_PREREQ_GETNDELIM2.
65981         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65982         gl_PREREQ_GETNDELIM2.
65983         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65984         gl_GETNDELIM2.
65985
65986 2003-07-18  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/getndelim2.h: New file.
65989         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65990         getndelim2.h.
65991         (getndelim2): Make non-static. Change return type to ssize_t.
65992         * lib/getline.h: Change argument names.
65993         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65994         * lib/getnline.c: Include getndelim2.h.
65995
65996 2003-07-18  Andreas Schwab  <schwab@suse.de>
65997
65998         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65999
66000 2003-07-17  Karl Berry  <karl@gnu.org>
66001
66002         * config/config.sub: update from prep.
66003
66004 2003-07-17  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/getnline: New file.
66007         * modules/getline: Add lib/getndelim2.c to source file list.
66008         * MODULES.html.sh (func_all_modules): Add getnline.
66009
66010 2003-07-17  Bruno Haible  <bruno@clisp.org>
66011
66012         * m4/getnline.m4: New file.
66013
66014 2003-07-17  Bruno Haible  <bruno@clisp.org>
66015
66016         * m4/Makefile.am.in: Remove file.
66017         * m4/Makefile.am: Remove file.
66018         * m4/Makefile.in: Remove file.
66019
66020 2003-07-17  Bruno Haible  <bruno@clisp.org>
66021
66022         * lib/getnline.h: New file.
66023         * lib/getnline.c: New file.
66024         * lib/getndelim2.c: New file, extracted from getline.c.
66025         (getndelim2): Renamed from getdelim2, with added nmax argument.
66026         * lib/getline.c: Include getndelim2.c.
66027         (getdelim2): Moved out to getndelim2.c.
66028         (getline, getdelim): Update.
66029
66030 2003-07-17  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/Makefile.am: Remove file.
66033         * lib/Makefile.in: Remove file.
66034
66035 2003-07-17  Bruno Haible  <bruno@clisp.org>
66036
66037         * configure.in: Remove file.
66038         * Makefile.in: Remove file.
66039
66040 2003-07-17  Bruno Haible  <bruno@clisp.org>
66041
66042         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66043
66044 2003-07-16  Karl Berry  <karl@gnu.org>
66045
66046         * config/srclist-update: was running fixlicense twice, which caused
66047                 texinfo.tex to be nullified for some reason.  Simplify,
66048                 $gplsrc is no longer needed as far as I can see?
66049
66050 2003-07-16  Jim Meyering  <jim@meyering.net>
66051
66052         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66053
66054 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66055
66056         * config/srclist.txt: Get the following files from gettext-runtime/intl
66057         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66058         ref-del.sin.  From Bruno Haible.
66059         * config/srclist-update (fixfile): Change grep pattern again, since the
66060         previous fix didn't work (there was another trailing $).  Use
66061         '[$]' to escape the $s.
66062
66063 2003-07-15  Karl Berry  <karl@gnu.org>
66064
66065         * lib/vasnprintf.c: update from gettext.
66066
66067 2003-07-15  Karl Berry  <karl@gnu.org>
66068
66069         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66070         gets expanded when surrounded by '$'.
66071
66072 2003-07-15  Jim Meyering  <jim@meyering.net>
66073
66074         * modules/save-cwd: Don't depend on error.  From Derek Price.
66075
66076 2003-07-15  Jim Meyering  <jim@meyering.net>
66077
66078         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66079
66080 2003-07-14  Simon Josefsson  <jas@extundo.com>
66081
66082         * modules/mempcpy: New file.
66083         * MODULES.html.sh (func_all_modules): Add mempcpy.
66084
66085 2003-07-14  Simon Josefsson  <jas@extundo.com>
66086
66087         * m4/mempcpy.m4: New file.
66088
66089 2003-07-14  Simon Josefsson  <jas@extundo.com>
66090
66091         * lib/mempcpy.h: New file.
66092         * lib/mempcpy.c: New file.
66093
66094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66095
66096         * modules/getdate, modules/posixtm: Depend on mktime.
66097
66098 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66099
66100         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66101         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66102         unicodeio.c, unicodeio.h, unlocked-io.h:
66103         Switch from LGPL to GPL.
66104
66105 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66106
66107         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66108         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66109         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66110         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66111         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66112         updated automatically by ../config/srclist-update.  This changes
66113         their license from LPGL to GPL.
66114
66115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66116
66117         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66118         assumed to refer to the root of the most recent stable gettext version.
66119         * config/srclistvars.sh: Add defaults for eggert.
66120         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66121         Match "This program" as well as "The program".  This is needed
66122         for gettext.
66123
66124 2003-07-14  Jim Meyering  <jim@meyering.net>
66125
66126         Don't emit diagnostics.  Let callers do that.
66127         * lib/save-cwd.c: Don't include "error.h".
66128         (save_cwd): Don't call error.  Ensure that errno is valid
66129         when returning nonzero.
66130
66131         * lib/save-cwd.h (restore_cwd): Update prototype.
66132         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66133         Simplify.  Don't call error upon failure.  Let callers do that.
66134         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66135         when auditing is enabled.  But don't bother updating the #if.
66136
66137 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66138
66139         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66140         it breaks C++ compilation.
66141         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66142
66143 2003-07-10  Simon Josefsson  <jas@extundo.com>
66144
66145         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66146
66147 2003-07-10  Jim Meyering  <jim@meyering.net>
66148
66149         * m4/clock_time.m4: Remove trailing blank.
66150         * m4/intmax_t.m4: Likewise.
66151
66152 2003-07-10  Jim Meyering  <jim@meyering.net>
66153
66154         * lib/vasnprintf.c: Remove trailing blanks.
66155         Make cpp indentation consistent.
66156
66157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66158
66159         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66160         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66161         Switch from LGPL to GPL.
66162
66163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66164
66165         * config/srclist.txt: Sort sublists.  Add
66166         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66167         that differ from gnulib for one reason or another; we'd like this list
66168         to be smaller but for now let's document what we have.
66169
66170 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66171
66172         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66173         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66174         and sweeter "eval x=$x".
66175         * config/srclist.txt: Get lib/argp* from glibc.
66176
66177 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66178
66179         * lib/mktime.c: Fix some boundary cases and remove need for floating
66180         point.
66181
66182         Issue a compile-time diagnostic if time_t is floating point, or if
66183         two's complement arithmetic is not in effect, or if arithmetic
66184         right shift does not propagate the sign.  These assumptions were
66185         all in the original code but they weren't checked.
66186
66187         (TIME_T_MIDPOINT, verify): New macros.
66188         (__isleap): Remove; it has integer overflow problems.
66189         (leapyear): New function, without those problems.
66190         (ydhms_tm_diff): Remove; splitting into two parts.
66191         (ydhms_diff): New function, containing the arithmetic part of
66192         the old ydhms_tm_diff function.  Issue a compile-time
66193         diagnostic if we are not using C99 integer division.
66194         Avoid casts when possible.
66195         (guess_time_tm): New function, containing the checking part of
66196         the old ydhms_tm_diff function.  Return the new value, rather than
66197         the difference between it and the old.  Accept a new argument T
66198         so that *T specifies the old value.  Check for overflow in the result.
66199
66200         (__mktime_internal): Use a time_t offset, not a long int offset.
66201         This undoes the 2003-06-04 change, which is no longer needed now
66202         that we have better overflow checking.
66203         (localtime_offset): Likewise.
66204
66205         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66206         and long are 64-bit but int is only 32-bit.
66207         (ydhms_diff): Use long int to store year1 and yday1.
66208         Issue a compile-time diagnostic if long int is not wide enough.
66209
66210         (__mktime_internal): Use long int to store adjusted year and yday.
66211         Use plain C rather than preprocessor commands, if that doesn't
66212         affect efficiency.
66213         Check for overflow (and try to repair) after each probe
66214         rather than checking only at the very end.  This avoids some bugs
66215         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66216         does not equal GMT offset at maximum time).
66217         Use integer to check for overflow rather than floating point; this
66218         is more portable to non-IEEE hosts, and is a tad faster.
66219         When we detect that we are oscillating between two values,
66220         don't check whether tm_isdst has the requested value, since
66221         we already know the answer.  When tm_isdst has the wrong value,
66222         use a different heuristic to find the right one, based on the
66223         extreme values actually observed in practice in tz2003a,
66224         rather than the (overly optimistic) "previous 3 calendar quarters".
66225
66226         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66227         "T const" to accommodate glibc style.
66228         (check_result): Use less-confusing report format.  "long" -> "long int.
66229         (main): Likewise.
66230         Don't loop if the iteration overflows time_t.
66231         Allow a negative step in the iteration.
66232
66233 2003-07-06  Karl Berry  <karl@gnu.org>
66234
66235         * config/depcomp: update from automake.
66236         * config/config.sub: update from prep.
66237
66238 2003-07-03  Karl Berry  <karl@gnu.org>
66239
66240         * config/config.guess: update from prep.
66241
66242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66243
66244         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66245         xreadlink.c now includes it unconditionally.
66246
66247 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66248
66249         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66250         having it depend on HAVE_SYS_TYPES_H.
66251
66252 2003-07-01  Bruno Haible  <bruno@clisp.org>
66253
66254         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66255         <sys/types.h> should be sufficient.
66256         Reported by Paul Eggert.
66257
66258 2003-06-26  Karl Berry  <karl@gnu.org>
66259
66260         * config/depcomp: update from automake.
66261
66262 2003-06-26  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/human: Depend on module stdbool.
66265
66266 2003-06-25  Bruno Haible  <bruno@clisp.org>
66267
66268         * modules/readlink: New file.
66269         * modules/xreadlink: Depend on it.
66270         * MODULES.html.sh (func_all_modules): Add readlink.
66271
66272 2003-06-25  Bruno Haible  <bruno@clisp.org>
66273
66274         * m4/readlink.m4: New file.
66275
66276 2003-06-25  Bruno Haible  <bruno@clisp.org>
66277
66278         * lib/readlink.c: New file.
66279
66280 2003-06-22  Karl Berry  <karl@gnu.org>
66281
66282         * config/srclist.txt: update mkinstalldirs from automake.
66283         * config/mkinstalldirs: update.
66284
66285 2003-06-22  Bruno Haible  <bruno@clisp.org>
66286
66287         Portability to mingw32.
66288         * m4/ssize_t.m4: New file, from GNU gettext.
66289         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66290         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66291
66292 2003-06-22  Bruno Haible  <bruno@clisp.org>
66293
66294         * modules/safe-read: Add m4/ssize_t.m4.
66295         * modules/xreadlink: Add m4/ssize_t.m4.
66296
66297 2003-06-20  Bruno Haible  <bruno@clisp.org>
66298
66299         Assume C89, so PARAMS isn't needed.
66300         * lib/unicodeio.h (PARAMS): Remove.
66301         * lib/unicodeio.c: Don't use PARAMS.
66302
66303 2003-06-18  Karl Berry  <karl@gnu.org>
66304
66305         * config/config.{guess,sub}: update from prep.
66306
66307 2003-06-18  Jim Meyering  <jim@meyering.net>
66308
66309         Merge changes from coreutils.
66310         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66311         Remove explicit declarations of xmalloc and realloc.
66312         Include xalloc.h.
66313         (read_utmp): Remove anachronistic cast of xmalloc.
66314
66315 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66316
66317         Assume C89, so PARAMS isn't needed.
66318         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66319         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66320         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66321         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66322         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66323         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66324         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66325         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66326         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66327         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66328         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66329         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66330         no longer needed. Anyway, config.h should always be included before any
66331         other file.
66332
66333 2003-06-11  Simon Josefsson  <jas@extundo.com>
66334
66335         * modules/sysexits: New file.
66336         * MODULES.html.sh (func_all_modules): Add sysexits.
66337
66338 2003-06-11  Simon Josefsson  <jas@extundo.com>
66339
66340         * lib/sysexit_.h: New file.
66341
66342 2003-06-11  Derek Price  <derek@ximbiot.com>
66343
66344         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66345         necessary.
66346
66347 2003-06-11  Bruno Haible  <bruno@clisp.org>
66348
66349         * m4/sysexits.m4: New file.
66350
66351 2003-06-10  Simon Josefsson  <jas@extundo.com>
66352
66353         * lib/argp.h: New file, from glibc.
66354         * lib/argp-ba.c: New file, from glibc.
66355         * lib/argp-eexst.c: New file, from glibc.
66356         * lib/argp-fmtstream.c: New file, from glibc.
66357         * lib/argp-fmtstream.h: New file, from glibc.
66358         * lib/argp-fs-xinl.c: New file, from glibc.
66359         * lib/argp-help.c: New file, from glibc.
66360         * lib/argp-namefrob.h: New file, from glibc.
66361         * lib/argp-parse.c: New file, from glibc.
66362         * lib/argp-pv.c: New file, from glibc.
66363         * lib/argp-pvh.c: New file, from glibc.
66364         * lib/argp-xinl.c: New file, from glibc.
66365
66366 2003-06-10  Simon Josefsson  <jas@extundo.com>
66367
66368         * modules/strchrnul: New file.
66369
66370 2003-06-10  Simon Josefsson  <jas@extundo.com>
66371
66372         * modules/argp: New file.
66373
66374 2003-06-10  Simon Josefsson  <jas@extundo.com>
66375
66376         * m4/strchrnul.m4: New file.
66377
66378 2003-06-10  Simon Josefsson  <jas@extundo.com>
66379
66380         * lib/strchrnul.h: New file.
66381         * lib/strchrnul.c: New file.
66382
66383 2003-06-10  Bruno Haible  <bruno@clisp.org>
66384
66385         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66386
66387 2003-06-07  Karl Berry  <karl@gnu.org>
66388
66389         * config/config.{guess,sub}: update from prep.
66390
66391 2003-06-07  Jim Meyering  <jim@meyering.net>
66392
66393         * modules/strtod: Use $(...) notation, not @...@ for
66394         AC_REPLACE'd variables.
66395         * modules/localcharset: Likewise.
66396
66397 2003-06-07  Jim Meyering  <jim@meyering.net>
66398
66399         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66400         in place of my name in the copyright comment.
66401         Remove definition and uses of __P.
66402
66403         From coreutils.
66404         * lib/stat.c: Don't declare xmalloc explicitly.
66405         Instead, include "xalloc.h".
66406         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66407         xrealloc, and xcalloc return values.
66408         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66409         Improve comment.
66410         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66411
66412 2003-06-07  Bruno Haible  <bruno@clisp.org>
66413
66414         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66415         avoid AC_CONFIG_LINKS.
66416         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66417         fnmatch.h, to avoid AC_CONFIG_LINKS.
66418         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66419
66420 2003-06-07  Bruno Haible  <bruno@clisp.org>
66421
66422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66423         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66424         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66425         directory.
66426         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66427         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66428         directory.
66429
66430 2003-06-06  Jim Meyering  <jim@meyering.net>
66431
66432         Merge from coreutils.
66433         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66434         Consolidate declarations and initializations of *_base* locals.
66435
66436         Merge from coreutils.
66437         This avoids a core dump on systems without GNU putenv,
66438         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66439         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66440         (unsetenv): New static function, from GNU libc.
66441         (rpl_putenv): Use it.
66442
66443         * lib/modechange.c: Remove trailing blanks.
66444
66445         Merge from coreutils.
66446         * lib/fsusage.c: Remove declaration of statfs.
66447         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66448
66449         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66450
66451 2003-06-06  Jim Meyering  <jim@meyering.net>
66452
66453         * lib/stdbool_.h: Renamed from stdbool.h.in.
66454
66455 2003-06-06  Jim Meyering  <jim@meyering.net>
66456             Bruno Haible  <bruno@clisp.org>
66457
66458         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66459         Adjust Makefile.am snippet not to redirect directly to target.
66460         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66461
66462 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66463
66464         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66465         mismatch, look in future quarters as well as past.  This fixes a
66466         bug when processing fall-backwards gaps immediately after a long
66467         period of daylight-saving time.
66468
66469         * lib/mktime.c: Assume freestanding C89 or better.
66470         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66471         (__P): Remove; not used.
66472         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66473         (mktime, not_equal_tm, print_tm, check_result,
66474         main): Use prototypes.  Use const * where appropriate.
66475         (main): Fix typo in testing code that uncovered by above changes.
66476         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66477
66478 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66479
66480         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66481         locale.h, localeconv.  This merges changes from coreutils.
66482
66483         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66484         It can be removed after the next Autoconf is released.
66485         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66486         needed.
66487
66488 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66489
66490         * lib/mktime.c: Fix Debian bug 177940
66491         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66492         (localtime_offset): Now long int, not time_t, because we want it
66493         to be guaranteed to be signed.  All uses changed.
66494         (__mktime_internal): If overflow would occur when adding offset,
66495         don't add it.
66496
66497         Merge 'human' changes from coreutils.  Rewrite to support
66498         locale-specific notations like thousands separators.
66499         * lib/human.c: Simplify authorship notice.
66500         Include human.h immediately after config.h.
66501         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66502         <limits.h>: Do not include, since human.h does.
66503         (SIZE_MAX, UINTMAX_MAX): New macros.
66504         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66505         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66506         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66507         (power_letter): Renamed from suffixes.
66508         (generate_suffix_backwards): Remove.
66509         (adjust_value): Now takes int style (because of human.h changes)
66510         and long double value (for greater precision on some platforms).
66511         (group_number): New function.
66512         (human_readable): Use it.  Use integer options, not enum.
66513         Put the options before the sizes in the arg list.
66514         Support all the new options.
66515         The old human_readable function has been removed;
66516         use inttostr.h instead.
66517         (human_readable, default_block_size, humblock):
66518         Use uintmax_t, not int, for block sizes.
66519         (human_readable_inexact, block_size_types): Remove.
66520         (block_size_opts): New constant.
66521         (human_options): Renamed from human_block_size, with new signature
66522         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66523         * lib/human.h: Add copyright and authorship notice.
66524         Include <limits.h> and <stdbool.h> unconditionally.
66525         (PARAMS): Remove.  All uses removed.
66526         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66527         (enum human_inexact_style): Remove tag; now a nameless enum.
66528         (human_floor, human_ceiling, human_round_to_even): Now have
66529         values 2, 0, 1 rather than -1, 1, 0.
66530         (human_group_digits, human_suppress_point_zero, human_autoscale,
66531         human_base_1024, human_SI, human_B): New constants.
66532         (human_readable_inexact, human_block_size): Remove.
66533         (human_readable): Size args are now uintmax_t, not int.
66534         (human_options): New decl.
66535
66536         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66537         unnecessary now that we assume C89 or better.  This change
66538         imported from coreutils.
66539
66540         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66541         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66542         in the 2003-05-30 sync from glibc.
66543
66544         .h files should stand alone, but we shouldn't include <sys/types.h>
66545         if we can get away with just <stddef.h>.
66546
66547         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66548         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66549         rather than <sys/types.h>, as we merely need size_t.
66550         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66551         to get size_t.
66552         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66553         Include <stdio.h>, to get FILE.
66554         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66555         memcasecmp.h has included <stddef.h> and all we need is size_t.
66556         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66557         our interface, instead of including <sys/types.h>
66558
66559 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66560
66561         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66562         now, as glibc mktime is buggy on non-glibc systems.
66563
66564 2003-06-03  Karl Berry  <karl@gnu.org>
66565
66566         * config/config.sub: update from prep.
66567
66568 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66569
66570         [from coreutils]
66571         Fix some minor time-related bugs with POSIX time arguments.
66572         Some valid time stamps were being rejected (notably -1, and
66573         time stamps before 1900 on 64-bit hosts).  And some invalid
66574         time stamps were being accepted, e.g. September 31.
66575
66576         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66577         that we can return (time_t) -1 successfully.
66578         * lib/posixtm.c: Likewise.
66579         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66580         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66581         (t): Remove static var.
66582         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66583         of static var.  All uses changed.
66584         (year): Do not reject years before 1900; they can occur with
66585         64-bit time_t.
66586         (posix_time_parse): Do not check for out-of-range components;
66587         that is now the caller's responsibility, since our checks were
66588         only approximations.
66589         (posixtime): Use mktime to check for out-of-range components,
66590         since it knows them exactly.
66591         If mktime returns (time_t) -1, check whether an error actually occurred
66592         by invoking localtime on -1.
66593         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66594         posixtime failures better.
66595         Improve the test data (in comments only).
66596
66597 2003-06-02  Karl Berry  <karl@gnu.org>
66598
66599         * config/mkinstalldirs (version): new variable.
66600         (--version): new option.
66601         (usage): improve message.
66602
66603 2003-05-30  Karl Berry  <karl@gnu.org>
66604
66605         * lib/mktime.c: update from libc.
66606
66607 2003-05-30  Bruno Haible  <bruno@clisp.org>
66608
66609         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66610         * config/config.rpath: Upgrade to gettext-0.12.1.
66611
66612 2003-05-30  Bruno Haible  <bruno@clisp.org>
66613
66614         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66615         * m4/nls.m4: New file, from gettext-0.12.1.
66616         * m4/po.m4: New file, from gettext-0.12.1.
66617         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66618
66619 2003-05-30  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66622         * lib/localcharset.h: Likewise.
66623         * lib/localcharset.c: Likewise.
66624
66625 2003-05-29  Karl Berry  <karl@gnu.org>
66626
66627         * config/config.rpath: update from gettext.
66628
66629 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66630
66631         Assume the headers required for C89 freestanding compilers.
66632         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66633         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66634         * m4/human.m4 (gl_HUMAN): Likewise.
66635         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66636         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66637         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66638         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66640         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66641
66642 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66643
66644         Assume the headers required for C89 freestanding compilers.
66645         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66646         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66647         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66648         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66649         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66650         define, since <limits.h> is guaranteed to do that.
66651         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66652         * lib/exclude.c: Include <stdbool.h> unconditionally.
66653         * lib/tempname.c: Include <stddef.h> unconditionally.
66654         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66655         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66656         <stddef.h> does that.
66657         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66658         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66659         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66660         needed.
66661         * lib/xstrtol.c: Likewise.
66662         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66663         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66664
66665         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66666         warnings on some platforms.
66667
66668         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66669         arbitrarily.
66670
66671 2003-05-26  Jim Meyering  <jim@meyering.net>
66672
66673         Merge in a change from coreutils:
66674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66675         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66676         that condition, rather than `-1' which is slightly misleading.
66677         Change the name of the cache variable to have the gl_ prefix.
66678         Prompted by a patch from Richard Dawe for DJGPP.
66679
66680 2003-05-24  Karl Berry  <karl@gnu.org>
66681
66682         * config/config.guess: update from prep.
66683
66684 2003-05-22  Karl Berry  <karl@gnu.org>
66685
66686         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66687
66688 2003-05-20  Karl Berry  <karl@gnu.org>
66689
66690         * config/config.guess: update from prep.
66691
66692 2003-05-18  Karl Berry  <karl@gnu.org>
66693
66694         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66695         might actually be set by the user.
66696
66697         * config/depcomp, install-sh, mdate-sh: update from automake.
66698
66699 2003-05-17  Bruno Haible  <bruno@clisp.org>
66700
66701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66702         invalid expansion for AC_EGREP_CPP.
66703         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66704         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66705         Suggested by Akim Demaille <akim@epita.fr> in
66706         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66707
66708 2003-05-12  Jim Meyering  <jim@meyering.net>
66709
66710         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66711         the space-padded-by-default conversion specifiers, %e, %k, %l.
66712
66713 2003-05-12  Bruno Haible  <bruno@clisp.org>
66714
66715         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66716         the string is longer than 4 KB.
66717
66718 2003-05-11  Karl Berry  <karl@gnu.org>
66719
66720         * config/config.{guess,sub}: update from prep.
66721
66722 2003-05-09  Bruno Haible  <bruno@clisp.org>
66723
66724         * modules/error: Add m4/strerror_r.m4 to file list.
66725
66726 2003-05-03  Bruno Haible  <bruno@clisp.org>
66727
66728         Upgrade to Unicode-4.0.
66729         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66730         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66731         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66732         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66733         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66734         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66735         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66736         Change width of U+E0100..U+E01EF from 1 to 0.
66737
66738 2003-04-25  Jim Meyering  <jim@meyering.net>
66739
66740         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66741         of type size_t, not int.
66742
66743 2003-04-25  Bruno Haible  <bruno@clisp.org>
66744
66745         * lib/copy-file.c: Include <stddef.h>, for size_t.
66746
66747 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66748
66749         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66750         code which expansion is under static control.  Patch imported from
66751         Akim Demaille's patch to Bison; see
66752         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66753
66754 2003-04-14  Bruno Haible  <bruno@clisp.org>
66755
66756         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66757
66758 2003-04-11  Jim Meyering  <jim@meyering.net>
66759
66760         Merge changes from Coreutils.
66761
66762         2003-03-22  Jim Meyering  <jim@meyering.net>
66763
66764         * lib/strftime.c (widen): Cast alloca return value to proper type.
66765
66766         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66767
66768         From GNU libc.
66769         * lib/strftime.c (my_strftime): Handle very large width
66770         specifications for numeric values correctly.  Improve checks for
66771         overflow.
66772
66773         2003-01-19  Jim Meyering  <jim@meyering.net>
66774
66775         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66776         definitions.
66777         (nl_get_alt_digit) [! defined my_strftime]: Define.
66778         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66779         _nl_get_alt_digit and _nl_get_walt_digit.
66780
66781         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66782         libc. These changes have no effect outside of _LIBC.
66783
66784 2003-04-10  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/findprog: New file.
66787         * MODULES.html.sh (func_all_modules): Add it.
66788
66789 2003-04-10  Bruno Haible  <bruno@clisp.org>
66790
66791         * m4/findprog.m4: New file.
66792         * m4/eaccess.m4: New file.
66793
66794 2003-04-10  Bruno Haible  <bruno@clisp.org>
66795
66796         * lib/findprog.h: New file, from GNU gettext.
66797         * lib/findprog.c: New file, from GNU gettext.
66798
66799 2003-04-05  Jim Meyering  <jim@meyering.net>
66800
66801         Merge changes from Coreutils.
66802
66803         * lib/exclude.h (PARAMS): Remove definition and uses.
66804         * lib/exclude.c: Remove uses of `PARAMS'.
66805
66806         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66807         Add test-cases for DOS filenames. Declare program_name.
66808         (main): Set up program_name.  Patch by Rich Dawe.
66809
66810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66811         error from mntctl.
66812         Use mntctl's return value to drive the entry-processing loop, since
66813         we can't rely on the value of the vmt_length member in the last
66814         entry.  On some systems doing so could result in exhausting
66815         virtual memory.  Based in part on a patch from Mike Jetzer.
66816
66817 2003-04-04  Bruno Haible  <bruno@clisp.org>
66818
66819         * modules/linebreak: New file.
66820         * MODULES.html.sh (func_all_modules): Add it.
66821
66822 2003-04-04  Bruno Haible  <bruno@clisp.org>
66823
66824         * m4/linebreak.m4: New file.
66825
66826 2003-04-04  Bruno Haible  <bruno@clisp.org>
66827
66828         * lib/linebreak.h: New file, from GNU gettext.
66829         * lib/linebreak.c: New file, from GNU gettext with slight
66830         modifications.
66831         * lib/lbrkprop.h: New file, from GNU gettext.
66832
66833 2003-04-03  Bruno Haible  <bruno@clisp.org>
66834
66835         * modules/utf8-ucs4: New file.
66836         * modules/utf16-ucs4: New file.
66837         * modules/ucs4-utf8: New file.
66838         * modules/ucs4-utf16: New file.
66839         * MODULES.html.sh (func_all_modules): Add them.
66840
66841 2003-04-03  Bruno Haible  <bruno@clisp.org>
66842
66843         * m4/utf-ucs4.m4: New file.
66844         * m4/ucs4-utf.m4: New file.
66845
66846 2003-04-03  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/utf8-ucs4.h: New file, from GNU gettext.
66849         * lib/utf16-ucs4.h: New file, from GNU gettext.
66850         * lib/ucs4-utf8.h: New file, from GNU gettext.
66851         * lib/ucs4-utf16.h: New file, from GNU gettext.
66852
66853 2003-04-02  Bruno Haible  <bruno@clisp.org>
66854
66855         * modules/binary-io: New file.
66856         * MODULES.html.sh (func_all_modules): Add it.
66857
66858 2003-04-02  Bruno Haible  <bruno@clisp.org>
66859
66860         * lib/binary-io.h: New file, from GNU gettext.
66861
66862 2003-04-01  Bruno Haible  <bruno@clisp.org>
66863
66864         * modules/pathname: New file.
66865         * MODULES.html.sh (func_all_modules): Add it.
66866
66867 2003-04-01  Bruno Haible  <bruno@clisp.org>
66868
66869         * lib/pathname.h: New file, from GNU gettext.
66870         * lib/concatpath.c: New file, from GNU gettext.
66871
66872 2003-03-30  Bruno Haible  <bruno@clisp.org>
66873
66874         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66875
66876 2003-03-30  Bruno Haible  <bruno@clisp.org>
66877
66878         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66879         function chown() doesn't exist.
66880
66881 2003-03-28  Bruno Haible  <bruno@clisp.org>
66882
66883         * modules/copy-file: New file.
66884         * MODULES.html.sh (func_all_modules): Add it.
66885
66886 2003-03-28  Bruno Haible  <bruno@clisp.org>
66887
66888         * m4/copy-file.m4: New file.
66889
66890 2003-03-28  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/copy-file.h: New file, from GNU gettext.
66893         * lib/copy-file.c: New file, from GNU gettext.
66894
66895 2003-03-18  Jim Meyering  <jim@meyering.net>
66896
66897         * lib/quote.c (quote_n): Fix typo in comment.
66898
66899 2003-03-18  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66902         checking.
66903         * m4/onceonly_2_57.m4: Likewise.
66904
66905 2003-03-17  Bruno Haible  <bruno@clisp.org>
66906
66907         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66908         (m4_quote): Remove macro.
66909         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66910
66911 2003-03-14  Jim Meyering  <jim@meyering.net>
66912
66913         Merge changes from Coreutils.
66914         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66915         to be const, in order to avoid warnings.
66916         (obstack_room): Likewise.
66917         (obstack_empty_p): Likewise.
66918
66919 2003-03-14  Bruno Haible  <bruno@clisp.org>
66920
66921         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66922         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66923
66924 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66925
66926         Merge changes from Bison.
66927         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66928         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66929         when compiling Bison 1.875's `bitset bset = obstack_alloc
66930         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66931         * lib/hash.c: Include <stdbool.h> unconditionally.
66932
66933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66934
66935         * m4/onceonly.m4 (m4_quote): New macro.
66936         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66937         Quote AC_FOREACH variable-expansions properly.
66938
66939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66940
66941         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66942
66943 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66944
66945         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66946         Reported by Bruce Becker; see:
66947         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66948
66949 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66950             Bruno Haible  <bruno@clisp.org>
66951
66952         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66953         Reported by John Hughes, see
66954         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66955
66956 2003-02-20  Bruno Haible  <bruno@clisp.org>
66957
66958         * MODULES.html.sh (func_all_modules): Add poll.
66959
66960 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66961
66962         * modules/poll: New file.
66963
66964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66965
66966         * lib/poll_.h: New file.
66967         * lib/poll.c: New file.
66968
66969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66970
66971         * m4/poll.m4: New file.
66972
66973 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66974
66975         * modules/mathl: New file.
66976
66977 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66978
66979         * lib/mathl.h: New file.
66980         * lib/acosl.c: New file.
66981         * lib/asinl.c: New file.
66982         * lib/atanl.c: New file.
66983         * lib/ceill.c: New file.
66984         * lib/cosl.c: New file.
66985         * lib/expl.c: New file.
66986         * lib/floorl.c: New file.
66987         * lib/frexpl.c: New file.
66988         * lib/ldexpl.c: New file.
66989         * lib/logl.c: New file.
66990         * lib/sincosl.c: New file.
66991         * lib/sinl.c: New file.
66992         * lib/sqrtl.c: New file.
66993         * lib/tanl.c: New file.
66994         * lib/trigl.c: New file.
66995         * lib/trigl.h: New file.
66996
66997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66998
66999         * m4/mathl.m4: New file.
67000
67001 2003-02-18  Bruno Haible  <bruno@clisp.org>
67002
67003         * MODULES.html.sh (func_all_modules): Add mathl.
67004
67005 2003-02-17  Bruno Haible  <bruno@clisp.org>
67006
67007         * modules/mkdtemp: New module.
67008         * MODULES.html.sh (func_all_modules): Add it.
67009
67010 2003-02-17  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67013
67014 2003-02-17  Bruno Haible  <bruno@clisp.org>
67015
67016         * lib/mkdtemp.h: New file, from GNU gettext.
67017         * lib/mkdtemp.c: New file, from GNU gettext.
67018
67019 2003-02-02  Jim Meyering  <jim@meyering.net>
67020
67021         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67022         e.g. glibc-2.2.93.
67023
67024 2003-01-31  Bruno Haible  <bruno@clisp.org>
67025
67026         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67027         'rpl_rename'.
67028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67029         'rpl_strnlen'.
67030         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67031         'rpl_strtod'.
67032         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67033         'rpl_utime'.
67034
67035 2003-01-31  Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/rename.c: #undef rename before defining rpl_rename.
67038         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67039
67040 2003-01-30  Bruno Haible  <bruno@clisp.org>
67041
67042         * modules/vasnprintf, modules/vasprintf: New modules.
67043         * MODULES.html.sh (func_all_modules): Add them.
67044
67045 2003-01-30  Bruno Haible  <bruno@clisp.org>
67046
67047         * m4/signed.m4: New file, from GNU gettext.
67048         * m4/longdouble.m4: New file, from GNU gettext.
67049         * m4/wchar_t.m4: New file, from GNU gettext.
67050         * m4/wint_t.m4: New file, from GNU gettext.
67051         * m4/vasnprintf.m4: New file.
67052         * m4/vasprintf.m4: New file.
67053
67054 2003-01-30  Bruno Haible  <bruno@clisp.org>
67055
67056         * lib/printf-args.h: New file, from GNU gettext.
67057         * lib/printf-args.c: New file, from GNU gettext.
67058         * lib/printf-parse.h: New file, from GNU gettext.
67059         * lib/printf-parse.c: New file, from GNU gettext.
67060         * lib/vasnprintf.h: New file, from GNU gettext.
67061         * lib/vasnprintf.c: New file, from GNU gettext.
67062         * lib/asnprintf.c: New file, from GNU gettext.
67063         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67064         * lib/vasprintf.c: New file, from GNU gettext.
67065         * lib/asprintf.c: New file, from GNU gettext.
67066
67067 2003-01-29  Bruno Haible  <bruno@clisp.org>
67068
67069         * modules/stpncpy: New module.
67070         * MODULES.html.sh (func_all_modules): Add it.
67071
67072 2003-01-29  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/stpncpy.m4: New file.
67075
67076 2003-01-29  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67079         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67080
67081 2003-01-28  Bruno Haible  <bruno@clisp.org>
67082
67083         * modules/c-ctype: New module.
67084         * MODULES.html.sh (func_all_modules): Add it.
67085
67086 2003-01-28  Bruno Haible  <bruno@clisp.org>
67087
67088         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67089         Paul Eggert.
67090         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67091         Paul Eggert.
67092
67093 2003-01-27  Bruno Haible  <bruno@clisp.org>
67094
67095         * modules/xsetenv: New module.
67096         * MODULES.html.sh (func_all_modules): Add it.
67097
67098 2003-01-27  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/xsetenv.h: New file, from GNU gettext.
67101         * lib/xsetenv.c: New file, from GNU gettext.
67102
67103 2003-01-23  Jim Meyering  <jim@meyering.net>
67104
67105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67106         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67107
67108 2003-01-23  Bruno Haible  <bruno@clisp.org>
67109
67110         * modules/minmax: New module.
67111         * MODULES.html.sh (func_all_modules): Add it.
67112
67113 2003-01-23  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67116         Eggert.
67117
67118 2003-01-22  Bruno Haible  <bruno@clisp.org>
67119
67120         * modules/exit: New module.
67121         * MODULES.html.sh (func_all_modules): Add it.
67122
67123 2003-01-22  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/exit.h: New file, from GNU gettext.
67126
67127 2003-01-19  Bruno Haible  <bruno@clisp.org>
67128
67129         * gnulib-tool: Recognize option --extract-maintainer.
67130         (func_get_maintainer): New function.
67131         * modules/*: Add Maintainer entry.
67132
67133 2003-01-16  Jim Meyering  <jim@meyering.net>
67134
67135         * m4/regex.m4: The `regex' struct is both input and output.
67136         Initialize it before each use.  Patch by Tim Waugh.
67137
67138 2003-01-16  Bruno Haible  <bruno@clisp.org>
67139
67140         * MODULES.html.sh: Add a table of contents. Add the module name as
67141         leftmost column. Add hyperlinks.
67142
67143 2003-01-15  Bruno Haible  <bruno@clisp.org>
67144
67145         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67146
67147 2003-01-15  Bruno Haible  <bruno@clisp.org>
67148
67149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67151         suffix.
67152
67153 2003-01-15  Bruno Haible  <bruno@clisp.org>
67154
67155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67156
67157 2003-01-15  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67160         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67161
67162 2003-01-14  Jim Meyering  <jim@meyering.net>
67163
67164         * lib/same.c (same_name): Tweak a comment.
67165
67166 2003-01-14  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67169         when a string comparison is sufficient.
67170
67171 2003-01-14  Bruno Haible  <bruno@clisp.org>
67172
67173         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67174         'unsigned int'.
67175
67176 2003-01-14  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/hash-pjw.c: Add comment about low quality of this function.
67179
67180 2003-01-13  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/stpcpy: Distribute lib/stpcpy.h.
67183         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67184
67185 2003-01-13  Bruno Haible  <bruno@clisp.org>
67186
67187         * modules/*: Add a description.
67188         * modules/strpbrk: Fix Makefile.am snippet.
67189         * modules/strtoimax: Fix dependencies.
67190         * modules/strtoumax: Likewise.
67191
67192 2003-01-13  Bruno Haible  <bruno@clisp.org>
67193
67194         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67195         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67196         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67197
67198 2003-01-13  Bruno Haible  <bruno@clisp.org>
67199
67200         * gnulib-tool (func_create_testdir): Store config/* files in the main
67201         directory.
67202         * config.rpath: Move to ...
67203         * config/config.rpath: ... here.
67204         * modules/gettext: Contains config/config.rpath, not config.rpath.
67205         * modules/iconv: Likewise.
67206
67207 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67208
67209         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67210         to avoid collisions with libcurses and libreadline.
67211
67212         * m4/getstr.m4: Remove.
67213         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67214
67215 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67216
67217         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67218         to avoid collisions with libcurses and libreadline.
67219
67220         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67221         * lib/getstr.h, getstr.c: Remove.
67222         * lib/getline.c: Include "getline.h", to check interface.
67223         Move body of old getstr.c here: this defines MIN_CHUNK and
67224         declares getdelim2, which is renamed from getstr.
67225         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67226
67227         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67228         All uses changed.
67229         * lib/linebuffer.h: Likewise.
67230         (readline): Remove backward-compatibility macro.
67231
67232 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67233
67234         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67235         to avoid collisions with libcurses and libreadline.
67236         * getstr: Remove.
67237         * MODULES.html.sh: Remove getstr.
67238         * modules/getline: Depend on unlocked-io, not getstr.
67239
67240 2003-01-12  Jim Meyering  <jim@meyering.net>
67241
67242         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67243
67244 2003-01-10  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/alloca: Change Makefile.am requirements. Simplify Include
67247         requirements. Add lib/alloca_.h to file list.
67248
67249 2003-01-10  Bruno Haible  <bruno@clisp.org>
67250
67251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67252
67253 2003-01-10  Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/alloca_.h: New file.
67256         * lib/getdate.y: Unconditionally include alloca.h.
67257         * lib/makepath.c: Likewise.
67258         * lib/setenv.c: Likewise.
67259         * lib/userspec.c: Likewise.
67260
67261 2003-01-09  Karl Berry  <karl@gnu.org>
67262
67263         * MODULES.html.sh: include `dirname $0` in PATH, to find
67264         gnulib-tool.
67265
67266 2003-01-09  Bruno Haible  <bruno@clisp.org>
67267
67268         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67269         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67270
67271 2003-01-09  Bruno Haible  <bruno@clisp.org>
67272
67273         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67274
67275 2003-01-09  Bruno Haible  <bruno@clisp.org>
67276
67277         * lib/stdbool.h.in: New file.
67278
67279 2003-01-09  Bruno Haible  <bruno@clisp.org>
67280
67281         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67282         * MODULES.html.sh: Likewise.
67283
67284 2003-01-08  Jim Meyering  <jim@meyering.net>
67285
67286         * lib/full-write.c: Undefine and define-away `const' after inclusion
67287         of errno.h, not before.  Suggestion from Bruno Haible.
67288
67289 2003-01-08  Bruno Haible  <bruno@clisp.org>
67290
67291         * modules/full-read: Depend on full-write.
67292
67293 2003-01-08  Bruno Haible  <bruno@clisp.org>
67294
67295         * lib/safe-read.c: Include specification header first, to ensure its
67296         selfcontainedness.
67297         * lib/full-write.c: Likewise.
67298
67299 2003-01-07  Jim Meyering  <jim@meyering.net>
67300
67301         * lib/full-write.c: Rework so that it may serve to define full_read,
67302         too.
67303         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67304
67305 2003-01-07  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67308         <inttypes.h>.
67309         * lib/xstrtol.h: Likewise.
67310         * lib/xstrtoimax.c: Likewise.
67311         * lib/xstrtoumax.c: Likewise.
67312         * lib/human.h: Likewise.
67313
67314         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67315         on systems that have <inttypes.h> but not <stdint.h>.
67316
67317 2003-01-07  Bruno Haible  <bruno@clisp.org>
67318
67319         * MODULES.html.sh: Add copyright notice.
67320         (missed_files): Omit CVS directory entries.
67321         (func_module): Make it work with sed-3.02.
67322         * MODULES.txt: Remove file.
67323
67324 2003-01-06  Jim Meyering  <jim@meyering.net>
67325
67326         * lib/version-etc.c: Update year in translatable copyright string.
67327
67328 2003-01-03  Karl Berry  <karl@gnu.org>
67329
67330         * config/config.{guess,sub}: update from prep.
67331
67332 2003-01-02  Karl Berry  <karl@gnu.org>
67333
67334         * doc/COPYING.DOC: belatedly updated to 1.2.
67335
67336 2003-01-01  Karl Berry  <karl@gnu.org>
67337
67338         * gnulib-tool (func_verify_module): report module name $module in
67339         error message, not $1.
67340         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67341         be created, only if it doesn't exist.
67342         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67343
67344 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67345
67346         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67347
67348 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67349
67350         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67351         memcmp if strcoll doesn't work.
67352
67353 2002-12-31  Bruno Haible  <bruno@clisp.org>
67354
67355         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67356         nonempty.
67357
67358 2002-12-31  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/memcoll.c (STRCOLL): New macro.
67361         (memcoll): Use it.
67362
67363 2002-12-31  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/localcharset.h: New file.
67366         * lib/localcharset.c: Include it.
67367         * lib/unicodeio.c: Likewise.
67368
67369 2002-12-31  Bruno Haible  <bruno@clisp.org>
67370
67371         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67372         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67373
67374 2002-12-31  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/getline.h: Include <stddef.h>, for size_t.
67377
67378         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67379         * lib/unicodeio.c: Don't include <stddef.h>.
67380
67381 2002-12-31  Bruno Haible  <bruno@clisp.org>
67382
67383         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67384         HAVE_TM_ZONE.
67385
67386 2002-12-24  Karl Berry  <karl@gnu.org>
67387
67388         * config/config.guess: update from prep.
67389
67390 2002-12-24  Bruno Haible  <bruno@clisp.org>
67391
67392         General infrasructure.
67393         * m4/README: Rewritten.
67394         * m4/onceonly.m4: New file.
67395         * m4/onceonly_2_57.m4: New file.
67396
67397         Module atexit.
67398         * m4/atexit.m4: New file.
67399
67400         Module strtod.
67401         * m4/strtod.m4: New file.
67402
67403         Module strtol.
67404         * m4/strtol.m4: New file.
67405
67406         Module strtoul.
67407         * m4/strtoul.m4: New file.
67408
67409         Module memchr.
67410         * m4/memchr.m4: New file.
67411
67412         Module memcmp.
67413         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67414         (jm_FUNC_MEMCMP): Invoke it.
67415
67416         Module memcpy.
67417         * m4/memcpy.m4: New file.
67418
67419         Module memmove.
67420         * m4/memmove.m4: New file.
67421
67422         Module memset.
67423         * m4/memset.m4: New file.
67424
67425         Module strcspn.
67426         * m4/strcspn.m4: New file.
67427
67428         Module strpbrk.
67429         * m4/strpbrk.m4: New file.
67430
67431         Module strstr.
67432         * m4/strstr.m4: New file.
67433
67434         Module strerror.
67435         * m4/strerror.m4: New file.
67436
67437         Module mktime.
67438         * m4/mktime.m4: Renamed from jm-mktime.m4.
67439         (gl_PREREQ_MKTIME): New macro.
67440         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67441
67442         Module malloc.
67443         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67444         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67445         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67446
67447         Module realloc.
67448         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67449         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67450         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67451
67452         Module strftime.
67453         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67455         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67456         gl_TM_GMTOFF.
67457         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67458
67459         Module xalloc.
67460         * m4/xalloc.m4: New file.
67461
67462         Module alloca.
67463         * m4/alloca.m4: New file.
67464
67465         Module putenv.
67466         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67467         (jm_FUNC_PUTENV): Invoke it.
67468
67469         Module setenv.
67470         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67471         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67472         when invoked twice.
67473         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67474         gt_FUNC_SETENV.
67475
67476         Module memrchr.
67477         * m4/memrchr.m4: New file.
67478
67479         Module stpcpy.
67480         * m4/stpcpy.m4: New file.
67481
67482         Module strcase.
67483         * m4/strcase.m4: New file.
67484
67485         Module strdup.
67486         * m4/strdup.m4: New file.
67487
67488         Module strnlen.
67489         * m4/strnlen.m4: New file.
67490
67491         Module strndup.
67492         * m4/strndup.m4: New file.
67493
67494         Module xstrtod.
67495         * m4/xstrtod.m4: New file.
67496
67497         Module xstrtol.
67498         * m4/xstrtol.m4: New file.
67499
67500         Module getdate.
67501         * m4/getdate.m4: New file.
67502
67503         Module unlocked-io.
67504         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67505         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67506         * m4/jm-glibc-io.m4n: Remove file.
67507
67508         Module long-options.
67509         * m4/long-options.m4: New file.
67510
67511         Module md5.
67512         * m4/md5.m4: New file.
67513
67514         Module sha.
67515         * m4/sha.m4: New file.
67516
67517         Module getstr.
67518         * m4/getstr.m4: New file.
67519
67520         Module getline.
67521         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67522         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67523         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67524         simply getline. Infoke gl_PREREQ_GETLINE.
67525
67526         Module obstack.
67527         * m4/obstack.m4: New file.
67528
67529         Module hash.
67530         * m4/hash.m4: New file.
67531
67532         Module readtokens.
67533         * m4/readtokens.m4: New file.
67534
67535         Module strverscmp.
67536         * m4/strverscmp.m4: New file.
67537
67538         Module stdbool.
67539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67540         OSF/1.
67541
67542         Module strtoll.
67543         * m4/strtoll.m4: New file.
67544
67545         Module strtoull.
67546         * m4/strtoull.m4: New file.
67547
67548         Module strtoimax.
67549         * m4/strtoimax.m4: New file.
67550
67551         Module strtoumax.
67552         * m4/strtoumax.m4: New file.
67553
67554         Module xstrtoimax.
67555         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67556         jm_AC_PREREQ_XSTRTOIMAX.
67557         Moved the strtol prerequisites to strtol.m4.
67558         Moved the strtoll prerequisites to strtoll.m4.
67559         Moved the strtoimax prerequisites to strtoimax.m4.
67560
67561         Module xstrtoumax.
67562         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67563         jm_AC_PREREQ_XSTRTOUMAX.
67564         Moved the strtoul prerequisites to strtoul.m4.
67565         Moved the strtoull prerequisites to strtoull.m4.
67566         Moved the strtoumax prerequisites to strtoumax.m4.
67567
67568         Module chown.
67569         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67570         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67571
67572         Module dup2.
67573         * m4/dup2.m4: New file.
67574
67575         Module ftruncate.
67576         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67577         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67578
67579         Module getgroups.
67580         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67581         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67582
67583         Module gettimeofday.
67584         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67586         gl_PREREQ_GETTIMEOFDAY.
67587
67588         Module mkdir.
67589         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67590         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67591
67592         Module mkstemp.
67593         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67594         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67595         jm_AC_TYPE_UINTMAX_T.
67596         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67597
67598         Module stat.
67599         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67600         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67601
67602         Module lstat.
67603         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67604         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67605
67606         Module timespec.
67607         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67608         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67609         * m4/st_mtim.m4: Indentation.
67610
67611         Module nanosleep.
67612         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67613         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67614         gl_PREREQ_NANOSLEEP.
67615
67616         Module regex.
67617         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67618         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67619         (gl_REGEX): New macro.
67620
67621         Module rename.
67622         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67623         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67624
67625         Module rmdir.
67626         * m4/rmdir.m4: New file.
67627
67628         Module utime.
67629         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67630         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67631         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67632
67633         Module dirname.
67634         * m4/dirname.m4: New file.
67635
67636         Module getopt.
67637         * m4/getopt.m4: New file.
67638
67639         Module unistd-safer.
67640         * m4/unistd-safer.m4: New file.
67641
67642         Module fnmatch.
67643         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67644         declaration.
67645         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67646         (gl_FUNC_FNMATCH_POSIX): New macro.
67647         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67648         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67649         simply fnmatch.
67650
67651         Module exclude.
67652         * m4/exclude.m4: New file.
67653
67654         Module human.
67655         * m4/human.m4: New file.
67656
67657         Module acl.
67658         * m4/acl.m4: Nop.
67659
67660         Module backupfile.
67661         * m4/backupfile.m4: New file.
67662         * m4/d-ino.m4: Indentation.
67663
67664         Module fsusage.
67665         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67666         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67667         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67668
67669         Module dirfd.
67670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67671         requirements.
67672
67673         Module euidaccess.
67674         * m4/euidaccess.m4: New file.
67675
67676         Module file-type.
67677         * m4/file-type.m4: New file.
67678
67679         Module fileblocks.
67680         * m4/fileblocks.m4: New file.
67681
67682         Module filemode.
67683         * m4/filemode.m4: New file.
67684
67685         Module isdir.
67686         * m4/isdir.m4: New file.
67687
67688         Module lchown.
67689         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67690         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67691
67692         Module makepath.
67693         * m4/makepath.m4: New file.
67694
67695         Module modechange.
67696         * m4/modechange.m4: New file.
67697
67698         Module mountlist.
67699         * m4/mountlist.m4: New file.
67700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67701         Indentation.
67702
67703         Module path-concat.
67704         * m4/path-concat.m4: New file.
67705
67706         Module pathmax.
67707         * m4/pathmax.m4: New file.
67708
67709         Module same.
67710         * m4/same.m4: New file.
67711
67712         Module save-cwd.
67713         * m4/save-cwd.m4: New file.
67714
67715         Module savedir.
67716         * m4/savedir.m4: New file.
67717
67718         Module xgetcwd.
67719         * m4/xgetcwd.m4: New file.
67720         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67721
67722         Module xreadlink.
67723         * m4/xreadlink.m4: New file.
67724
67725         Module safe-read.
67726         * m4/safe-read.m4: New file.
67727
67728         Module safe-write.
67729         * m4/safe-write.m4: New file.
67730
67731         Module closeout.
67732         * m4/closeout.m4: New file.
67733
67734         Module stdio-safer.
67735         * m4/stdio-safer.m4: New file.
67736
67737         Module getpass.
67738         * m4/getpass.m4: New file.
67739
67740         Module getugroups.
67741         * m4/getugroups.m4: New file.
67742
67743         Module group-member.
67744         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67745         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67746
67747         Module idcache.
67748         * m4/idcache.m4: New file.
67749
67750         Module userspec.
67751         * m4/userspec.m4: New file.
67752
67753         Module gettime.
67754         * m4/clock_time.m4: New file.
67755         * m4/gettime.m4: New file.
67756
67757         Module settime.
67758         * m4/settime.m4: New file.
67759
67760         Module posixtm.
67761         * m4/posixtm.m4: New file.
67762
67763         Module gethostname.
67764         * m4/gethostname.m4: New file.
67765
67766         Module canon-host.
67767         * m4/canon-host.m4: New file.
67768
67769         Module gettext.
67770         * m4/codeset.m4: New file, from gettext-0.11.5.
67771         * m4/gettext.m4: New file, from gettext-0.11.5.
67772         * m4/glibc21.m4: New file, from gettext-0.11.5.
67773         * m4/iconv.m4: New file, from gettext-0.11.5.
67774         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67775         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67776         * m4/inttypes.m4: New file, from gettext-0.11.5.
67777         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67778         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67779         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67780         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67781         * m4/lib-link.m4: New file, from gettext-0.11.5.
67782         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67783         * m4/progtest.m4: New file, from gettext-0.11.5.
67784         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67785         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67786         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67787
67788         Module localcharset.
67789         * m4/localcharset.m4: New file.
67790
67791         Module hard-locale.
67792         * m4/hard-locale.m4: New file.
67793
67794         Module mbswidth.
67795         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67796         onceonly macros.
67797         * m4/mbrtowc.m4: Add comment.
67798
67799         Module memcasecmp.
67800         * m4/memcasecmp.m4: New file.
67801
67802         Module memcoll.
67803         * m4/memcoll.m4: New file.
67804
67805         Module unicodeio.
67806         * m4/unicodeio.m4: New file.
67807
67808         Module rpmatch.
67809         * m4/rpmatch.m4: New file.
67810
67811         Module yesno.
67812         * m4/yesno.m4: New file.
67813
67814         Module exitfail.
67815         * m4/exitfail.m4: New file.
67816
67817         Module c-stack.
67818         * m4/c-stack.m4 (gl_C_STACK): New macro.
67819         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67820
67821         Module error.
67822         * m4/error.m4 (gl_ERROR): New macro.
67823         (jm_PREREQ_ERROR): Use onceonly macros.
67824
67825         Module fatal.
67826         * m4/fatal.m4: New file.
67827
67828         Module getloadavg.
67829         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67830         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67831
67832         Module getpagesize.
67833         * m4/getpagesize.m4: New file.
67834
67835         Module getusershell.
67836         * m4/getusershell.m4: New file.
67837
67838         Module physmem.
67839         * m4/physmem.m4: New file.
67840
67841         Module posixver.
67842         * m4/posixver.m4: New file.
67843
67844         Module quotearg.
67845         * m4/quotearg.m4: New file.
67846
67847         Module quote.
67848         * m4/quote.m4: New file.
67849
67850         Module readutmp.
67851         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67852
67853         Module sig2str.
67854         * m4/sig2str.m4: New file.
67855
67856         Other.
67857         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67858         ulonglong.m4.
67859         * m4/intmax_t.m4: New file.
67860         * m4/d-type.m4: Indentation.
67861         * m4/jm-macros.m4: Update.
67862         * m4/prereq.m4 (jm_PREREQ): Update.
67863         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67864         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67865         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67866         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67867         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67868         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67869         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67870         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67871         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67872         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67873         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67874         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67875         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67876         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67877         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67878         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67879         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67880         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67881         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67882
67883 2002-12-24  Bruno Haible  <bruno@clisp.org>
67884
67885         * MODULES.txt: Update according to m4/ changes.
67886
67887         Module gettext.
67888         * config.rpath: New file, from gettext-0.11.5.
67889
67890         * modules/*: New module descriptions.
67891         * gnulib-tool: New file.
67892         * MODULES.html.sh: New file.
67893
67894 2002-12-21  Karl Berry  <karl@gnu.org>
67895
67896         * doc/fdl.texi: update to version 1.2.
67897
67898 2002-12-19  Karl Berry  <karl@gnu.org>
67899
67900         * config/config.guess: update from prep.
67901
67902 2002-12-18  Bruno Haible  <bruno@clisp.org>
67903
67904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67905         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67906
67907 2002-12-17  Bruno Haible  <bruno@clisp.org>
67908
67909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67910         stdlib.h, string.h.
67911
67912 2002-12-17  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/canon-host.c (strdup): Remove unused declaration.
67915
67916         * lib/fsusage.c: Include full_read.h.
67917         (get_fs_usage): Use full_read instead of safe_read.
67918
67919         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67920
67921 2002-12-12  Karl Berry  <karl@gnu.org>
67922
67923         * config/config.guess: update from prep.
67924
67925 2002-12-11  Bruno Haible  <bruno@clisp.org>
67926
67927         * m4/setenv.m4: New file, from gettext-0.11.5.
67928
67929 2002-12-11  Bruno Haible  <bruno@clisp.org>
67930
67931         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67932         not unsetenv().
67933         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67934         modifications:
67935
67936         2002-12-11  Bruno Haible  <bruno@clisp.org>
67937
67938                 * setenv.c (alloca): Fall back to malloc.
67939                 (freea): New macro.
67940                 (setenv): Use freea() to free memory allocated with alloca().
67941
67942         2002-11-13  Bruno Haible  <bruno@clisp.org>
67943
67944                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67945                 function declarations.
67946                 * unsetenv.c (unsetenv): Likewise.
67947
67948         2002-03-04  Bruno Haible  <bruno@clisp.org>
67949
67950                 Portability to AIX 4.3.3.
67951                 * unsetenv.c: New file, extracted from setenv.c.
67952                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67953
67954         2001-12-20  Bruno Haible  <bruno@clisp.org>
67955
67956                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67957                 use malloc instead. For SunOS 4.
67958
67959         2001-12-11  Bruno Haible  <bruno@clisp.org>
67960
67961                 * setenv.c: Declare alloca.
67962                 (compar_fn_t): New typedef.
67963                 (KNOWN_VALUE, STORE_VALUE): Use it.
67964
67965         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67966         setenv.h.
67967
67968 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67969
67970         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67971         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67972         Choose values that are less likely to collide with system fnmatch
67973         options.
67974         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67975         defined (e.g., a pure POSIX system).
67976         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67977         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67978
67979 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67980
67981         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67982         a pain in practice to deal with generated m4 files.  This change
67983         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67984
67985         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67986         and jm-glibc-io.m4, as they are no longer a special case.
67987         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67988         kludge and the auto-generation stuff.  Check only whether the
67989         functions are declared, not whether they exist, since older hosts
67990         that don't declare the functions can't use the optimization anyway.
67991
67992 2002-12-06  Jim Meyering  <jim@meyering.net>
67993
67994         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67995
67996         Merge in changes from libc's misc/error.c, in preparation
67997         for the merge of gnulib's changes back into libc.
67998
67999         * lib/error.c (_): Define only if not already defined.
68000         Move definition to follow all #include directives.
68001         Include unlocked-io.h only if !_LIBC.
68002         [_LIBC]: Include <libio/libioP.h>.
68003         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68004         (fflush): Tweak definition to use INTUSE.
68005         (putc): Define.
68006
68007 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68008
68009         * lib/alloca.c [defined emacs]: Include "lisp.h".
68010         (xalloc_die) [defined emacs]: New macro.
68011         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68012         [! defined emacs]: Include <xalloc.h>.
68013         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68014         (pointer): Typedef to POINTER_TYPE *.
68015         (malloc): Remove decl; we now always use xmalloc.
68016         (alloca): Use old-style definition, since Emacs needs this.
68017         Check for arithmetic overflow when computing combined size.
68018
68019 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68020
68021         Do not generate unlocked-io.h automatically, since it's easier to
68022         maintain it by hand.
68023
68024         * lib/unlocked-io.h: New file, from GNU diffutils,
68025         but with proper copyright notice and attribution.
68026         * lib/gen-uio: Remove.
68027         * lib/Makefile.am: Add copyright notice.
68028         (libfetish_a_SOURCES): Add unlocked-io.h.
68029         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68030         (DISTCLEANFILES, io_functions): Remove macros.
68031         (EXTRA_DIST): Remove gen_uio.
68032         (unlocked-io.h): Remove rule.
68033
68034 2002-12-04  Jim Meyering  <jim@meyering.net>
68035
68036         Reflect the fact that stat.c and lstat.c are no longer generated.
68037         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68038         (DISTCLEANFILES): Likewise.
68039         (EXTRA_DIST): Likewise.
68040         (all_local): Don't depend on stat.c or lstat.c.
68041         (stat.c, lstat.c): Remove rules.
68042         (EXTRA_DIST): Remove xstat.in.
68043
68044         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68045         * lib/stat.c: New file.  Contents mostly from xstat.in.
68046         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68047         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68048
68049         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68050         too.
68051         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68052
68053 2002-12-03  Jim Meyering  <jim@meyering.net>
68054
68055         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68056         but not semantics, to minimize the differences between these two files.
68057         (safe_read): Change comment to mention SAFE_READ_ERROR.
68058
68059         * lib/safe-read.c (IS_EINTR): Define.
68060         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68061
68062 2002-12-02  Jim Meyering  <jim@meyering.net>
68063
68064         * lib/safe-read.c (EINTR): Define.
68065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68066         (INT_MAX): Provide fallback.
68067         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68068
68069         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68070
68071 2002-12-02  Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68074         Define, taken from safe-read.c.
68075         (INT_MAX): Provide fallback.
68076         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68077         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68078
68079         * lib/safe-read.c (EINTR): Remove definition.
68080         (safe_read): Don't use EINTR if it is absent.
68081
68082 2002-12-01  Jim Meyering  <jim@meyering.net>
68083
68084         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68085         zero.
68086         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68087
68088 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68089
68090         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68091         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68092         with `if (! (value < limit)) abort ();', for readability.
68093
68094 2002-11-26  Karl Berry  <karl@gnu.org>
68095
68096         * lib/strdup.c: copy from libc again, with jim's ok.
68097         * lib/.cppi-disable: re-add strdup.c
68098
68099 2002-11-25  Karl Berry  <karl@gnu.org>
68100
68101         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68102         instead of "strtol.c".
68103
68104 2002-11-25  Karl Berry  <karl@gnu.org>
68105
68106         * config/install-sh: update from automake for variable quoting, $0 in
68107         error msgs, etc.
68108
68109         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68110         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68111         entry.
68112
68113 2002-11-25  Jim Meyering  <jim@meyering.net>
68114
68115         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68116
68117 2002-11-24  Karl Berry  <karl@gnu.org>
68118
68119         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68120         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68121
68122 2002-11-24  Jim Meyering  <jim@meyering.net>
68123
68124         Update from coreutils:
68125
68126         * lib/mktime.c: Merge in changes from libc.
68127
68128         Avoid a link-time failure on some Linux systems.
68129         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68130         (otherwise).
68131         (__mon_yday): Declare with the STATIC attribute.
68132         (__mktime_internal): Likewise.
68133         Based on a report from Greg Schafer.
68134
68135 2002-11-23  Jim Meyering  <jim@meyering.net>
68136
68137         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68138         Use `unsigned', not `int', as type of index.
68139
68140         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68141
68142         * lib/fsusage.c: Remove unneeded parentheses around operands of
68143         `defined'.
68144
68145 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68146
68147         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68148         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68149         so that we can be included first.
68150         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68151         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68152         No need to include stddef.h or sys/types.h any more.
68153         Surround local include files with "", not "<>".
68154         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68155         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68156         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68157         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68158         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68159         (ISPRINT): Remove; no longer needed now that we assume C89.
68160
68161         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68162         Preserve errno.
68163
68164         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68165         quotearg_char): Use SIZE_MAX rather than
68166         (size_t) -1 when we are talking about "infinity".
68167
68168         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68169
68170 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68171
68172         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68173         hint that one should use `if (! x) abort ();' rather than `assert
68174         (x);', and anyway it's one less thing to worry about configuring.
68175         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68176         hash_rehash, hash_insert): Use abort rather than assert.
68177
68178 2002-11-22  Bruno Haible  <bruno@clisp.org>
68179
68180         * lib/safe-read.h: Assume C89. Add comments.
68181         (safe_read): Change return type to size_t.
68182         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68183         byte counts > SSIZE_MAX correctly.
68184         * lib/safe-write.h: New file.
68185         * lib/safe-write.c: New file.
68186         * lib/full-read.h: New file.
68187         * lib/full-read.c: New file.
68188         * lib/full-write.h: Assume C89. Add comments.
68189         * lib/full-write.c: Include safe-write.h.
68190         (full_write): Rewritten to use safe_write.
68191         Suggested by Jim Meyering and Paul Eggert.
68192
68193 2002-11-21  Jim Meyering  <jim@meyering.net>
68194
68195         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68196
68197         Merge in changes from the coreutils.
68198
68199         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68200         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68201         <stdint.h>.
68202         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68203         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68204         int.  Work more efficiently if X is the same width as uintmax_t.
68205         Do not compare X to -1, to avoid bogus compiler warning.
68206         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68207         Don't assume that f_frsize and f_bsize are the same type.
68208
68209         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68210         warning on FreeBSD.
68211
68212         * lib/makepath.c (make_path): Restore umask *before* creating the final
68213         component.
68214         (make_path): Minor reformatting.
68215
68216         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68217         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68218         HAVE_MALLOC/HAVE_REALLOC.
68219
68220         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68221         dummy ones.  At least on GNU/Linux systems, `auto' means something
68222         else.
68223         From Michael Stone.
68224
68225 2002-11-21  Bruno Haible  <bruno@clisp.org>
68226
68227         Remove case insensitive option matching.
68228         * lib/argmatch.h (argcasematch): Remove declaration.
68229         (ARGCASEMATCH): Remove macro.
68230         (__xargmatch_internal): Remove case_sensitive argument.
68231         (XARGMATCH): Update.
68232         (XARGCASEMATCH): Remove macro.
68233         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68234         case_sensitive argument.
68235         (argcasematch): Remove function.
68236         (__xargmatch_internal): Remove case_sensitive argument.
68237         (main): Use XARGMATCH instead of XARGCASEMATCH.
68238
68239         * lib/xmalloc.c: Change compile-time error message. Add comment about
68240         required autoconf version.
68241
68242 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68243
68244         Merge argmatch cleanups from Bison.  Assume C89.
68245
68246         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68247         Include stdlib.h, for EXIT_FAILURE.
68248         Always include <string.h>, since we assume C89.
68249         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68250         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68251         Include <stddef.h> instead, since it's all we need for size_t.
68252         (PARAMS): Remove.  All uses removed.
68253         (ARRAY_CARDINALITY): Do not bother to #undef.
68254         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68255         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68256         Remove unnecessary parentheses.
68257         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68258         Insert necessary parentheses.
68259         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68260         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68261
68262 2002-11-19  Bruno Haible  <bruno@clisp.org>
68263
68264         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68265         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68266
68267         * lib/mbswidth.h (PARAMS): Remove macro.
68268         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68269         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68270
68271         * lib/gcd.h (PARAMS): Remove macro.
68272         (gcd): Use ANSI C function declarations.
68273         * lib/gcd.c (gcd): Likewise.
68274
68275 2002-11-15  Bruno Haible  <bruno@clisp.org>
68276
68277         * lib/strcspn.c: Include <stddef.h>.
68278         (strcspn): Use ANSI C function declaration. Change return type to
68279         size_t. Use NULL.
68280         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68281         (strpbrk): Use NULL.
68282         * lib/strpbrk.h (PARAMS): Remove macro.
68283         (strpbrk): Use ANSI C function declaration.
68284         * lib/strstr.c: Don't include <sys/types.h>.
68285         * lib/strstr.h (PARAMS): Remove macro.
68286         (strstr): Use ANSI C function declarations.
68287
68288 2002-11-14  Karl Berry  <karl@gnu.org>
68289
68290         * config/mkinstalldirs: `do' on separate line, instead of
68291         `for var; do'.
68292
68293 2002-11-06  Bruno Haible  <bruno@clisp.org>
68294
68295         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68296         * lib/gcd.c (gcd): Likewise.
68297
68298 2002-11-05  Bruno Haible  <bruno@clisp.org>
68299
68300         * lib/gcd.h: New file, from gettext-0.11.5.
68301         * lib/gcd.c: New file, from gettext-0.11.5.
68302
68303 2002-11-05  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68306         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68307         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68308         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68309
68310         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68311         <libintl.h>.
68312         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68313         <libintl.h>.
68314
68315         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68316         * lib/human.c: Include gettext.h instead of <libintl.h>.
68317         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68318         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68319         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68320         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68321         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68322         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68323         (textdomain): Remove definition.
68324         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68325
68326         * lib/long-options.c: Remove include of <libintl.h> and definition of
68327         _.
68328         * lib/same.c: Remove include of <libintl.h> and definition of _.
68329
68330 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68331
68332         * lib/config.charset: A few additions for Solaris.
68333
68334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68335
68336         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68337         * lib/localcharset.c (locale_charset): Declare as extern "C".
68338
68339 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68340
68341         * lib/config.charset: msdos in uk_UA uses CP1125.
68342
68343 2002-11-04  Bruno Haible  <bruno@clisp.org>
68344
68345         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68346         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68347         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68348         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68349         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68350
68351 2002-11-04  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/localcharset.c (locale_charset): Don't return an empty string.
68354
68355 2002-11-04  Bruno Haible  <bruno@clisp.org>
68356
68357         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68358         aliases.
68359
68360 2002-11-04  Bruno Haible  <bruno@clisp.org>
68361
68362         * lib/config.charset: Update for newest glibc. Add canonical names
68363         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68364
68365 2002-11-04  Bruno Haible  <bruno@clisp.org>
68366
68367         * lib/config.charset: Add support for NetBSD.
68368
68369 2002-11-04  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68372
68373 2002-11-01  Bruno Haible  <bruno@clisp.org>
68374
68375         * configure.in: Add AC_CONFIG_AUX_DIR call.
68376         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68377         test/Makefile.
68378         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68379
68380 2002-09-28  Karl Berry  <karl@gnu.org>
68381
68382         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68383         installed automake until the next release, since changes have been
68384         made.
68385
68386 2002-09-25  Karl Berry  <karl@gnu.org>
68387
68388         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68389         * lib/getopt*: copy from libc/posix.
68390         * lib/gettext.h: copy from gettext.
68391         * lib/.cppi-disable: add strdup.c, gettext.h.
68392
68393 2002-09-25  Karl Berry  <karl@gnu.org>
68394
68395         * config/srclist.txt: enable gettext.h check.
68396         * config/config.{guess,sub}: update from prep.
68397         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68398                 from automake 1.6.3.
68399         See srclist*.
68400
68401 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68402
68403         * regex.c (PATFETCH): Remove the translating fetch.
68404         (PATFETCH_RAW): Rename to PATFETCH.
68405         (set_image_of_range): New fun.
68406         (SET_RANGE_TABLE_WORK_AREA): Use it.
68407         (regex_compile): Don't translate the pattern chars so eagerly.
68408         Only do it when inserting an `exactn' bytecode or when handling
68409         a char-range.
68410         (mutually_exclusive_p): Avoid empty statement.
68411
68412 2002-07-06  Jim Meyering  <meyering@lucent.com>
68413
68414         * m4/README: Don't mention Makefile.am.in.
68415         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68416
68417 2002-07-01  Jim Meyering  <meyering@lucent.com>
68418
68419         * lib/c-stack.c: Include sys/time.h.
68420         From Volker Borchert.
68421
68422 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68423
68424         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68425
68426 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68427
68428         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68429         New macro.  Use it uniformly instead of
68430         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68431         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68432         reported by Vin Shelton.
68433
68434 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68435
68436         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68437         Do not assume SA_SIGINFO behavior.
68438         Bug reported by Jim Meyering on NetBSD 1.5.2.
68439
68440 2002-06-22  Jim Meyering  <meyering@lucent.com>
68441
68442         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68444
68445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68446         now that configure.ac uses AC_GNU_SOURCE.
68447         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68448         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68449
68450         Update to latest tools.  Suggestions from Paul Eggert.
68451         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68452         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68453         * m4/fnmatch.m4: Likewise.
68454         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68455         to AC_HEADER_STDBOOL
68456
68457 2002-06-22  Jim Meyering  <meyering@lucent.com>
68458
68459         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68460         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68461
68462 2002-06-22  Jim Meyering  <meyering@lucent.com>
68463
68464         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68465
68466         * lib/exitfail.c, exitfail.h: Likewise.
68467         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68468
68469         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68470         of fnmatch.h.
68471         (EXTRA_DIST): Add fnmatch_loop.c.
68472         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68473
68474         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68475         * lib/fnmatch.c: Update from diffutils-2.8.2.
68476         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68477         * lib/fnmatch.h: Remove file.
68478
68479 2002-06-21  Jim Meyering  <meyering@lucent.com>
68480
68481         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68482         * m4/mbrtowc.m4: Likewise.
68483
68484         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68485         * m4/mbswidth.m4: Reflect name change:
68486         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68487         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68488
68489         * m4/lib-link.m4: Update from gettext-0.11.2.
68490         * m4/gettext.m4: Likewise.
68491
68492         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68493         From Alfred M. Szmidt.
68494
68495 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68496
68497         * lib/file-type.h: Report an error if neither S_ISREG nor
68498         S_IFREG is defined, instead of using a test specific to glibc
68499         2.2.  This should be safe, since POSIX requires S_ISREG and
68500         Unix Version 7 had S_IFREG.  We don't need to check for
68501         <sys/types.h> since we don't use any symbols that it defines.
68502
68503 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68504
68505         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68506         $@-t, so that each temporary file name is unique and valid in the first
68507         8 characters, for operation under DOS.
68508
68509 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68510
68511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68512
68513 2002-06-15  Jim Meyering  <meyering@lucent.com>
68514
68515         Work even with DJGPP 2.03, which lacks support for symlinks.
68516         From Richard Dawe.
68517         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68518         is defined.
68519         * lib/lchown.c (S_ISLNK): Likewise.
68520
68521 2002-06-15  Jim Meyering  <meyering@lucent.com>
68522
68523         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68524         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68525         have been included before this file.
68526
68527 2002-06-14  Jim Meyering  <meyering@lucent.com>
68528
68529         * lib/file-type.h: Use the version from diffutils-2.8.2.
68530         * lib/file-type.c: Likewise.
68531
68532 2002-06-07  Jim Meyering  <meyering@lucent.com>
68533
68534         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68535         They're needed at least for NetBSD 1.5.2.
68536         ($statxfs_includes): Include those same headers.
68537         ($statxfs_includes): Include sys/vfs.h if available.
68538         ($statxfs_includes): Likewise for sys/statvfs.h.
68539         Check for the following members in both structs statfs and statvfs:
68540         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68541
68542 2002-06-01  Jim Meyering  <meyering@lucent.com>
68543
68544         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68545         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68546
68547 2002-05-28  Jim Meyering  <meyering@lucent.com>
68548
68549         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68550         Reported by Volker Borchert.
68551
68552 2002-05-27  Jim Meyering  <meyering@lucent.com>
68553
68554         Fix a problem seen only on nonconforming systems whereby ls.c's
68555         use of localtime, and then of gettimeofday would cause trouble:
68556         the localtime call used to initialize rpl_gettimeofday's save
68557         mechanism would clobber ls's current local time information so
68558         that in any long listing the first file would always be listed
68559         with date 1970-01-01.  Analysis by Volker Borchert.
68560
68561         * lib/gettimeofday.c (localtime): Undefine.
68562         (rpl_localtime): New function.
68563
68564 2002-05-27  Jim Meyering  <meyering@lucent.com>
68565
68566         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68567         localtime.
68568
68569         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68570         use the replacement function; it wouldn't resolve at link time.
68571         Reported by Volker Borchert.
68572
68573 2002-05-22  Jim Meyering  <meyering@lucent.com>
68574
68575         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68576         file-type.h.
68577         * lib/file-type.h: New file.
68578         * lib/file-type.c (file_type): New file/function.  Extracted from
68579         diffutils.
68580
68581 2002-04-30  Jim Meyering  <meyering@lucent.com>
68582
68583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68584
68585 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68586
68587         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68588
68589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68590
68591         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68592         Do not check for alloca.h (no longer used) or stdbool.h (was never
68593         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68594
68595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68596
68597         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68598
68599 2002-04-29  Jim Meyering  <meyering@lucent.com>
68600
68601         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68602         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68603         Use AC_FUNC_STRNLEN here instead.
68604
68605         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68606         With autoconf-2.53a, it's part of AC_PROG_CC.
68607
68608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68609
68610         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68612
68613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68614
68615         * lib/sig2str.h, lib/sig2str.c: New files.
68616         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68617
68618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68619
68620         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68621         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68622         of 127, since 64 is the largest conceivable number for ancient
68623         nonstandard hosts.
68624         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68625
68626 2002-04-28  Jim Meyering  <meyering@lucent.com>
68627
68628         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68629
68630 2002-04-24  Jim Meyering  <meyering@lucent.com>
68631
68632         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68633         (jm_PREREQ): Use it.
68634
68635         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68636         mach/mach.h fcntl.h.
68637         Check for this function: setlocale.
68638
68639 2002-04-24  Jim Meyering  <meyering@lucent.com>
68640
68641         * lib/gettext.h: New file, from Gettext.
68642         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68643         (libfetish_a_SOURCES): Add gettext.h.
68644
68645 2002-04-16  Jim Meyering  <meyering@lucent.com>
68646
68647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68648         ut_pid, ut_id, ut_exit.
68649
68650 2002-04-16  Jim Meyering  <meyering@lucent.com>
68651
68652         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68653         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68654         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68655
68656 2002-04-12  Jim Meyering  <meyering@lucent.com>
68657
68658         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68659         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68660         existence of the getmntinfo function.  Needed for Darwin 5.3.
68661
68662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68663         This is necessary at least on Darwin 5.3.
68664
68665         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68666         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68667         strnlen.o in the library, and that makes some versions of ranlib
68668         object.
68669
68670 2002-04-12  Jim Meyering  <meyering@lucent.com>
68671
68672         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68673
68674 2002-04-09  Jim Meyering  <meyering@lucent.com>
68675
68676         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68677         to be more precise.  Rather than saying we're checking whether the
68678         function `works', say what we're testing.
68679         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68680         Reported by Bruno Haible.
68681
68682 2002-03-10  Jim Meyering  <meyering@lucent.com>
68683
68684         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68685         Suggestion from Santiago Vila.
68686
68687 2002-03-08  Jim Meyering  <meyering@lucent.com>
68688
68689         * lib/rename.c: Mention that this wrapper is needed also on
68690         mips-dec-ultrix4.4 systems.
68691
68692 2002-03-02  Jim Meyering  <meyering@lucent.com>
68693
68694         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68695         not HAVE_CLOCK_SETTIME.
68696
68697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68698
68699         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68700         Check for clock_settime.
68701
68702 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68703
68704         * lib/nanosleep.h: Rename to....
68705         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68706
68707         * lib/gettime.c: New file.
68708         * lib/settime.c: New file.
68709         * lib/stime.c: Remove.
68710
68711         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68712         timespec.h.  Remove nanosleep.h.
68713
68714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68715
68716         * m4/acl.m4: New file.
68717         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68718         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68719
68720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68721
68722         * lib/acl.c, lib/acl.h: New files.
68723         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68724
68725 2002-02-24  Jim Meyering  <meyering@lucent.com>
68726
68727         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68728         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68729         cause trouble.  Reported by Nelson Beebe.
68730
68731 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68732
68733         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68734         compilers that don't know that xalloc_die never returns.
68735
68736 2002-02-20  Jim Meyering  <meyering@lucent.com>
68737
68738         * lib/getdate.c: Regenerate using bison-1.33.
68739
68740 2002-02-17  Jim Meyering  <meyering@lucent.com>
68741
68742         * config/config.guess (main): Don't use `head -1'; it's no longer
68743         portable. Use `sed 1q' instead.
68744
68745 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68746
68747         * m4/codeset.m4: Upgrade to gettext-0.11.
68748         * m4/gettext.m4: Upgrade to gettext-0.11.
68749         * m4/glibc21.m4: Upgrade to gettext-0.11.
68750         * m4/iconv.m4: Upgrade to gettext-0.11.
68751         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68752         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68753         * m4/lib-ld.m4: New file, from gettext-0.11.
68754         * m4/lib-link.m4: New file, from gettext-0.11.
68755         * m4/lib-prefix.m4: New file, from gettext-0.11.
68756         * m4/progtest.m4: Upgrade to gettext-0.11.
68757
68758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68759
68760         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68761         (jm_PREREQ): Use it.
68762
68763 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68764
68765         * lib/posixver.c, lib/posixver.h: New files.
68766         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68767
68768 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68769             Bruno Haible  <bruno@clisp.org>
68770
68771         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68772         (fwrite_success_callback): New declaration.
68773         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68774         print_unicode_char. Call failure callback instead of error.
68775         (fwrite_success_callback): New function.
68776         (exit_failure_callback): New function.
68777         (fallback_failure_callback): New function.
68778         (print_unicode_char): Call unicode_to_mb.
68779
68780 2002-01-26  Jim Meyering  <meyering@lucent.com>
68781
68782         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68783         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68784
68785 2002-01-26  Jim Meyering  <meyering@lucent.com>
68786
68787         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68788
68789 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68790
68791         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68792
68793 2002-01-22  Jim Meyering  <meyering@lucent.com>
68794
68795         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68796         Otherwise, some versions of automake would omit the rule that makes
68797         Makefile from Makefile.in.
68798
68799 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68800
68801         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68802         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68803         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68804         (memcoll): Set errno to zero if there is no error.
68805
68806         * lib/quotearg.c (quotearg_buffer_restyled):
68807         Fix bug with quoting buffers containing NUL when backslashing escapes.
68808         This bug was exposed by the other changes in this patch.
68809         (quotearg_n_options): New arg ARGSIZE.
68810         All callers changed.
68811         (quoting_options_from_style): New function.
68812         (quotearg_n_style): Use it.
68813         (quotearg_n_style_mem): New function.
68814
68815         * lib/quotearg.h (quotearg_n_style_mem): New function.
68816
68817 2002-01-19  Jim Meyering  <meyering@lucent.com>
68818
68819         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68820         Remove useless quotes: DF_PROG="df".
68821         * m4/strnlen.m4: New file.
68822
68823 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68824
68825         * lib/backupfile.c (ISDIGIT): Comment fix.
68826         * lib/getdate.y (ISDIGIT): Likewise.
68827         * lib/posixtm.c (ISDIGIT, year): Likewise.
68828         * lib/strverscmp.c (ISDIGIT): Likewise.
68829         * lib/userspec.c (ISDIGIT): Likewise.
68830
68831 2002-01-16  Jim Meyering  <meyering@lucent.com>
68832
68833         * lib/getdate.y: Add three semicolons, each just before a closing
68834         brace. Bison (as of version 1.31) no longer papers over that mistake.
68835
68836 2002-01-05  Jim Meyering  <meyering@lucent.com>
68837
68838         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68839
68840 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68841
68842         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68843         not silently exit merely because the output buffer happens to
68844         have nothing pending.
68845
68846 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68847
68848         See the big note in ../ChangeLog.
68849         * lib/human.c (suffixes): Prefer K to k for 1024.
68850         (generate_suffix_backwards): New function.
68851         (human_readable_inexact): Use it.
68852         * lib/xstrtol.c (__xstrtol): If there is no number but there
68853         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68854         Accept 'K' as well as 'k'.
68855
68856 2001-12-15  Jim Meyering  <meyering@lucent.com>
68857
68858         * lib/regex.h (__restrict_arr): Update from libc.
68859
68860         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68861         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68862         (STREQ): Define.
68863
68864 2001-12-14  Jim Meyering  <meyering@lucent.com>
68865
68866         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68867         Suggestion from Bruno Haible.
68868
68869 2001-12-10  Jim Meyering  <meyering@lucent.com>
68870
68871         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68872         xrealloc, Instead, include "xalloc.h".
68873         (initbuffer): Don't cast xmalloc return value to char*.
68874         (readline): Reword comment.
68875         Don't cast xrealloc return value to char*
68876         Return NULL, not 0.
68877
68878 2001-12-09  Jim Meyering  <meyering@lucent.com>
68879
68880         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68881         about `signed and unsigned type in conditional expression'.
68882         * lib/posixtm.c (posix_time_parse): Likewise.
68883
68884         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68885
68886         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68887         to avoid a pedantic warning.
68888
68889         * lib/getstr.c: Don't include assert.h.
68890         (getstr): Remove warning-evoking assertions.
68891         Return -1 if offset parameter is out of bounds.
68892         Change the type of a local from int to size_t.
68893
68894         * lib/strftime.c (my_strftime_localtime_r): Include this function
68895         definition in the `#if ! HAVE_TM_GMTOFF' block.
68896
68897         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68898         Include xalloc.h instead.
68899
68900 2001-12-02  Jim Meyering  <meyering@lucent.com>
68901
68902         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68903         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68904         included.
68905
68906         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68907         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68908
68909 2001-11-30  Akim Demaille  <akim@epita.fr>
68910
68911         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68912         before being defined.
68913
68914 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68915
68916         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68917         First arg is int, not unsigned.
68918         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68919         (SIZE_MAX, UINT_MAX): New macros.
68920         (quotearg_n_options): Abort if N is negative.
68921         Avoid overflow check on hosts where size_t is 64 bits and int
68922         is 32 bits, as overflow is impossible there.
68923         Fix off-by-one typo that caused unnecessary reallocation.
68924
68925 2001-11-27  Jim Meyering  <meyering@lucent.com>
68926
68927         * lib/tempname.c: Merge with version from libc.
68928         * lib/regex.c: Likewise.
68929
68930         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68931         systems for which STDC_HEADERS is 0, it was not included, resulting in
68932         a warning about an integer-to-pointer conversion problem with getenv.
68933         Reported by Volker Borchert.
68934
68935 2001-11-26  Jim Meyering  <meyering@lucent.com>
68936
68937         * lib/gtod.h: Remove file.
68938         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68939         * lib/gettimeofday.c: Don't include gtod.h.
68940         (GTOD_init): Remove function.
68941         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68942         Suggestion from Volker Borchert.
68943
68944 2001-11-23  Jim Meyering  <meyering@lucent.com>
68945
68946         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68947         it.
68948         * lib/hash.c (struct hash_table): Define it here instead.
68949
68950 2001-11-22  Jim Meyering  <meyering@lucent.com>
68951
68952         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68953
68954 2001-11-20  Jim Meyering  <meyering@lucent.com>
68955
68956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68957         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68958
68959 2001-11-19  Jim Meyering  <meyering@lucent.com>
68960
68961         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68962         directory.  Use "conftestXXXXXX" as the template.
68963         Suggestion from Paul Eggert.
68964
68965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68966         immediately, so the test doesn't mistakenly hit the max-open-files
68967         limit.
68968
68969 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68970
68971         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68972         (TEMPORARIES): New macro.
68973         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68974         removes an artificial limitation (e.g. HP-UX 10.20, where
68975         TMP_MAX is 17576).
68976
68977 2001-11-18  Jim Meyering  <meyering@lucent.com>
68978
68979         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68980
68981 2001-11-18  Jim Meyering  <meyering@lucent.com>
68982
68983         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68984         on SunOS 4.
68985
68986         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68987         files will be created before anything else.
68988
68989 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68990
68991         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68992         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68993
68994 2001-11-17  Jim Meyering  <meyering@lucent.com>
68995
68996         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68997         Prompted by a report from Bob Proulx.
68998
68999         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69000         Instead, require UTILS_FUNC_MKSTEMP.
69001
69002 2001-11-17  Jim Meyering  <meyering@lucent.com>
69003
69004         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69005         Now, that's done as part of AC_FUNC_STRTOD.
69006
69007 2001-11-17  Jim Meyering  <meyering@lucent.com>
69008
69009         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69010         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69011         rather than group writable.  Patch by Juan F. Codagnone.
69012
69013         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69014         xrealloc, Instead, include "xalloc.h".
69015
69016         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69017         Remove explicit declarations of xmalloc, xrealloc,
69018         and xstrdup.  Instead, include "xalloc.h".
69019
69020         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69021         unlocked-io.h.
69022         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69023         Likewise.
69024         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69025
69026         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69027         Reported by Padraig Brady.
69028
69029         * lib/mkstemp.c: #undef mkstemp.
69030         Include config.h.
69031         (rpl_mkstemp): Rename from mkstemp.
69032         Protoize.
69033
69034 2001-11-16  Jim Meyering  <meyering@lucent.com>
69035
69036         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69037         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69038         determine the amount of total physical memory, use pstat_getstatic.
69039         HPUX-11 doesn't define _SC_PHYS_PAGES.
69040         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69041         If sysconf couldn't be used to determine the amount of available
69042         physical memory, use both pstat_getstatic and pstat_getdynamic.
69043         Based on a patch from Bob Proulx.
69044
69045 2001-11-10  Jim Meyering  <meyering@lucent.com>
69046
69047         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69048         (jm_PREREQ): Use it.
69049
69050 2001-11-09  Jim Meyering  <meyering@lucent.com>
69051
69052         * m4/jm-macros.m4: Require autoconf-2.52f.
69053         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69054         Use these AC_-prefixed names, not the AM_-prefixed ones.
69055
69056         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69057
69058 2001-11-05  Jim Meyering  <meyering@lucent.com>
69059
69060         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69061
69062 2001-11-04  Jim Meyering  <meyering@lucent.com>
69063
69064         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69065         $DEFS.
69066
69067 2001-11-03  Jim Meyering  <meyering@lucent.com>
69068
69069         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69070         of AC_DEFUN.
69071
69072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69073         know the name of the variable in the macro definition.
69074
69075 2001-11-03  Jim Meyering  <meyering@lucent.com>
69076
69077         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69078         in argmatch_to_argument call.
69079
69080         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69081         argument.
69082
69083         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69084         e.g., a fault due to an attempt to free a NULL pointer.
69085
69086 2001-11-01  Jim Meyering  <meyering@lucent.com>
69087
69088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69089         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69090
69091 2001-11-01  Jim Meyering  <meyering@lucent.com>
69092
69093         * lib/dirfd.c, lib/dirfd.h: New files.
69094         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69095
69096         * lib/hash.c (hash_print) [TESTING]: Clean up.
69097
69098 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69099
69100         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69101         to avoid a warning if -Wall.
69102
69103 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69104
69105         * README: New file
69106         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69107         (per RMS's instructions, this is now the canonical source)
69108         * lgpl/, gpl/: New directories.
69109
69110 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69111
69112         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69113
69114 2001-10-21  Jim Meyering  <meyering@lucent.com>
69115
69116         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69117         this code would end up calling gettext even in packages built
69118         with --disable-nls.
69119         * lib/getopt.c (_): Likewise.
69120         * lib/regex.c (_): Likewise.
69121
69122 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69123
69124         * m4/error.m4 (jm_PREREQ_ERROR):
69125         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69126         AC_FUNC_STRERROR_R does that.
69127         Check for strerror declaration.
69128
69129         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69130         are supposed to have them these days.
69131         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69132         Merge changes from latest Autoconf CVS.
69133         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69134         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69135         POSIX decided to standardize on the int flavor of strerror_r.
69136
69137 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69138
69139         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69140         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69141         Use strerror_r that is only a macro, even if it is not a function.
69142         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69143         (private_strerror): Use prototypes, not old-style function definition.
69144         (print_errno_message): New function.
69145         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69146         char*-flavored one.
69147         (error_tail, error, error_at_line): Use it.
69148
69149 2001-10-11  Jim Meyering  <meyering@lucent.com>
69150
69151         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69152         and quote_n (1, ... to avoid clobbering a buffer.
69153
69154 2001-10-05  Jim Meyering  <meyering@lucent.com>
69155
69156         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69157         hash-pjw.h.
69158         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69159         * lib/hash-pjw.h: New file.
69160
69161 2001-09-30  Jim Meyering  <meyering@lucent.com>
69162
69163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69164         `struct fsstat' has the `f_fstypename' member.
69165         Use that to define FS_TYPE, which is now used to make
69166         the getfsstat link test tighter.
69167
69168 2001-09-30  Jim Meyering  <meyering@lucent.com>
69169
69170         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69171         Include <sys/ucred.h>, for Apple Darwin.
69172         Include sys/mount.h and sys/fs_types.h only if available.
69173         (FS_TYPE): Define.
69174         (read_filesystem_list): Use FS_TYPE.
69175
69176 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69177
69178         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69179         a boolean context.
69180
69181 2001-09-29  Jim Meyering  <meyering@lucent.com>
69182
69183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69184         [one-argument getmntent function]): Include stdio.h before mntent.h.
69185         SunOS 4.1.x needs it for the declaration of `FILE'.
69186         Patch by Volker Borchert.
69187
69188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69189         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69190         sys/fs_types.h, and make the link-test for getfsstat guard #include
69191         directives with appropriate #if HAVE_*_H tests so that we can
69192         detect getfsstat on Apple Darwin1.3.7 systems.
69193         Reported by Nelson Beebe.
69194         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69195
69196 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69197
69198         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69199         #defines strtoimax.  Also treat the other strto* functions
69200         like strtoimax.
69201
69202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69203         Check for strtoul and strtoumax,
69204         as those declarations are made even in the signed case.
69205         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69206         Likewise, for strtol and strtoimax.
69207
69208 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69209
69210         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69211         #defines strtoimax.  Also treat the other strto* functions
69212         like strtoimax.
69213
69214         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69215         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69216         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69217
69218 2001-09-26  Jim Meyering  <meyering@lucent.com>
69219
69220         Most macros in unlocked-io.h had the wrong number of arguments.
69221         * lib/gen-uio: New script.
69222         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69223         * lib/unlocked-io.hin: Remove file.
69224         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69225         rather than trying to embed it here.
69226         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69227         Reported by Padraig Brady.
69228
69229 2001-09-25  Volker Borchert  <bt@teknon.de>
69230
69231         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69232         `result'.
69233
69234 2001-09-24  Jim Meyering  <meyering@lucent.com>
69235
69236         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69237
69238 2001-09-23  Jim Meyering  <meyering@lucent.com>
69239
69240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69241         instead of the mere test for existence of mntent.h.  The latter
69242         would get a false-positive on AIX 3.4 systems.
69243         In the outer getmntent if-block, don't die if neither of the getmntent
69244         tests succeeds.  Instead, just fall through and continue with the
69245         remaining tests.
69246
69247 2001-09-23  Jim Meyering  <meyering@lucent.com>
69248
69249         * lib/mountlist.c: Remove useless parentheses in #if directives.
69250         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69251         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69252
69253 2001-09-22  Jim Meyering  <meyering@lucent.com>
69254
69255         * m4/gettext.m4: New file.  From gettext.
69256         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69257         * m4/progtest.m4: Likewise
69258         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69259         * m4/glibc21.m4: Likewise.
69260
69261         * m4/libintl.m4: Remove.  No longer used.
69262
69263 2001-09-22  Jim Meyering  <meyering@lucent.com>
69264
69265         * lib/localcharset.c: Update from latest gettext.
69266         * lib/config.charset: Likewise.
69267
69268 2001-09-20  Jim Meyering  <meyering@lucent.com>
69269
69270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69271         strtoimax.
69272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69273         strtoumax.
69274
69275 2001-09-20  Jim Meyering  <meyering@lucent.com>
69276
69277         * lib/xstrtol.c (strtoimax): Guard declaration with
69278         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69279         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69280         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69281         (strtoumax): Likewise, for completeness (it wasn't necessary).
69282
69283 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69284
69285         * lib/strtoimax.c (HAVE_LONG_LONG):
69286         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69287         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69288         to work around bug in IBM C compiler.
69289
69290 2001-09-17  Jim Meyering  <meyering@lucent.com>
69291
69292         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69293         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69294         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69295         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69296         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69297         whenever the right hand side need not be expanded by the shell.
69298
69299 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69300
69301         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69302         library.  It's not correct, as some older glibcs are buggy.
69303         fnmatch wasn't fixed until glibc 2.2.
69304
69305         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69306         special shell magic here.
69307
69308 2001-09-16  Jim Meyering  <meyering@lucent.com>
69309
69310         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69311         * m4/jm-macros.m4: Require it.
69312
69313 2001-09-16  Jim Meyering  <meyering@lucent.com>
69314
69315         * lib/mkdir.c: New file.
69316
69317 2001-09-15  Jim Meyering  <meyering@lucent.com>
69318
69319         * m4/jm-macros.m4: Check for help2man.
69320
69321 2001-09-11  Jim Meyering  <meyering@lucent.com>
69322
69323         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69324         The body, by Paul Eggert, was moved here from configure.in.
69325         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69326
69327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69328
69329         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69330         (jm_PREREQ): Use it.
69331
69332 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69333
69334         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69335         Use ssize_t, not int, to store result of readlink.
69336         Check for ssize_t overflow as well as size_t overflow,
69337         as POSIX says the result of readlink is implementation-defined
69338         when ssize_t overflows.
69339         Remove unnecessary cast to char*.
69340         Use free+malloc instead of realloc, as the storage doesn't need
69341         to be preserved and it's clearer and can be more efficient that way.
69342         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69343         * lib/xreadlink.h (xreadlink): Update prototype.
69344
69345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69346
69347         * lib/xgetcwd.c: Revert some of the previous change; intead,
69348         fix the HAVE_GETCWD_NULL code to behave more like the
69349         !HAVE_GETCWD_NULL code used to.
69350
69351         Include "xalloc.h".
69352         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69353         invoke xalloc_die.
69354
69355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69356
69357         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69358         sys/param.h, as pathmax.h includes them.
69359
69360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69361
69362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69363         (jm_PREREQ_XGETCWD): New macro.
69364
69365         * m4/getcwd.m4: New file.
69366
69367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69368
69369         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69370         like the HAVE_GETCWD_NULL code.
69371         Include pathmax.h if not HAVE_GETCWD.
69372         Do not include xalloc.h.
69373         (INITIAL_BUFFER_SIZE): New symbol.
69374         Do not use xmalloc / xrealloc, since the caller is responsible for
69375         handling errors.  Preserve errno around `free' during failure.
69376         Do not overrun buffer when using getwd.
69377
69378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69379
69380         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69381         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69382         getcwd (NULL, 0).
69383
69384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69385
69386         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69387         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69388         spotted by Jim Meyering.
69389
69390 2001-09-03  Jim Meyering  <meyering@lucent.com>
69391
69392         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69393         failure.
69394
69395 2001-09-02  Jim Meyering  <meyering@lucent.com>
69396
69397         * lib/error.c: Update from GNU libc.
69398
69399 2001-09-01  Jim Meyering  <meyering@lucent.com>
69400
69401         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69402         Used by df.
69403
69404 2001-09-01  Jim Meyering  <meyering@lucent.com>
69405
69406         * lib/xreadlink.c: New file.
69407         * lib/xreadlink.h: New file.
69408         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69409         xreadlink.h.
69410
69411         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69412         doesn't conflict with sparc Solaris 7's definition in
69413         /usr/include/sys/int_types.h.
69414
69415         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69416         files.
69417         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69418         and strncasecmp as r-values.  Unixware didn't have declarations.
69419
69420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69421
69422         * lib/xstrtol.h: Add copyright notice.
69423         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69424         LONGINT_INVALID_SUFFIX_CHAR.
69425
69426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69427
69428         * lib/xstrtol.c (strtoimax): New decl.
69429
69430 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69431
69432         * lib/xgetcwd.c: Don't include pathmax.h.
69433         Include stdlib.h and unistd.h if available.
69434         Include xalloc.h.
69435         (xmalloc, xstrdup, free): Remove decls.
69436         (xgetcwd): Don't assume sizes fit in unsigned.
69437         Check for overflow when computing sizes.
69438         Simplify reallocation code.
69439
69440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69441
69442         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69443         a directory's st_size can have an arbitrary value, so the old
69444         usage could waste an arbitrary amount of memory.  All uses
69445         changed.
69446         * lib/savedir.h: Update prototype.
69447
69448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69449
69450         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69451
69452         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69453         old strtoimax.c.
69454
69455         Also, make the following further changes to make this file's
69456         configuration more similar to that of strtol.c:
69457         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69458         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69459         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69460         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69461         changed to signed values.
69462
69463         And make the following changes as well:
69464         Fix copyright notice, as 1999 was missing.
69465         (verify): New macro.
69466         (strtoimax): Check sizes at compile-time, not run-time.
69467         Prefer strtol to strtoll if both work.
69468         (main): Remove; it was not that useful and was a pain to maintain.
69469
69470         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69471
69472 2001-08-31  Jim Meyering  <meyering@lucent.com>
69473
69474         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69475         Use an initial, malloc'd, buffer of length 128 rather than
69476         a statically allocated one of length 1024.
69477
69478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69479
69480         Simplify code, partly by assuming autoconf 2.52 semantics.
69481
69482         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69483
69484         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69485         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69486         All uses removed.
69487         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69488         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69489         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69490         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69491         jm_AC_HEADER_INTTYPES_H.
69492         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69493
69494         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69495
69496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69497         Quote first arg of AC_DEFUN.
69498         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69499         since they are needed to parse the include file even if we need
69500         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69502         but with opposite signedness.
69503
69504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69505
69506         Merge 'exclude' changes from tar 1.13.22.
69507         This fixes one or two unlikely storage allocation overflow bugs,
69508         but doesn't change user-visible behavior otherwise.
69509
69510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69511
69512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69513         (jm_PREREQ_EXCLUDE): New macro.
69514
69515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69516
69517         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69518         tm to be declared.
69519
69520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69521
69522         * lib/hash.c: Remove '2001' from copyright notice.
69523
69524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69525
69526         * lib/full-write.h: New file.
69527         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69528         * lib/full-write.c: Correct credits, as cccp.c no longer
69529         exists and anyway it was so heavily changed from the old cccp
69530         code as to be unrecognizable.  Include full-write.h.
69531         (full_write) Return size_t, with short writes meaning failure.
69532         All callers changed.  This fixes a bug with large buffers
69533         on 64-bit hosts.
69534         * lib/utime.c: Include full-write.h.
69535
69536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69537
69538         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69539         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69540         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69541         Include if available.
69542         (<xalloc.h>): Include
69543         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69544         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69545         collide with FNM macros.
69546         (struct patopts): New struct.
69547         (struct exclude): Use it, as exclude patterns now come with options.
69548         (new_exclude): Support above changes.
69549         (new_exclude, add_exclude_file):
69550         Initial size must now be a power of two to simplify overflow checking.
69551         (free_exclude, fnmatch_no_wildcards): New function.
69552         (excluded_filename): No longer requires options arg, as the options
69553         are determined by add_exclude.  Now returns bool, not int.
69554         (excluded_filename, add_exclude):
69555         Add support for the fancy new exclusion options.
69556         (add_exclude, add_exclude_file): Now takes int options arg.
69557         Check for arithmetic overflow when computing sizes.
69558         (add_exclude_file): xrealloc might modify errno, so don't
69559         realloc until after errno might be used.
69560
69561         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69562         New macros.
69563         (free_exclude): New decl.
69564         (add_exclude, add_exclude_file): Now takes int options arg.
69565         (excluded_filename): No longer requires options arg, as the options
69566         are determined by add_exclude.  Now returns bool, not int.
69567
69568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69569
69570         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69571
69572 2001-08-27  Jim Meyering  <meyering@lucent.com>
69573
69574         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69575
69576         * lib/version-etc.c (N_): Remove definition.
69577         Revert most of last change.
69578         Instead, simply don't mark the `Copyright...' string for translation.
69579         Based on advice from Paul Eggert.
69580
69581         * lib/strtoxmax.c: Tweak comment.
69582
69583 2001-08-26  Jim Meyering  <meyering@lucent.com>
69584
69585         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69586
69587         * m4/xstrtoimax.m4: New file.
69588         * m4/xstrtoumax.m4: Add comments explaining why we
69589         AC_REPLACE_FUNCS(strtol).
69590
69591 2001-08-26  Jim Meyering  <meyering@lucent.com>
69592
69593         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69594         of copyright with `%s' so translators don't get an untranslated
69595         message in 2002.
69596         (COPYRIGHT_YEAR): Define.
69597         (version_etc): Use fprintf rather than fputs.
69598         Suggestion from Ulrich Drepper.
69599
69600         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69601
69602         * lib/strtoll.c: New file, from GNU libc.
69603         * lib/xstrtoimax.c: New file.
69604
69605         * lib/xstrtol.h: Add xstrtoimax.
69606         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69607         * lib/strtoimax.c: New file.  Likewise, but first define
69608         STRTOUXMAX_SIGNED.
69609
69610         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69611         ...
69612         * lib/strtoxmax.c: ... then renamed to this.
69613
69614 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69615
69616         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69617         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69618         (jm_AC_TYPE_INTMAX_T): New macro.
69619         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69620
69621         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69622
69623         * m4/longlong.m4: Renamed from ulonglong.m4.
69624         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69625         * m4/uintmax_t.m4: Removed.
69626
69627 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69628
69629         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69630         Port to Solaris 8, where 'sed' requires a space after the 'r'
69631         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69632         Redirect output to $tmp just once.
69633
69634 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69635
69636         * lib/addext.c (<errno.h>): Include.
69637         (errno): Declare if not defined.
69638         (addext): Work correctly when pathconf returns -1 and leaves
69639         errno alone because there is no limit.  Also, work even if
69640         pathconf returns a value greater than SIZE_MAX.
69641
69642 2001-08-12  Jim Meyering  <meyering@lucent.com>
69643
69644         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69645         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69646         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69647         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69648         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69649         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69650         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69651         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69652         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69653         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69654         utime.m4, utimes.m4, xstrtoumax.m4:
69655         Quote the first argument in each use of AC_DEFUN.
69656
69657 2001-08-12  Jim Meyering  <meyering@lucent.com>
69658
69659         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69660         Simply `return getcwd (NULL, 0);'.
69661         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69662         Use 1300 as initial value for length, not PATH_MAX.
69663
69664         * lib/pathmax.h: Clean up cpp syntax.
69665
69666 2001-08-12  Jim Meyering  <meyering@lucent.com>
69667
69668         * lib/gettimeofday.c: New file.
69669         * lib/gtod.h: New file.
69670         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69671
69672 2001-08-05  Jim Meyering  <meyering@lucent.com>
69673
69674         * m4/jm-macros.m4: Require autoconf-2.52.
69675
69676 2001-08-04  Jim Meyering  <meyering@lucent.com>
69677
69678         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69679         stmt, to get in sync with glibc.
69680
69681 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69682
69683         The following changes are from gettext 0.10.39 as maintained by
69684         Bruno Haible.
69685
69686         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69687         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69688         with inverted sense.  All uses changed.
69689
69690         * lib/mbswidth.c: Don't include <limits.h>.
69691         Include <stdlib.h> and <string.h> unconditionally.
69692         (iswcntrl, mbsinit, ISCNTRL): New macros.
69693         (mbsnwidth): Use K&R style function declarations.
69694         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69695         can optimize it when MB_CUR_MAX == 1.
69696         The width of control characters is zero, not 1.
69697
69698 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69699
69700         The following changes are from gettext 0.10.39 as maintained by
69701         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69702
69703         * m4/codeset.m4: Upgrade to serial AM1.
69704         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69705         all uses changed.  Quote first arg of AC_DEFUN.
69706         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69707
69708         * m4/iconv.m4: Upgrade to serial AM2.
69709         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69710         Add --with-libconv-prefix.
69711         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69712         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69713         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69714         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69715         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69716
69717         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69718         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69719         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69720         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69721         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69722         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69724         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69725         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69726
69727         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69728         string.h any more.
69729
69730         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69731         not the default value.
69732
69733         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69734         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69735         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69736         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69737         Also check for iswcntrl, used for wcwidth fallback.
69738         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69739         to Autoconf 2.13.
69740
69741 2001-08-03  Jim Meyering  <meyering@lucent.com>
69742
69743         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69744         as it was in the original.  Reported by Paul Eggert.
69745
69746 2001-07-16  Jim Meyering  <meyering@lucent.com>
69747
69748         * m4/gettimeofday.m4: New file.
69749         Prompted by a report from Bernhard Baehr.
69750
69751 2001-07-15  Jim Meyering  <meyering@lucent.com>
69752
69753         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69754         stuff. Now it's in ../Makefile.cfg.
69755
69756 2001-07-15  Jim Meyering  <meyering@lucent.com>
69757
69758         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69759         (BUILT_SOURCES): Add unlocked-io.h.
69760         (io_functions): Define.
69761         (unlocked-io.h): New rule.
69762         (DISTCLEANFILES): Add unlocked-io.h.
69763         (all-local): Depend on unlocked-io.h, to ensure it is created.
69764
69765         * lib/unlocked-io.hin: New file
69766
69767         * lib/regex.c: Update from glibc.
69768
69769 2001-07-05  Jim Meyering  <meyering@lucent.com>
69770
69771         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69772         recommendation.
69773         (libfetish_a_SOURCES): Put all .h files here instead.
69774         Remove a thus-exposed (better checks in automake) duplicate and
69775         two unnecessary .h files.
69776
69777 2001-07-04  Jim Meyering  <meyering@lucent.com>
69778
69779         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69780         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69781         distcheck failure.
69782
69783 2001-07-02  Jim Meyering  <meyering@lucent.com>
69784
69785         The following changes were prompted by suggestions from Bruno Haible.
69786
69787         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69788         is now generated.
69789         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69790         definition of EXTRA_DIST.
69791         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69792         ensure that the generated file is created/updated whenever the list
69793         of $(unlocked_functions) is changed.
69794         (jm-glibc-io.m4): New rule.
69795         (unlocked-io.h): New rule -- currently unused.
69796
69797 2001-06-24  Jim Meyering  <meyering@lucent.com>
69798
69799         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69800         unmatched right bracket, rather than kludging it with an extra,
69801         falsely-matching quote in a comment.  Patch by Akim Demaille.
69802
69803 2001-06-11  Jim Meyering  <meyering@lucent.com>
69804
69805         * lib/regex.c: Update from GNU libc.
69806
69807 2001-05-27  Jim Meyering  <meyering@lucent.com>
69808
69809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69810         Check for ut_type in struct utmp.
69811
69812 2001-05-27  Jim Meyering  <meyering@lucent.com>
69813
69814         * lib/readutmp.h (UT_TYPE): Define.
69815
69816 2001-05-24  Jim Meyering  <meyering@lucent.com>
69817
69818         * lib/argmatch.c: Include "quote.h".
69819         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69820         quote function.  Reported by Göran Uddeborg.
69821
69822 2001-05-22  Jim Meyering  <meyering@lucent.com>
69823
69824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69825         now that we use the package-supplied version unconditionally.
69826         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69827
69828 2001-05-21  Jim Meyering  <meyering@lucent.com>
69829
69830         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69831         shell syntax errors.
69832
69833 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69834
69835         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69836
69837 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69838
69839         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69840         Don't bother to check library strftime, since
69841         we'll be using our own my_strftime function anyway.
69842         Define my_strftime instead of strftime.
69843
69844 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69845
69846         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69847         which is not yet declared.
69848
69849 2001-05-15  Jim Meyering  <meyering@lucent.com>
69850
69851         * m4/regex.m4: Use proper quoting so brackets appear in the test
69852         program.
69853         Reported by, and with help from, Bruno Haible.
69854
69855 2001-05-13  Jim Meyering  <meyering@lucent.com>
69856
69857         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69858         undefined.
69859
69860 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69861
69862         dirname code cleanup.  base_name now behaves more compatibly
69863         with POSIX basename when given file names that have trailing
69864         slashes, and similarly for dir_name.  Add new primitives
69865         base_len and dir_len.  Put the directory-name-related decls
69866         into dirname.h.
69867
69868         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69869         * lib/backupfile.c (base_name): Likewise.
69870         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69871         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69872         * lib/makepath.c (strip_trailing_slashes): Likewise.
69873         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69874         ISSLASH): Likewise.
69875         * lib/rename.c (strip_trailing_slashes): Likewise.
69876         * lib/same.c (base_name): Likewise.
69877         * lib/stripslash.c (ISSLASH): Likewise.
69878
69879         * lib/addext.c: Include <dirname.h> after size_t is defined.
69880         * lib/backupfile.c: Likewise.
69881
69882         * lib/addext.c (addext): Use base_len to trim redundant
69883         trailing slashes instead of doing it ourselves.
69884         But do not trim the last slash if it is not redundant.
69885
69886         * lib/backupfile.c (find_backup_file_name,
69887         max_backup_version): Use base_len instead of rolling it ourselves.
69888         Handle the case of "" and (on DOS) "C:" correctly.
69889
69890         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69891         needed. Include <string.h>, <dirname.h>.
69892         (base_name): Allow file names ending in slashes, other than names
69893         that are all slashes.  In this case, return the basename followed
69894         by the slashes.  This is more general, and can be used in places
69895         where the original base_name purposely had an assertion failure.
69896         (base_len): New function.
69897
69898         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69899         Do not include <assert.h>; no longer needed.
69900         Include xalloc.h.
69901         (memrchr): Remove decl.
69902         (dir_name_r): Remove.
69903         (dir_len): Renamed from dirlen.  All callers changed.
69904         Rewrite in terms of base_name, for simplicity and consistency.
69905         (dir_name): Never return NULL.  All callers changed.
69906         Do not include <stdlib.h> in test program; no longer needed.
69907         return 0; is fine for test program.
69908
69909         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69910         New macros.
69911         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69912
69913         * lib/path-concat.c (path_concat): Use base_len to compute
69914         base length, not strlen; this means we cannot rely on memcpy
69915         to null-terminate.
69916
69917         * lib/same.c (STREQ): Remove.
69918         (same_name): Handle the case where the basename ends in trailing '/'.
69919
69920         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69921         a slash was stripped.  Do not strip the last slash after a
69922         file system prefix.
69923
69924 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69925
69926         * lib/Makefile.am (libfetish_a_SOURCES):
69927         Add strftime.c, since we now compile it on all hosts.
69928
69929         * lib/strftime.c (my_strftime):
69930         Define to nstrftime if emacs, but only if my_strftime is not defined.
69931         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69932         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69933         Add one more extra argument: a nanoseconds value.
69934         All uses changed.
69935         (ns): New macro.
69936         (my_strftime function): Add %N format.
69937         (emacs_strftimeu): Renamed from emacs_strftime,
69938         with extra ut argument.
69939
69940 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69941
69942         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69943
69944 2001-04-21  Jim Meyering  <meyering@lucent.com>
69945
69946         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69947         doesn't interfere.
69948
69949 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69950
69951         * m4/ftruncate.m4: Check for chsize.
69952         Link with ftruncate.o unconditionally if ftruncate is missing.
69953         This was required when cross-compiling to i586-mingw32msvc.
69954
69955 2001-04-08  Jim Meyering  <meyering@lucent.com>
69956
69957         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69958         recomputed; that's necessary when the offset spans a DST transition.
69959         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69960
69961 2001-04-02  Jim Meyering  <meyering@lucent.com>
69962
69963         * lib/regex.h, regex.c: Update from GNU libc.
69964
69965 2001-03-24  Jim Meyering  <meyering@lucent.com>
69966
69967         * m4/jm-macros.m4: Require autoconf-2.49d.
69968
69969 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69970
69971         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69972
69973 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69974
69975         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69976
69977 2001-03-17  Jim Meyering  <meyering@lucent.com>
69978
69979         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69980         now that the version in autoconf is equivalent.
69981         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69982
69983         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69984         Suggestion from Akim Demaille.
69985
69986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69987         (jm_PREREQ_TEMPNAME): New function.
69988
69989 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69990
69991         * lib/tempname.c (uint64_t): Define to uintmax_t if
69992         not defined, and if UINT64_MAX is not defined.
69993         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69994         Reported by John David Anglin.
69995
69996 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69997
69998         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69999         resolve alias if codeset is empty.
70000         * lib/config.charset (BeOS): Use wildcard syntax.
70001
70002 2001-03-13  Jim Meyering  <meyering@lucent.com>
70003
70004         * lib/path-concat.c (path_concat)
70005         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70006         concatenating e.g., `C:' and `foo'.
70007         From Bruno Haible.
70008
70009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70010
70011         * lib/localcharset.c (locale_charset): Don't use
70012         setlocale(LC_CTYPE,NULL). Don't return NULL.
70013         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70014
70015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70016
70017         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70018         support for DOS/DJGPP.
70019
70020 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70021
70022         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70023         lacks mkstemp.  Compile our own tempname.c if we compile our own
70024         mkstemp.c, as mkstemp relies on tempname.
70025
70026 2001-03-01  Jim Meyering  <meyering@lucent.com>
70027
70028         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70029         AH_VERBATIM really does output its argument verbatim.
70030
70031 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70032
70033         * lib/Makefile.am (libfetish_a_SOURCES):
70034         Add dup-safer.c, fopen-safer.c.
70035         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70036
70037         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70038         * lib/unistd-safer.h: New files.
70039
70040 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70041
70042         The mkstemp replacement is taken from glibc 2.2.2, with some
70043         portability fixes for use outside glibc, as follows:
70044
70045         * lib/tempname.c (struct_stat64): New macro.
70046         (direxists, __gen_tempname): Use it.
70047         This avoids a portability problem with Solaris 8.
70048
70049         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70050         (<stddef.h>, <stdint.h>, <string.h>):
70051         Include only if STDC_HEADERS || _LIBC.
70052         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70053         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70054         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70055         (__set_errno): Define this macro if <errno.h> doesn't.
70056         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70057         Define these macros if <stdio.h> doesn't.
70058         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70059         Define these macros if <sys/stat.h>
70060         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70061         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70062         __xstat64): Define if not _LIBC.
70063         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70064         (__gen_tempname): Invoke gettimeofday only if
70065         HAVE_GETTIMEOFDAY || _LIBC;
70066         otherwise, fall back on plain "time".
70067         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70068
70069         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70070
70071         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70072
70073 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70074
70075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70076
70077 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70078
70079         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70081         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70083
70084 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70085
70086         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70087         Remove workaround macros for hosts that have mbrtowc but not
70088         mbstate_t, as we now insist on proper declarations for both
70089         before using mbrtowc.
70090
70091 2001-02-17  Jim Meyering  <meyering@lucent.com>
70092
70093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70094         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70095         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70096         UnixWare 7.1.1.
70097
70098         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70099         rather than AC_CACHE_VAL.
70100
70101 2001-02-17  Jim Meyering  <meyering@lucent.com>
70102
70103         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70104         around included file name.
70105
70106         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70107
70108         * lib/strftime.c: Update from GNU libc (the only changes were to
70109         comments).
70110
70111 2001-02-17  Jim Meyering  <meyering@lucent.com>
70112
70113         * lib/regex.c: Update from libc.
70114
70115 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70116
70117         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70118         clash.
70119
70120 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70121
70122         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70123         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70124         Reported by Mark Hounschell via Paul Eggert.
70125
70126 2001-02-07  Jim Meyering  <meyering@lucent.com>
70127
70128         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70129
70130 2001-02-05  Jim Meyering  <meyering@lucent.com>
70131
70132         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70133         it includes the patch required for `large file' support with at least
70134         HP-UX's 10.20 /bin/cc.
70135
70136 2001-02-03  Jim Meyering  <meyering@lucent.com>
70137
70138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70139         AS_IF, now that it works once again (mysteriously).
70140         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70141
70142 2001-01-30  Jim Meyering  <meyering@lucent.com>
70143
70144         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70145         * m4/chown.m4: Rename conftestchown to conftest.chown.
70146         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70147         s/conftestdir2/conftest.d2/.
70148         * m4/utimes.m4: s/conftestdata/conftest.data/
70149         Inspired by Pavel Roskin's change in autoconf.
70150
70151 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70152
70153         * lib/config.charset: Update for FreeBSD 4.2.
70154
70155 2001-01-27  Jim Meyering  <meyering@lucent.com>
70156
70157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70158         a use of AS_IF.
70159         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70160
70161 2001-01-26  Jim Meyering  <meyering@lucent.com>
70162
70163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70164         quotearg.c includes it.
70165
70166 2001-01-26  Jim Meyering  <meyering@lucent.com>
70167
70168         * lib/quotearg.c: Include stddef.h.
70169         * lib/quote.c: Include stddef.h.
70170         Reported by Axel Kittenberger.
70171
70172         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70173         line in double quotes so that it evokes a better diagnostic.
70174         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70175         Reported by Axel Kittenberger.
70176
70177 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70178
70179         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70180         as if it was a `charset'.
70181
70182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70183
70184         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70185         has const.
70186
70187 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70188
70189         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70190         to avoid a warning.  Add back 'const' to inptr.
70191
70192 2001-01-20  Jim Meyering  <meyering@lucent.com>
70193
70194         Be sure that headers are checked before used in code compiled
70195         for the type checks.
70196         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70197         In place of that, invoke jm_CHECK_ALL_TYPES.
70198         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70199         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70200         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70201         The check for ssize_t was mistakenly run before the test for unistd.h.
70202
70203         The configure-time check for stdbool.h was missing.
70204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70205         (jm_PREREQ_HASH): New function.
70206
70207 2001-01-17  Jim Meyering  <meyering@lucent.com>
70208
70209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70210         for autoconf-2.49c.
70211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70212
70213 2001-01-16  Jim Meyering  <meyering@lucent.com>
70214
70215         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70216         From Bruno Haible.
70217
70218 2001-01-14  Jim Meyering  <meyering@lucent.com>
70219
70220         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70221         foo and bar.  Create conftestdir/ in the script, not in the C code.
70222         Remove directories in the script, not in the C code.
70223         Remove conftestdir{,2} before trying to create the directory.
70224         Make the entire configure script fail if the mkdir fails.
70225
70226 2001-01-14  Jim Meyering  <meyering@lucent.com>
70227
70228         * lib/rename.c: New file.  From Volker Borchert.
70229         Include stdlib.h, string.h or strings.h, and xalloc.h.
70230         Use strip_trailing_slashes rather than open-coding it.
70231
70232 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70233
70234         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70235
70236 2001-01-03  Jim Meyering  <meyering@lucent.com>
70237
70238         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70239         of local `inptr' to avoid warning with some system declarations of
70240         iconv.
70241
70242 2001-01-02  Volker Borchert  <bt@teknon.de>
70243
70244         * m4/rename.m4: New file.
70245         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70246
70247 2001-01-01  Jim Meyering  <meyering@lucent.com>
70248
70249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70250         even on systems with utmpx.h.  It's necessary for the declaration of
70251         utmp's ut_user member.  Reported by Andreas Jaeger.
70252
70253         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70254         available. They are required for the declarations of getgrgid and
70255         getpwuid resp.
70256         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70257         Reported by Andreas Jaeger.
70258
70259 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70260
70261         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70262         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70263         so `make install' also works in VPATH builds.
70264
70265 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70266
70267         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70268         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70269         can be used in subdirectories.
70270
70271 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70272
70273         * lib/modechange.c: Do not assume that mode_t uses the
70274         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70275         the other-execute bit of FOO even if S_IXOTH != 1.
70276
70277         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70278         WOTH, XOTH, ALLM): New macros.
70279         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70280          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70281         Use them.
70282         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70283         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70284         (mode_compile):
70285         No need to use uintmax_t; unsigned long is long enough.
70286         Don't bother to get suffix since we don't use it.
70287
70288 2000-12-26  Jim Meyering  <meyering@lucent.com>
70289
70290         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70291         better with autoheader.
70292
70293 2000-12-24  Jim Meyering  <meyering@lucent.com>
70294
70295         * lib/hash.c (is_prime): Return explicit boolean values.
70296         (hash_get_first): Return NULL to appease Irix5.6's 89.
70297         Reported by Nelson Beebe.
70298
70299 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70300
70301         * lib/localcharset.c (locale_charset): Add support for Win32.
70302
70303 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70304
70305         * lib/physmem.h, lib/physmem.c: New files.
70306
70307         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70308         (noinst_HEADERS): Add physmem.h.
70309
70310         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70311         't' for compatibility with Solaris 8 sort.
70312
70313 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70314
70315         * lib/config.charset: Add support for BeOS.
70316
70317 2000-12-17  Jim Meyering  <meyering@lucent.com>
70318
70319         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70320         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70321
70322 2000-12-16  Jim Meyering  <meyering@lucent.com>
70323
70324         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70325         N and M) would have treated it like `chown N:N FILE'.
70326
70327         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70328
70329 2000-12-16  Jim Meyering  <meyering@lucent.com>
70330
70331         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70332         SHELLS_FILE to a file name that's useful on djgpp systems.
70333         Include stdlib.h.
70334         (ADDITIONAL_DEFAULT_SHELLS): Define.
70335         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70336         Based mostly on a patch from Prashant TR.
70337
70338 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70339
70340         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70341         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70342         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70343
70344 2000-12-08  Andreas Schwab  <schwab@suse.de>
70345
70346         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70347         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70348
70349 2000-12-07  Jim Meyering  <meyering@lucent.com>
70350
70351         * lib/stripslash.c (ISSLASH): Define.
70352         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70353         `/'.
70354         From Prashant TR.
70355
70356         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70357         (dir_name_r): Declare this function as static.
70358         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70359         manifest itself on a name containing a mix of slashes and
70360         backslashes.
70361         Make this function work with names starting with a DOS-style
70362         drive letter and colon prefix.
70363         (dir_name): Append `.' if necessary.
70364         Based mostly on patches from Prashant TR and Eli Zaretskii.
70365
70366         * lib/dirname.h (dir_name_r): Remove prototype.
70367
70368 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70369
70370         * m4/off_t-format.m4: Remove this file.
70371         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70372
70373 2000-12-06  Jim Meyering  <meyering@lucent.com>
70374
70375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70376         replacement strtoull, we may well need the replacement strtoul, too.
70377         Check for declarations of strtoul and strtoull.
70378         Check for strtol.  Mainly as a cue to cause automake to include
70379         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70380         Check for limits.h -- strtol.c needs it.
70381
70382 2000-12-05  Jim Meyering  <meyering@lucent.com>
70383
70384         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70385
70386 2000-12-04  Jim Meyering  <meyering@lucent.com>
70387
70388         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70389         Also include memory.h, stdlib.h, unistd.h if appropriate.
70390         Reported by Andreas Jaeger (conflicting declaration of malloc).
70391
70392 2000-12-02  Jim Meyering  <meyering@lucent.com>
70393
70394         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70395         * m4/jm-macros.m4 (jm_MACROS): require it.
70396
70397 2000-12-02  Jim Meyering  <meyering@lucent.com>
70398
70399         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70400
70401 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70402
70403         * lib/memrchr.c: Include <config.h> before any system include file.
70404
70405 2000-11-30  Jim Meyering  <meyering@lucent.com>
70406
70407         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70408
70409 2000-11-30  Jim Meyering  <meyering@lucent.com>
70410
70411         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70412
70413 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70414
70415         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70416
70417 2000-11-26  Jim Meyering  <meyering@lucent.com>
70418
70419         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70420
70421 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70422
70423         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70424         size of (size_t) -1; it's not portable.
70425
70426 2000-11-17  Jim Meyering  <meyering@lucent.com>
70427
70428         * lib/strstr.c: Update from GNU libc.
70429
70430 2000-11-17  Akim Demaille  <akim@epita.fr>
70431
70432         * lib/obstack.h: Formatting changes.
70433         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70434         prevent type checking.
70435         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70436         cast the value to (void *): assigning a `foo *' to a `void *'
70437         variable is valid.
70438         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70439
70440 2000-11-16  Jim Meyering  <meyering@lucent.com>
70441
70442         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70443
70444 2000-11-11  Jim Meyering  <meyering@lucent.com>
70445
70446         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70447
70448 2000-11-10  Jim Meyering  <meyering@lucent.com>
70449
70450         * lib/obstack.h: Update from GNU libc.
70451         * lib/obstack.c: Likewise.
70452
70453 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70454
70455         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70456
70457 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70458
70459         * lib/getusershell.c (setusershell): Use rewind rather than
70460         fseek/fseeko, to avoid configuration hassles with fseeko.
70461         Don't bother opening SHELLS_FILE if shellstream is NULL;
70462         it's not necessary.
70463
70464 2000-11-05  Jim Meyering  <meyering@lucent.com>
70465
70466         * lib/makepath.h (make_dir): Declare.
70467         * lib/makepath.c (make_dir): Remove `static' attribute.
70468         Tweak a comment.
70469
70470 2000-11-04  Jim Meyering  <meyering@lucent.com>
70471
70472         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70473
70474 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70475
70476         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70477         last one in a bucket, advance to the next bucket.
70478
70479 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70480
70481         * lib/fnmatch.c: Do not comment out all the code if we are using
70482         the GNU C library, because in some cases we are replacing buggy
70483         code in the GNU C library itself.
70484
70485 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70486
70487         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70488         (regex_compile): Catch bogus \(\1\).
70489
70490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70491
70492         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70493         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70494         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70495
70496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70497
70498         * lib/error.h, getline.h, modechange.h:
70499         Remove "2000" from Copyright line, as the file hasn't been
70500         changed this year other than in the copyright notice.
70501
70502         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70503         was changed this year.
70504
70505 2000-10-29  Jim Meyering  <meyering@lucent.com>
70506
70507         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70508         renaming.
70509         * m4/ls-mntd-fs.m4: Likewise
70510
70511 2000-10-29  Jim Meyering  <meyering@lucent.com>
70512
70513         * lib/xstat.in: Fix grammar in comment.
70514
70515 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70516
70517         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70518         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70519         doesn't define __restrict_arr.
70520
70521 2000-10-28  Jim Meyering  <meyering@lucent.com>
70522
70523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70524         (jm_PREREQ_MEMCHR): New function.
70525
70526 2000-10-28  Jim Meyering  <meyering@lucent.com>
70527
70528         * lib/memchr.c: Update from libc.
70529         Adjust for portability:
70530         [HAVE_STDLIB_H]: Include stdlib.h.
70531         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70532         Undef __memchr, too.
70533         [!weak_alias]: Define __memchr to memchr.
70534
70535         * lib/regex.c: Update from libc.
70536         * lib/regex.h: Likewise.
70537         * lib/getopt1.c: Likewise.
70538         * lib/memcmp.c: Likewise.
70539
70540         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70541         Avoid using fseek, when possible -- it's broken by design.
70542         Patch by Ulrich Drepper.
70543
70544 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70545
70546         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70547         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70548         Giving in to popular pressure to shut up the compiler with casts.
70549
70550 2000-10-26  Jim Meyering  <meyering@lucent.com>
70551
70552         * lib/strftime.c: Update from libc.
70553
70554 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70555
70556         * regex.c: More `unsigned char' -> `re_char' changes.
70557         Also change several `int' into `re_wchar_t'.
70558         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70559         (PUSH_FAILURE_POINTER): Don't cast any more.
70560         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70561         We want GCC to complain, since this piece of code makes
70562         re_match non-reentrant, which *should* be fixed.
70563         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70564         (EXTEND_BUFFER): Use RETALLOC.
70565         (SET_LIST_BIT): Don't cast.
70566         (re_wchar_t): New type.
70567         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70568         that those two functions will always properly return.
70569         (IMMEDIATE_QUIT_CHECK): Cast to void.
70570         (analyse_first): Use recursion rather than an explicit stack.
70571         (re_compile_fastmap): Can't fail anymore.
70572         (re_search_2): Don't check re_compile_fastmap for failure.
70573         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70574         Now also sets the new value (passed in a new argument).
70575         (re_match_2_internal): Use it.
70576         Also, use a new var `reg' of type size_t when looping through regs
70577         rather than reuse the inappropriate `mcnt'.
70578
70579 2000-10-25  Jim Meyering  <meyering@lucent.com>
70580
70581         * lib/obstack.c: Update from libc.
70582
70583 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70584
70585         * regex.c (regex_compile): Change the way of handling a range from
70586         a char less than 256 to a char not less than 256.
70587
70588 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70589
70590         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70591         NT-Emacs only.
70592         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70593         so that re_search functions only quit when callers expect them to.
70594
70595 2000-10-23  Jim Meyering  <meyering@lucent.com>
70596
70597         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70598         wrong.  That set_locale call must not have any side effects.
70599         From Paul Eggert.
70600
70601 2000-10-22  Jim Meyering  <meyering@lucent.com>
70602
70603         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70604         [CYCLIC]: Remove now-unused definition.
70605
70606         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70607         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70608         Suggestion from Ulrich Drepper.
70609
70610 2000-10-21  Jim Meyering  <meyering@lucent.com>
70611
70612         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70613         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70615
70616 2000-10-21  Jim Meyering  <meyering@lucent.com>
70617
70618         * lib/dirname.c (memrchr): Declare if necessary.
70619         (dir_name): Remove the restriction that there be no
70620         trailing slashes.  Now, this code skips past them, effectively
70621         ignoring them.
70622         [TEST_DIRNAME] (main): New unit tests.
70623
70624         * lib/memrchr.c: New file from GNU libc.
70625         Undef __memrchr, too.
70626         [!weak_alias]: Define __memrchr to memrchr.
70627         Guard weak_alias use with `#ifdef weak_alias'.
70628
70629 2000-10-21  Jim Meyering  <meyering@lucent.com>
70630
70631         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70632         (dir_name): Use dir_name_r.
70633         * lib/dirname.h (dir_name_r): Declare it.
70634
70635 2000-10-17  Jim Meyering  <meyering@lucent.com>
70636
70637         * lib/quote.h (PARAMS): Define and use.
70638         Reported by Akim Demaille.
70639
70640         * lib/getopt.c: Update from libc.
70641
70642 2000-10-16  Jim Meyering  <meyering@lucent.com>
70643
70644         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70645         setlocale.
70646         From Jan Fedak.
70647
70648 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70649
70650         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70651
70652 2000-09-25  Jim Meyering  <meyering@lucent.com>
70653
70654         * lib/md5.h (rol): Define (from GnuPG).
70655
70656         * lib/sha.c: Give credit (GnuPG) where due.
70657         (M): Use rol rather than open-coding it.
70658         Add a FIXME comment.
70659
70660 2000-09-21  Jim Meyering  <meyering@lucent.com>
70661
70662         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70663         Reported by Michael Stone.
70664
70665 2000-09-20  Jim Meyering  <meyering@lucent.com>
70666
70667         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70668         (noinst_HEADERS): Add sha.h.
70669         Based on code from Scott G. Miller and from GnuPG.
70670
70671 2000-09-18  Jim Meyering  <meyering@lucent.com>
70672
70673         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70674         LIBS. Otherwise, everyone ends up linking with -lelf for some
70675         configurations.
70676         Reported by Mike Stone.
70677
70678 2000-09-15  Jim Meyering  <meyering@lucent.com>
70679
70680         * lib/regex.c: Update from libc.
70681
70682 2000-09-10  Jim Meyering  <meyering@lucent.com>
70683
70684         * lib/getopt.c (_getopt_internal): Update from glibc.
70685
70686 2000-09-09  Jim Meyering  <meyering@lucent.com>
70687
70688         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70689         think it should be used as a general replacement for isascii.
70690         * lib/fnmatch.c: Likewise.
70691         * lib/mbswidth.c: Likewise
70692         * lib/regex.c: Likewise.
70693
70694         Don't use atoi.
70695         * lib/userspec.c: Include sys/param.h and limits.h.
70696         Include xstrtol.h.
70697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70698         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70699         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70700         UID, GID.  Check range.
70701
70702 2000-09-06  Jim Meyering  <meyering@lucent.com>
70703
70704         * lib/getopt.c (_getopt_internal): Update from glibc.
70705
70706 2000-08-30  Jim Meyering  <meyering@lucent.com>
70707
70708         * lib/strftime.c: Merge in changes from GNU libc.
70709
70710 2000-08-26  Jim Meyering  <meyering@lucent.com>
70711
70712         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70713         * m4/fpending.m4: New file.
70714
70715 2000-08-26  Jim Meyering  <meyering@lucent.com>
70716
70717         * lib/closeout.c: Include "__fpending.h".
70718         (close_stdout_status): Return right away if there's nothing to flush.
70719
70720         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70721         * lib/__fpending.c: New file.
70722         * lib/__fpending.h: New file.
70723
70724 2000-08-20  Jim Meyering  <meyering@lucent.com>
70725
70726         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70727         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70728         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70729
70730 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70731
70732         Improve fileutils installation on systems where running
70733         programs (like install) can't be unlinked.
70734         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70735         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70736
70737 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70738
70739         Standardize on "memory exhausted" instead of "Memory exhausted"
70740         or "virtual memory exhausted".
70741         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70742         "virtual memory exhausted".
70743         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70744         our own message.
70745         * lib/userspec.c (parse_user_spec): Likewise.
70746         * lib/bumpalloc.h: comment fix
70747         * lib/same.c, userspec.c: Include xalloc.h.
70748
70749         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70750         not char *const and pointing to a constant array.
70751         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70752         (xrealloc): Comment fix.
70753
70754         * lib/userspec.c (parse_user_spec):
70755         Don't translate a message until just before returning,
70756         to avoid unnecessary translation.
70757
70758 2000-08-07  Jim Meyering  <meyering@lucent.com>
70759
70760         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70761         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70762         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70763         getgroups.c, gethostname.c, getopt.h, group-member.c,
70764         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70765         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70766         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70767         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70768         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70769         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70770         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70771         yesno.c: Back out Copyright date changes for each file with no change
70772         this year.  This eases coordination with other programs using the same
70773         source code modules.  From Paul Eggert.
70774
70775 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70776
70777         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70778         not char, for compatibility with glibc 2.1.3 strftime.c.
70779
70780 2000-08-03  Greg McGary  <greg@mcgary.org>
70781
70782         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70783         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70784         (EXTEND_BUFFER): Use them.
70785
70786 2000-08-01  Jim Meyering  <meyering@lucent.com>
70787
70788         * lib/dirname.c (ISSLASH): Define.
70789         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70790         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70791         both `\' and `/' may be use as path separators.
70792         Based on a patch from Prashant TR.
70793
70794 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70795
70796         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70797         slot vector a constant, since it might get modified.
70798
70799 2000-07-31  Jim Meyering  <meyering@lucent.com>
70800
70801         * lib/xmalloc.c: Use `virtual memory exhausted', not
70802         `Memory exhausted'.
70803         * lib/obstack.c (print_and_abort): Likewise.
70804
70805 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70806
70807         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70808         buffer, so that the caller can always quote one small
70809         component of a "memory exhausted" message in slot 0.
70810         From a suggestion by Jim Meyering.
70811
70812 2000-07-30  Jim Meyering  <meyering@lucent.com>
70813
70814         * lib/makepath.c (make_path): Quote the other instance, too.
70815
70816         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70817         (STATIC_BUF_SIZE): Define.
70818         (quotearg_n_options): Use only statically allocated storage when
70819         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70820         than STATIC_BUF_SIZE.
70821
70822 2000-07-29  Jim Meyering  <meyering@lucent.com>
70823
70824         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70825         * lib/dirname.c (dir_name): Likewise.
70826
70827         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70828         `/'.
70829
70830         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70831         (dir_name): Assert that there are no trailing slashes.
70832
70833 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70834
70835         * lib/mbswidth.h (mbswidth): Add a flags argument.
70836         (mbswidth): New declaration.
70837         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70838         * lib/mbswidth.c (mbswidth): Add a flags argument.
70839         (mbsnwidth): New function.
70840
70841 2000-07-24  Jim Meyering  <meyering@lucent.com>
70842
70843         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70844
70845 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70846
70847         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70848
70849 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70850
70851         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70852         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70853         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70854         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70855         invoke multibyte primitives.
70856
70857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70858
70859         * lib/quotearg.c:
70860         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70861         so that mbstate_t is always defined.
70862
70863         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70864         be 1 in at least one GCC installation, and this configuration
70865         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70866         performance on hosts that have mbrtowc but have only unibyte
70867         locales, but I assume these hosts are rare.
70868
70869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70870
70871         * lib/mbswidth.c (_XOPEN_SOURCE):
70872         Don't define; this causes problems on Solaris 7.
70873         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70874
70875 2000-07-23  Jim Meyering  <meyering@lucent.com>
70876
70877         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70878         too: getgrgid, getpwuid, getuid.
70879
70880 2000-07-23  Jim Meyering  <meyering@lucent.com>
70881
70882         * lib/basename.c (base_name): Add an assertion.
70883
70884 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70885
70886         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70887         shadow its mbsinit function.
70888
70889 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70890
70891         * lib/mbswidth.h: New file.
70892         * lib/mbswidth.c: New file.
70893         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70894         (noinst_HEADERS): Add mbswidth.h.
70895
70896 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70897
70898         * lib/config.charset: Add support for FreeBSD. Improve support for
70899         HP-UX and IRIX 6.
70900
70901 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70902
70903         * m4/mbswidth.m4: New file.
70904         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70905
70906 2000-07-15  Jim Meyering  <meyering@lucent.com>
70907
70908         * lib/makepath.c: Include quote.h.
70909         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70910         corresponding argument in a `quote (...)' call.
70911         Give better diagnostics.
70912
70913         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70914         (noinst_HEADERS): Add quote.h.
70915
70916         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70917         from tar's src/misc.c.
70918         * lib/quote.h: New file.  Prototypes for same.
70919
70920 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70921
70922         From a suggestion by Bruno Haible.
70923         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70924         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70925         to decide whether to define the BeOS workaround macro;
70926         this adjusts to the change to AC_MBSTATE_T.
70927
70928 2000-07-14  Jim Meyering  <meyering@lucent.com>
70929
70930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70931         jm_AC_TYPE_UINTMAX_T.
70932
70933 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70934
70935         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70936
70937         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70938         quotearg_buffer_restyled): Add support for
70939         clocale_quoting_style.  Undo previous change to
70940         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70941         and "{RIGHT QUOTATION MARK}" msgids.
70942
70943 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70944
70945         From a suggestion by Bruno Haible.
70946         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70947         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70948         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70949         and mbstate_t, to a single-part test that simply defines mbstate_t.
70950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70951         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70952
70953 2000-07-10  Jim Meyering  <meyering@lucent.com>
70954
70955         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70956
70957         * m4/gnu-source.m4: Output to confdefs.h directly.
70958         Suggestion from Akim Demaille.
70959
70960 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70961
70962         The old behavior of quoting `like this' doesn't look good with
70963         newer, ISO-style fonts.  See:
70964         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70965
70966         Instead, quote "like this" by default.  Let the translator
70967         tailor the locale-specific quoting behavior by providing
70968         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70969
70970         * lib/quotearg.c (N_): New macro.
70971         (gettext_default): New function.
70972         (quotearg_buffer_restyled): Use
70973         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70974         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70975
70976 2000-07-09  Jim Meyering  <meyering@lucent.com>
70977
70978         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70979         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70980
70981         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70983
70984 2000-07-09  Jim Meyering  <meyering@lucent.com>
70985
70986         * lib/Most files: Update copyright dates to include 2000.
70987
70988 2000-07-08  Jim Meyering  <meyering@lucent.com>
70989
70990         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70991         if not defined.
70992         (xgethostname): Remove now-unnecessary #ifdef.
70993         Move declaration of `err' into loop where it's used.
70994
70995 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70996         and Bruno Haible  <haible@clisp.cons.org>
70997
70998         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70999         only if the test for an object-type mbstate_t fails.  This
71000         prevents us from mistakenly reporting that mbstate_t is a
71001         system object type after we "#define mbstate_t int" to work
71002         around its lack.
71003
71004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71005         and Bruno Haible  <haible@clisp.cons.org>
71006
71007         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71008
71009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71010
71011         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71012         to strerror_r.
71013         Include <ctype.h> for use of isalpha.
71014
71015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71016
71017         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71018         by allocating a larger buffer. Test the gethostname return value for
71019         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71020         returns an error and ENAMETOOLONG isn't defined.
71021
71022 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71023
71024         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71025         dimension.
71026
71027 2000-07-04  Jim Meyering  <meyering@lucent.com>
71028
71029         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71030         of the deprecated AC_CHECKING.
71031
71032 2000-07-04  Jim Meyering  <meyering@lucent.com>
71033
71034         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71035         Reported by Bruno Haible.
71036
71037 2000-07-04  Jim Meyering  <meyering@lucent.com>
71038
71039         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71040         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71041         lacks mbrtowc.
71042
71043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71044
71045         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71046         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71047
71048 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71049         and Bruno Haible  <haible@clisp.cons.org>
71050
71051         * lib/quotearg.c (mbrtowc):
71052         Assign to *pwc, and return 1 only if result is nonzero.
71053         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71054
71055 2000-07-03  Jim Meyering  <meyering@lucent.com>
71056
71057         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71058
71059 2000-07-03  Jim Meyering  <meyering@lucent.com>
71060
71061         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71062         This is necessary to get a definition of e.g., UTMP_FILE on
71063         HP-UX 10.20.
71064         From Bob Proulx.
71065
71066 2000-07-02  Jim Meyering  <meyering@lucent.com>
71067
71068         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71069
71070         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71071         AC_LIBOBJ(function_name).
71072         * m4/chown.m4: Likewise.
71073         * m4/fnmatch.m4: Likewise.
71074         * m4/ftruncate.m4: Likewise.
71075         * m4/getgroups.m4: Likewise.
71076         * m4/getline.m4: Likewise.
71077         * m4/group-member.m4: Likewise.
71078         * m4/jm-macros.m4: Likewise.
71079         * m4/lstat.m4: Likewise.
71080         * m4/malloc.m4: Likewise.
71081         * m4/memcmp.m4: Likewise.
71082         * m4/nanosleep.m4: Likewise.
71083         * m4/putenv.m4: Likewise.
71084         * m4/realloc.m4: Likewise.
71085         * m4/regex.m4: Likewise.
71086         * m4/stat.m4: Likewise.
71087         * m4/strftime.m4: Likewise.
71088
71089 2000-07-02  Jim Meyering  <meyering@lucent.com>
71090
71091         * lib/quotearg.c (mbstate_t): Don't define here.
71092
71093 2000-07-02  Jim Meyering  <meyering@lucent.com>
71094
71095         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71096
71097 2000-07-01  Jim Meyering  <meyering@lucent.com>
71098
71099         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71100
71101 2000-07-01  Jim Meyering  <meyering@lucent.com>
71102
71103         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71104         problem.
71105
71106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71107
71108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71109         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71110
71111 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71112
71113         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71114         per change in ../m4/ls-mntd-fs.m4.
71115         (read_filesystem_list): Ignore symbolic links.
71116
71117 2000-06-29  Jim Meyering  <meyering@lucent.com>
71118
71119         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71120         for declaration of strcmp.
71121
71122         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71123
71124         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71125         Avoid warning by casting result to `char *' to remove `const'.
71126
71127 2000-06-28  Jim Meyering  <meyering@lucent.com>
71128
71129         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71130         included by quotearg.c, for which we perform this test.  From
71131         Bruno Haible.
71132
71133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71134
71135         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71137         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71138
71139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71140
71141         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71142
71143 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71144
71145         savedir now sets errno on failure and invokes xmalloc to get memory.
71146         Fix a couple of other minor bugs while we're at it.
71147
71148         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71149         (NAMLEN): Remove macro.
71150         (malloc, realloc): Remove decls.
71151         (stpcpy): Likewise.
71152         ("xalloc.h"): Include.
71153         (NAME_SIZE_DEFAULT): New macro.
71154         (savedir): Use xmalloc / xrealloc to allocate memory.
71155         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71156         Skip "" directory entries.
71157         Use strlen to calculate directory entry length, since the old method
71158         is rarely used these days and isn't worth supporting.
71159         Don't use a pointer after freeing it.
71160         Check for integer overflow when calculating allocation size.
71161         Use memcpy to copy entries, instead of stpcpy.
71162         Set errno properly when returning NULL.
71163         Check for readdir error.
71164
71165 2000-06-26  Jim Meyering  <meyering@lucent.com>
71166
71167         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71168
71169 2000-06-25  Jim Meyering  <meyering@lucent.com>
71170
71171         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71172         Linux header bug when _XOPEN_SOURCE is defined to 500.
71173
71174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71175
71176         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71177         deficiency.
71178
71179 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71180
71181         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71182         Include xalloc.h.
71183         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71184
71185 2000-06-24  Jim Meyering  <meyering@lucent.com>
71186
71187         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71188         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71189         for which strerror does return char*, but which lacks a conveniently
71190         accessible declaration of the function.  If the compile-test says
71191         strerror_r doesn't work, then resort to a `run'-test that works on
71192         BeOS and segfaults on DEC Unix.
71193
71194 2000-06-24  Jim Meyering  <meyering@lucent.com>
71195
71196         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71197
71198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71199
71200         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71202
71203 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71204
71205         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71206         (mbrtowc, mbstate_t): Define substitutes if
71207         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71208         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71209         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71210
71211 2000-06-23  Jim Meyering  <meyering@lucent.com>
71212
71213         * m4/afs.m4: Add missing AC_MSG_RESULT.
71214         Reported by Bruno Haible.
71215
71216         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71217         Suggestion from Bruno Haible.
71218
71219 2000-06-23  Jim Meyering  <meyering@lucent.com>
71220
71221         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71222
71223 2000-06-21  Jim Meyering  <meyering@lucent.com>
71224
71225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71226
71227 2000-06-21  Jim Meyering  <meyering@lucent.com>
71228
71229         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71230         (noinst_HEADERS): Add getstr.h.
71231
71232         * lib/getline.c (getstr): Move into a separate file.
71233         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71234         the following changes: new parameter, delim2; both delim[12]
71235         parameters have type `int', not `char'.  The latter would lose
71236         with 8-bit delimiters.
71237         * lib/getstr.h: New file.
71238
71239 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71240
71241         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71242         than 1024, return a memory chunk of least possible size, instead
71243         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71244         Use free/xmalloc instead of xrealloc to avoid copying for very long
71245         paths.
71246
71247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71248
71249         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71250         the empty string.
71251
71252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71253
71254         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71255         address, not strdup.  Include <stdlib.h> and don't declare free().
71256
71257 2000-06-19  Jim Meyering  <meyering@lucent.com>
71258
71259         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71260
71261 2000-06-18  Jim Meyering  <meyering@lucent.com>
71262
71263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71264
71265         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71266         `checking whether...' message to be consistent with that of the
71267         lstat test.
71268
71269 2000-06-18  Jim Meyering  <meyering@lucent.com>
71270
71271         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71272         Besides, these days every porting target provides a mkdir function.
71273
71274         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71275         needed. (this snippet comes from src/system.h).
71276
71277 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71278
71279         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71280
71281 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71282
71283         * lib/human.c (adjust_value): New function.
71284         (human_readable_inexact): Apply rounding style even when
71285         printing approximate values.
71286
71287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71288
71289         * lib/human.c (human_readable_inexact): Allow an input block
71290         size that is not a multiple of the output block size, and vice versa.
71291         Reported by Piergiorgio Sartor.
71292
71293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71294
71295         * lib/getdate.y (get_date): Apply relative times after time
71296         zone indicator, not before.  Reported by Todd A. Jacobs.
71297
71298 2000-06-13  Jim Meyering  <meyering@lucent.com>
71299
71300         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71301
71302         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71303
71304 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71305
71306         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71307
71308 2000-06-12  Jim Meyering  <meyering@lucent.com>
71309
71310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71311         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71312         optional argument.
71313         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71314         the optional argument, `lib'.
71315
71316 2000-06-08  Jim Meyering  <meyering@lucent.com>
71317
71318         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71319
71320 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71321
71322         Rewrite largefile configuration so that we don't need to run
71323         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71324         AC_CANONICAL_HOST in configure.in -- jmm]
71325
71326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71327         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71328         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71329         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71330         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71331         All uses changed.
71332         Instead of inspecting the output of getconf, try to compile the
71333         test program without and with the macro definition.
71334         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71335         for getconf.  Instead, check for the needed flags by compiling
71336         test programs.
71337
71338 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71339
71340         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71341
71342 2000-06-04  Jim Meyering  <meyering@lucent.com>
71343
71344         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71345         SunOS 4.1.4 for which gid_t is an unsigned type.
71346
71347 2000-06-03  Jim Meyering  <meyering@lucent.com>
71348
71349         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71350         now that autoconf requires that.
71351
71352         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71353         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71354         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71355
71356 2000-06-03  Jim Meyering  <meyering@lucent.com>
71357
71358         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71359
71360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71361
71362         * m4/glibc21.m4: New file.
71363         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71364
71365 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71366
71367         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71368         newer, don't install charset.alias.
71369         * lib/config.charset: Change the Linux/glibc rules so they become empty
71370         on glibc-2.1 or newer.
71371
71372 2000-06-02  Jim Meyering  <meyering@lucent.com>
71373
71374         * lib/mountlist.c: Back out last change.  Instead, do this...
71375         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71376         me_dummy member using the same `ignore'-testing code.
71377         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71378         fs_type strings.
71379         From Mark D. Roth.
71380
71381 2000-05-29  Jim Meyering  <meyering@lucent.com>
71382
71383         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71384         mounts with the `ignore' attribute.  Based on a patch from
71385         Mark D. Roth.
71386
71387 2000-05-28  Jim Meyering  <meyering@lucent.com>
71388
71389         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71390         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71391         * m4/stat.m4: Likewise.
71392         * m4/lstat.m4: Likewise.
71393         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71394
71395         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71396         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71397
71398 2000-05-26  Jim Meyering  <meyering@lucent.com>
71399
71400         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71401
71402 2000-05-24  Jim Meyering  <meyering@lucent.com>
71403
71404         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71405         autoconf requires that.
71406         * m4/lib-check.m4: Likewise.
71407         * m4/jm-macros.m4: Likewise.
71408         * m4/strftime.m4: Likewise.
71409
71410         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71411         AC_CHECK_DECLS, now that autoconf requires that.
71412
71413 2000-05-22  Jim Meyering  <meyering@lucent.com>
71414
71415         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71416         * m4/lstat.m4: Likewise.
71417
71418 2000-05-22  Jim Meyering  <meyering@lucent.com>
71419
71420         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71421
71422 2000-05-20  Jim Meyering  <meyering@lucent.com>
71423
71424         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71425         (jm_PREREQ): Use it.
71426
71427 2000-05-18  Jim Meyering  <meyering@lucent.com>
71428
71429         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71430         back, too, since it may have been modified by allocate_entry.
71431         (hash_delete): Rewrite to use neither the assignment operator
71432         nor the comma operator in an if-expression.
71433
71434 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71435
71436         * lib/closeout.c:
71437         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71438         Remove; no longer needed.
71439         "quotearg.h": Add include.
71440         (file_name): Do not bother to explicitly initialize to NULL; it's less
71441         efficient on some hosts.
71442         (close_stdout_status): Remove test as to whether stdout was already
71443         closed; it breaks for the case "echo x | sort >&-".
71444         Quote file name colons.
71445         Do not assume that _("write error") lacks format strings.
71446
71447 2000-05-15  Jim Meyering  <meyering@lucent.com>
71448
71449         * lib/version-etc.c (version_etc_copyright): Update the copyright
71450         string used in all --version output.
71451
71452 2000-05-14  Jim Meyering  <meyering@lucent.com>
71453
71454         * lib/closeout.c (close_stdout_set_file_name): New function.
71455         (close_stdout_status): Use new file-scoped global.
71456         Return right away if fstat says the stdout file descriptor is invalid.
71457         * lib/closeout.h (close_stdout_set_file_name): Declare.
71458
71459 2000-05-10  Jim Meyering  <meyering@lucent.com>
71460
71461         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71462         (close_stdout_set_status): New function.
71463         * lib/closeout.h (close_stdout_set_status): Declare.
71464
71465 2000-05-09  Jim Meyering  <meyering@lucent.com>
71466
71467         * m4/gettext.m4: Rename this...
71468         * m4/libintl.m4: ...to this.
71469
71470 2000-05-08  Jim Meyering  <meyering@lucent.com>
71471
71472         * lib/long-options.c: Don't include closeout.h.
71473         (parse_long_options): Don't call close_stdout for --version.
71474
71475 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71476
71477         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71478         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71479         2.1.3 bug.  This avoids a clash when files like regex.c define
71480         _GNU_SOURCE.
71481
71482 2000-05-06  Jim Meyering  <meyering@lucent.com>
71483
71484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71485         (AC_REPLACE_FUNCS): Add strnlen.
71486
71487         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71488         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71489
71490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71491         AC_SEARCH_LIBS call for nanosleep.
71492         (LIB_NANOSLEEP): Set and AC_SUBST.
71493
71494 2000-05-06  Jim Meyering  <meyering@lucent.com>
71495
71496         * lib/strnlen.c: Undefine __strnlen and strnlen.
71497         [!weak_alias]: Define __strnlen to strnlen.
71498
71499         * lib/atexit.c: New file, from libiberty.
71500
71501 2000-05-06  Jim Meyering  <meyering@lucent.com>
71502
71503         * lib/closeout.c (close_stdout_status): Also check for errors on the
71504         stderr stream.
71505
71506 2000-05-05  Jim Meyering  <meyering@lucent.com>
71507
71508         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71509         AC_SEARCH_LIBS call for clock_gettime.
71510         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71511
71512         * m4/search-libs.m4: Update from autoconf.
71513
71514         su doesn't work on Solaris 2.6.
71515         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71516         <shadow.h>.  Reported by Dragos Harabor.
71517
71518 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71519
71520         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71521         memcpy instead of xmalloc, xrealloc, path_concat.
71522         (locale_charset): Treat empty environment variables as absent.
71523         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71524
71525 2000-05-04  Jim Meyering  <meyering@lucent.com>
71526
71527         * lib/getopt.c: Update from glibc.
71528         * lib/obstack.c: Likewise.
71529         * lib/obstack.h: Likewise.
71530         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71531         file
71532
71533         * lib/regex.h: Likewise.
71534         * lib/strndup.c: Likewise.
71535         * lib/strnlen.c: New file, from glibc.
71536
71537 2000-05-03  Jim Meyering  <meyering@lucent.com>
71538
71539         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71540
71541 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71542
71543         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71544         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71545         compile-time test, rather than inspecting host and OS, to
71546         decide whether to define _LARGEFILE_SOURCE.
71547
71548 2000-05-01  Jim Meyering  <meyering@lucent.com>
71549
71550         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71551
71552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71553         Based on a patch from Bruno Haible.
71554
71555 2000-05-01  Jim Meyering  <meyering@lucent.com>
71556
71557         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71558
71559 2000-04-29  Jim Meyering  <meyering@lucent.com>
71560
71561         * lib/path-concat.c: Declare strdup only if it's not defined.
71562         * lib/canon-host.c: Likewise.
71563
71564 2000-04-28  Jim Meyering  <meyering@lucent.com>
71565
71566         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71567         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71568         is included first, then limits.h is included by locale.h by libintl.h.
71569         From John David Anglin.
71570
71571 2000-04-25  Jim Meyering  <meyering@lucent.com>
71572
71573         * lib/makepath.c (S_IRWXUGO): Define.
71574         (make_path): Always perform explicit chmod if MODE specifies any
71575         of the `special' permission bits.  Prompted by a bug report against
71576         install from Mate Wierdl and Joost van Baal.
71577
71578 2000-04-18  Jim Meyering  <meyering@lucent.com>
71579
71580         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71581         (jm_PREREQ): Use it.
71582
71583 2000-04-18  Jim Meyering  <meyering@lucent.com>
71584
71585         * lib/README: New file.
71586
71587         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71588         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71589
71590 2000-04-17  Jim Meyering  <meyering@lucent.com>
71591
71592         Get it right :-)
71593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71594         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71595         Suggestion from Akim Demaille.
71596
71597 2000-04-17  Jim Meyering  <meyering@lucent.com>
71598
71599         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71600         the definition of it to rpl_strftime also defined-away the system's
71601         declaration.
71602
71603 2000-04-15  Jim Meyering  <meyering@lucent.com>
71604
71605         Use `C' to denote so-called `contiguous' files, the same way
71606         that tar does.
71607         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71608         (ftypelet): Use S_ISCTG.
71609         From Michael Deutschmann.
71610
71611 2000-04-14  Jim Meyering  <meyering@lucent.com>
71612
71613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71614         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71615         clobbered.
71616
71617 2000-04-14  Jim Meyering  <meyering@lucent.com>
71618
71619         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71620
71621 2000-04-13  Jim Meyering  <meyering@lucent.com>
71622
71623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71624         AH_VERBATIM to insert required #ifndef into config.h.in.
71625         Suggestion from Akim Demaille.
71626
71627 2000-04-12  Jim Meyering  <meyering@lucent.com>
71628
71629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71630         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71631         Christian Krackowizer.
71632
71633         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71634         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71635         (AC_SYS_LARGEFILE): Require.
71636         (AM_C_PROTOTYPES): Require.
71637
71638 2000-04-08  Jim Meyering  <meyering@lucent.com>
71639
71640         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71641         names don't conflict.  Reported by Eli Zaretskii.
71642
71643 2000-04-07  Jim Meyering  <meyering@lucent.com>
71644
71645         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71646         sys/types.h, to work around system header problems on AIX 3.2.5.
71647         From Bruno Haible.
71648
71649 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71650
71651         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71652         bug.  Deal with the different error behavior of Irix iconv.
71653
71654 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71655
71656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71657         IRIX if the installer said otherwise.
71658
71659 2000-04-05  Jim Meyering  <meyering@lucent.com>
71660
71661         Portability tweaks required for ultrix4.3.
71662         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71663         (jm_CHECK_DECLS): Add getutent to the list of functions.
71664         (_jm_DECL_HEADERS): Add utmpx.h.
71665         From John David Anglin.
71666
71667         * m4/strftime.m4: Back out the 2000-04-02 change.
71668         Instead of that change, simply undefine putenv in the test program.
71669
71670 2000-04-05  Jim Meyering  <meyering@lucent.com>
71671
71672         Portability tweaks required for ultrix4.3.
71673         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71674         getutent.
71675         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71676         * lib/canon-host.c: Declare strdup.
71677         * lib/path-concat.c: Likewise.
71678         From John David Anglin.
71679
71680 2000-04-04  Jim Meyering  <meyering@lucent.com>
71681
71682         Be more DOS 8.3-friendly.
71683         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71684         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71685         * lib/Makefile.am: Reflect renaming.
71686         Reported by Eli Zaretskii.
71687
71688         Use a temporary file name that won't clash with `charset.alias'
71689         in the DOS 8.3 name space.
71690         * lib/Makefile.am (charset_tmp): Define.
71691         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71692         (uninstall-local): Likewise.
71693         Reported by Eli Zaretskii.
71694
71695 2000-04-03  Jim Meyering  <meyering@lucent.com>
71696
71697         * m4/gettext.m4: Fix typo in comment.
71698
71699         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71700         textutils/configure.in).  Suggestion from Paul Eggert.
71701         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71702
71703 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71704
71705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71706         variable in the shell rather than using putenv, which isn't
71707         portable.  This avoids the configure-time inter-test dependency
71708         on the potentially-renamed putenv function.
71709
71710 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71711
71712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71713         before checking struct stat.st_blksize, so that
71714         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71715
71716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71717
71718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71719         since strftime.c uses HAVE_STRFTIME to decide whether to use
71720         the underlying strftime.
71721
71722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71723
71724         * lib/time/strftime.c (my_strftime): Make sure we call the system
71725         strftime, not ourselves, when invoking the underlying strftime.
71726
71727 2000-03-24  Jim Meyering  <meyering@lucent.com>
71728
71729         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71730         (charset_alias): Define.
71731         (install-exec-local): Factor out common code.
71732         (uninstall-local): Split lines longer than 80.
71733         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71734         (SUFFIXES): Define.
71735         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71736         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71737
71738 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71739
71740         * lib/config.charset: Output a line containing "Packages using this
71741         file".
71742         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71743         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71744         ref-del.sed): New rules.
71745
71746 2000-03-17  Jim Meyering  <meyering@lucent.com>
71747
71748         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71749         Otherwise, include <strings.h>
71750
71751 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71752
71753         * lib/unicodeio.c (utf8_wctomb): New function.
71754         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71755         format instead of in UCS-4 with platform dependent endianness.
71756
71757 2000-03-10  Jim Meyering  <meyering@lucent.com>
71758
71759         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71760         From Marco Franzen.
71761
71762 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71763
71764         * lib/savedir.c (savedir): Work even if directory size is
71765         negative; this can happen with some screwy NFS configurations.
71766
71767 2000-03-06  Jim Meyering  <meyering@lucent.com>
71768
71769         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71770         if it's NULL (because we ran out of memory).  From Bruno Haible.
71771
71772 2000-03-05  Jim Meyering  <meyering@lucent.com>
71773
71774         * lib/localcharset.c ("path-concat.h"): Include.
71775         (get_charset_aliases): Use path_concat instead of ANSI string
71776         concatenation.
71777
71778         * lib/unicodeio.h (PARAMS): Define.
71779         Use it to guard prototype.
71780
71781 2000-03-04  Jim Meyering  <meyering@lucent.com>
71782
71783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71784         for lib/localcharset.c.
71785
71786 2000-03-04  Jim Meyering  <meyering@lucent.com>
71787
71788         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71789         installing into it.
71790         (uninstall-local): Uncomment this rule so `make distcheck' works
71791         once again.
71792
71793         * lib/unicodeio.c (<errno.h>): Include it.
71794         (errno): Declare if not defined.
71795
71796         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71797
71798         * lib/config.charset: New version, incorporating remarks from a linux
71799         i18n mailing list.  From Bruno Haible.
71800
71801 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71802
71803         * m4/codeset.m4: New file.
71804         * m4/iconv.m4: New file.
71805         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71806
71807 2000-03-03  Jim Meyering  <meyering@lucent.com>
71808
71809         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71810
71811 2000-03-02  Jim Meyering  <meyering@lucent.com>
71812
71813         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71814         the messages come out on separate lines.
71815
71816         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71817         rather than jm_CHECK_DECLARATIONS.
71818         * m4/decl.m4: Remove now-unused file.
71819
71820         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71821         geteuid.
71822
71823 2000-03-02  Jim Meyering  <meyering@lucent.com>
71824
71825         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71826
71827 2000-03-01  Jim Meyering  <meyering@lucent.com>
71828
71829         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71830         * lib/unicodeio.c: Likewise.
71831
71832 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71833
71834         * lib/config.charset: New file.
71835         * lib/localcharset.c: New file.
71836         * lib/unicodeio.h, lib/unicodeio.c: New files.
71837         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71838         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71839         (noinst_HEADERS): Add unicodeio.h.
71840         (all-local, install-exec-local, charset.alias): New targets.
71841
71842 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71843
71844         * lib/quotearg.c (ALERT_CHAR): New macro.
71845         (quotearg_buffer_restyled): Use it.
71846
71847 2000-02-27  Jim Meyering  <meyering@lucent.com>
71848
71849         * m4/check-decl.m4: Add getenv to the list.
71850
71851 2000-02-27  Jim Meyering  <meyering@lucent.com>
71852
71853         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71854         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71855
71856         * lib/backupfile.c: Guard inclusion of stdlib.h with
71857         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71858         Declare malloc if needed.
71859
71860         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71861         `#ifndef HAVE_DECL..'
71862         now that autoconf always defines the HAVE_DECL_ symbols.
71863         * lib/human.c: Likewise.
71864         * lib/same.c: Likewise.
71865         * lib/strtoumax.c: Likewise.
71866
71867         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71868         declaration check was not run.
71869         * lib/hash.c: Likewise.
71870         * lib/human.c: Likewise.
71871         * lib/same.c: Likewise.
71872         * lib/strtoumax.c: Likewise.
71873
71874         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71875         `.', then first look up the entire `.'-containing string as a login
71876         name.
71877
71878 2000-02-23  Jim Meyering  <meyering@lucent.com>
71879
71880         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71881         in place of my hack.
71882
71883 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71884
71885         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71886         (textint): New typedef.
71887         (parser_control): Member year changed from int to textint.
71888         All uses changed.
71889         (YYSTYPE): Removed; replaced by %union with int and textint members.
71890         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71891         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71892         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71893         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71894         (date, number, to_year): Use width of number in digits, not its value,
71895         to determine whether it's a 2-digit year, or a 2-digit time.
71896         (yylex): Store number of digits of numeric tokens.
71897         Reported by John Kendall.
71898
71899         (parser_control): Changed from struct parser_control to typedef (for
71900         consistency).  All uses changed.
71901
71902         (tID): Removed; not used.
71903         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71904
71905 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71906
71907         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71908         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71909
71910 2000-02-12  Jim Meyering  <meyering@lucent.com>
71911
71912         * lib/userspec.c (ISDIGIT): Define it.
71913         (isdigit): Remove definition.
71914         (is_number): Use ISDIGIT, not isdigit.
71915         <libintl.h>: Include.
71916         (_ and N_): Define.
71917         (parse_user_spec): Mark translatable strings.
71918
71919 2000-02-10  Jim Meyering  <meyering@lucent.com>
71920
71921         With these changes, nanosleep.[ch] are finally enough like the other
71922         lib/* replacement files to compile on a few more losing systems.
71923
71924         * lib/nanosleep.h: Don't include config.h.
71925         Remove prototype from declaration of nanosleep.
71926         (PARAMS): Remove now-unneeded definition.
71927         * lib/nanosleep.c: #undef nanosleep.
71928         (rpl_nanosleep): Rename from nanosleep.
71929
71930 2000-02-10  Jim Meyering  <meyering@lucent.com>
71931
71932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71933         gnu_nanosleep to rpl_nanosleep.
71934
71935 2000-02-09  Jim Meyering  <meyering@lucent.com>
71936
71937         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71938         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71939
71940 2000-02-08  Akim Demaille  <akim@epita.fr>
71941
71942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71943         `[' and `]' and remove uses of `changequote'.
71944         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71945         (AC_SYS_LARGEFILE): Likewise.
71946         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71947         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71948         of changequote.
71949         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71950         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71952         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71953
71954 2000-02-05  Jim Meyering  <meyering@lucent.com>
71955
71956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71957         Remove explicit use of AC_HEADER_TIME.  It is required by
71958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71959         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71960         in autoconf whereby the expansion of the latter ended up preceding
71961         the expansion of its prerequisite, AC_HEADER_TIME.
71962         Reported by Volker Borchert.
71963
71964 2000-02-03  Jim Meyering  <meyering@lucent.com>
71965
71966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71967
71968 2000-02-03  Jim Meyering  <meyering@lucent.com>
71969
71970         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71971         rather than with `#if HAVE_UTMPNAME'.
71972
71973 2000-02-02  Jim Meyering  <meyering@lucent.com>
71974
71975         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71976         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71977         Reported by Eli Zaretskii.
71978
71979 2000-02-01  Jim Meyering  <meyering@lucent.com>
71980
71981         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71982
71983 2000-01-31  Jim Meyering  <meyering@lucent.com>
71984
71985         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71986         functions.  Add the time.h and sys/time.h headers along with the
71987         AC_REQUIRE'ment of AC_HEADER_TIME.
71988
71989 2000-01-31  Jim Meyering  <meyering@lucent.com>
71990
71991         * lib/nanosleep.h (nanosleep): Guard declaration with
71992         `#if ! HAVE_DECL_NANOSLEEP'.
71993         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71994         the declaration in that vendor's sys/timers.h.
71995         Reported by Christian Krackowizer.
71996
71997         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71998         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71999         (ISPRINT): Likewise.
72000         Reported by Tom Tromey.
72001
72002 2000-01-30  Jim Meyering  <meyering@lucent.com>
72003
72004         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72005
72006         * m4/prereq.m4 (utmp_includes): Define.
72007         Check for ut_user and ut_name members in both struct utmpx
72008         and struct utmp.
72009
72010 2000-01-30  Jim Meyering  <meyering@lucent.com>
72011
72012         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72013         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72014         header files where only utmpx.ut_user is declared.
72015
72016         * lib/readutmp.h (UT_USER): Define.
72017
72018 2000-01-29  Jim Meyering  <meyering@lucent.com>
72019
72020         * m4/lib-check.m4: New file containing library-related checks from
72021         fileutils and sh-utils (textutils had none).
72022
72023 2000-01-28  Jim Meyering  <meyering@lucent.com>
72024
72025         * m4/perl.m4: Change format of warning message to look more like that
72026         from the missing script.  Suggestion from François Pinard.
72027
72028 2000-01-25  Jim Meyering  <meyering@lucent.com>
72029
72030         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72031         well as time.h in the compile check.
72032         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72033         Fix typo in cross-compiling case: s/yes/no/.
72034
72035 2000-01-23  Jim Meyering  <meyering@lucent.com>
72036
72037         * m4/jm-macros.m4: Move df-related tests here from
72038         fileutils/configure.in
72039
72040         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72041         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72042
72043         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72044         s/space/ac_fsusage_space/.
72045         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72046
72047         * m4/ftruncate.m4: New file (derived from part of
72048         fileutils/configure.in).
72049         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72050         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72051
72052         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72053         AC_SUBST these here, rather than just in sh-util/configure.in, so
72054         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72055         all the same.
72056         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72057         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72058         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72059         (AC_SUBST(POW_LIBM)): Likewise.
72060         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72061
72062 2000-01-23  Jim Meyering  <meyering@lucent.com>
72063
72064         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72065         obstack.c.
72066
72067 2000-01-22  Jim Meyering  <meyering@lucent.com>
72068
72069         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72070
72071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72072
72073         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72074         configure.in
72075         (AC_CHECK_HEADERS): Likewise for sh-utils.
72076         (AC_CHECK_HEADERS): Likewise for textutils.
72077         Merge the three lists of headers.
72078
72079         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72080         from fileutils' configure.in.
72081
72082         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72083         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72084         check-decl.m4.
72085
72086         * m4/check-decl.m4: Use #if rather than #ifdef.
72087         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72088         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72089         (_jm_DECL_HEADERS): Define new function.
72090         (jm_CHECK_DECLARATIONS): Require it.
72091
72092 2000-01-22  Jim Meyering  <meyering@lucent.com>
72093
72094         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72095         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72096         Required for some AIX systems.  Reported by Christian Krackowizer.
72097         [TESTING] (main): New function.
72098
72099         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72100         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72101         letters.
72102
72103         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72104         iswprint.
72105
72106         * lib/strverscmp.c (ISDIGIT): Define.
72107         (strverscmp): Use ISDIGIT, not isdigit.
72108
72109 2000-01-19  Jim Meyering  <meyering@lucent.com>
72110
72111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72112         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72113         defines `struct timespec' in <sys/time.h>
72114
72115         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72116         Thanks to Akim for explaining.
72117
72118 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72119
72120         * lib/nanosleep.c (nanosleep):
72121         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72122         POSIX.1 doesn't require SA_INTERRUPT and some systems
72123         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72124         it's been part of POSIX.1 since day 1 (in 1988).
72125
72126 2000-01-17  Jim Meyering  <meyering@lucent.com>
72127
72128         * lib/interlock: Remove unused file.  Reported by François Pinard.
72129
72130 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72131
72132         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72133         alert, backslash, formfeed, and vertical tab unnecessarily in
72134         shell quoting style.
72135
72136 2000-01-16  Jim Meyering  <meyering@lucent.com>
72137
72138         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72139         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72140         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72141         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72142
72143 2000-01-16  Jim Meyering  <meyering@lucent.com>
72144
72145         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72146         because the latter didn't work.
72147
72148 2000-01-15  Jim Meyering  <meyering@lucent.com>
72149
72150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72151         (AC_REPLACE_FUNCS): Add memcpy and memset.
72152         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72153         Add strpbrk.
72154         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72155
72156 2000-01-12  Jim Meyering  <meyering@lucent.com>
72157
72158         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72159         (jm_PREREQ): Use it.
72160         (jm_PREREQ_READUTMP): New macro.
72161         (jm_PREREQ): Use it.
72162
72163 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72164
72165         Quote multibyte characters correctly.
72166         * m4/c-bs-a.m4: New file.
72167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72168         (jm_PREREQ): Use it.
72169
72170 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72171
72172         * m4/uintmax_t.m4: Port to autoconf 2.13.
72173
72174 2000-01-08  Jim Meyering  <meyering@ascend.com>
72175
72176         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72177         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72178
72179 2000-01-04  Jim Meyering  <meyering@ascend.com>
72180
72181         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72182         jm_STRUCT_DIRENT_D_TYPE.
72183         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72184         jm_STRUCT_DIRENT_D_INO.
72185         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72186         jm_STRUCT_UTIMBUF.
72187         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72188         renamings.
72189         * m4/utime.m4: Likewise.
72190
72191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72192         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72193
72194 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72195
72196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72197         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72198
72199 2000-01-02  Jim Meyering  <meyering@ascend.com>
72200
72201         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72202         remember if this is necessary.
72203
72204 1999-12-26  Jim Meyering  <meyering@ascend.com>
72205
72206         * m4/jm-macros.m4: Use it here.
72207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72208
72209 1999-12-23  Jim Meyering  <meyering@ascend.com>
72210
72211         * m4/jm-macros.m4: Check for clock_gettime (moved from
72212         fileutils/configure.in)
72213         Check for gettimeofday.
72214
72215 1999-12-20  Jim Meyering  <meyering@ascend.com>
72216
72217         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72218         autoconf-2.14a-1999-12-20.
72219
72220 1999-12-19  Jim Meyering  <meyering@ascend.com>
72221
72222         * m4/lstat-slash.m4: New file.
72223         * m4/jm-macros.m4: Use the new macro:
72224         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72225
72226 1999-12-07  Jim Meyering  <meyering@ascend.com>
72227
72228         * m4/perl.m4: Require that File::Compare be available, too.
72229         Too many systems seem to lack it.
72230
72231         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72232         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72233
72234 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72235
72236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72237         problem with the QNX 4.25 shell, which doesn't propagate exit
72238         status of failed commands inside shell assignments.
72239
72240 1999-11-17  Jim Meyering  <meyering@ascend.com>
72241
72242         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72243
72244 1999-11-07  Jim Meyering  <meyering@ascend.com>
72245
72246         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72247
72248 1999-11-06  Jim Meyering  <meyering@ascend.com>
72249
72250         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72251         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72252
72253 1999-11-05  Jim Meyering  <meyering@ascend.com>
72254
72255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72256         configure.in of textutils, fileutils, and sh-utils into this one
72257         (shared between those packages) file.
72258         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72259         AC_STRUCT_ST_BLKSIZE.
72260
72261 1999-11-03  Jim Meyering  <meyering@ascend.com>
72262
72263         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72264         of AC_CHECK_TYPE checks includes unistd.h.
72265         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72266         Suggestion from Akim Demaille.
72267
72268 1999-10-30  Jim Meyering  <meyering@ascend.com>
72269
72270         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72271         m4-quoted string.
72272         * m4/ls-mntd-fs.m4: Likewise.
72273         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72274         * m4/jm-winsz1.m4: Likewise.
72275
72276         * m4/const.m4: Remove file, since the fix made it into the experimental
72277         version of autoconf.
72278         * m4/mktime.m4: Likewise.
72279
72280         * m4/check-type.m4: Remove file, now that the latest version of
72281         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72282
72283         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72284         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72285         AC_CHECK_TYPE.
72286
72287 1999-10-04  Jim Meyering  <meyering@ascend.com>
72288
72289         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72290
72291 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72292
72293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72294         2.95.1 bug with HP-UX 10.20.
72295
72296 1999-09-17  Jim Meyering  <meyering@ascend.com>
72297
72298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72299         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72300         due to missing strdup (against sh-utils-2.0).
72301
72302 1999-08-29  Jim Meyering  <meyering@ascend.com>
72303
72304         * m4/jm-macros.m4: Require jm_BISON.
72305         * m4/bison.m4: New file.
72306
72307 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72308
72309         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72310         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72311
72312 1999-08-05  Jim Meyering  <meyering@ascend.com>
72313
72314         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72315         to avoid conflicts with `conftest' on 8+3 filesystems.
72316         Suggestion from Eli Zaretskii.
72317
72318 1999-08-04  Jim Meyering  <meyering@ascend.com>
72319
72320         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72321         fileutils and sh-utils (textutils's getline test was inadequate).
72322         (AM_FUNC_GETLINE): Run this test.
72323         (AC_CHECK_FUNCS): Check for getdelim.
72324         Reported by Bob Proulx.
72325
72326 1999-08-02  Jim Meyering  <meyering@ascend.com>
72327
72328         * m4/jm-macros.m4: Add a comment.
72329
72330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72331
72332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72333         <inttypes.h> defines strtoumax as a macro (and not as a
72334         function).
72335
72336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72337
72338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72339         that we can shift, multiply and divide unsigned long long
72340         values; Ultrix cc can't do it.
72341
72342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72343
72344         * m4/mktime.m4: New file, which is a preview of what should appear
72345         in the next public autoconf release.
72346
72347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72348
72349         * m4/lfs.m4: Remove this file.
72350         * m4/largefile.m4: New file.  It contains the old contents of
72351         lfs.m4, except that all names with prefix AC_LFS have been
72352         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72353         compatible with future autoconf versions.  Also, some minor m4
72354         quoting problems have been fixed.
72355
72356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72357
72358         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72359         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72360         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72361         and simplify the shell code.
72362
72363 1999-08-01  Jim Meyering  <meyering@ascend.com>
72364
72365         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72366         m4.
72367
72368 1999-07-20  Jim Meyering  <meyering@ascend.com>
72369
72370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72371
72372 1999-07-15  Jim Meyering  <meyering@ascend.com>
72373
72374         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72375
72376 1999-05-22  Jim Meyering  <meyering@ascend.com>
72377
72378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72379
72380 1999-05-20  Jim Meyering  <meyering@ascend.com>
72381
72382         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72383         Add a colon after each `then' in case $4 is empty.
72384
72385 1999-05-16  Jim Meyering  <meyering@ascend.com>
72386
72387         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72388
72389 1999-05-10  Jim Meyering  <meyering@ascend.com>
72390
72391         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72392
72393         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72394         AC_FUNC_MKTIME.
72395
72396 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72397
72398         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72399
72400 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72401
72402         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72403         not CPPFLAGS, so that linking works correctly in IRIX.
72404
72405 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72406
72407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72408
72409 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72410
72411         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72412         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72414         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72415         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72416
72417         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72418
72419 1999-04-20  Jim Meyering  <meyering@ascend.com>
72420
72421         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72422         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72423         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72424
72425 1999-04-18  Jim Meyering  <meyering@ascend.com>
72426
72427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72428         * m4/jm-macros.m4: Use it.
72429
72430 1999-04-06  Jim Meyering  <meyering@ascend.com>
72431
72432         * m4/strftime.m4: Remove test for %f.
72433
72434 1999-03-29  Jim Meyering  <meyering@ascend.com>
72435
72436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72437         superset of the AC_TYPE_* checks in the textutils, fileutils,
72438         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72439         AC_TYPE_PID_T.
72440
72441 1999-03-28  Jim Meyering  <meyering@ascend.com>
72442
72443         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72444         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72445         replaced e.g., in the *.sh files of the sh-utils.
72446
72447 1999-03-20  Jim Meyering  <meyering@ascend.com>
72448
72449         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72450         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72451         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72452
72453 1999-03-19  Jim Meyering  <meyering@ascend.com>
72454
72455         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72456
72457 1999-03-12  Jim Meyering  <meyering@ascend.com>
72458
72459         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72460
72461 1999-03-07  Jim Meyering  <meyering@ascend.com>
72462
72463         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72464         declared.
72465
72466 1999-02-17  Jim Meyering  <meyering@ascend.com>
72467
72468         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72469         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72470
72471 1999-02-07  Jim Meyering  <meyering@ascend.com>
72472
72473         * m4/group-member.m4: New file -- extracted from sh-utils'
72474         configure.in.
72475
72476         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72477         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72478
72479 1999-02-06  Jim Meyering  <meyering@ascend.com>
72480
72481         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72482         * m4/fnmatch.m4: Likewise.
72483         * m4/getgroups.m4: Likewise.
72484         * m4/lstat.m4: Likewise.
72485         * m4/malloc.m4: Likewise.
72486         * m4/putenv.m4: Likewise.
72487         * m4/realloc.m4: Likewise.
72488         * m4/regex.m4: Likewise.
72489         * m4/stat.m4: Likewise.
72490         * m4/strftime.m4: Likewise.
72491         Suggestion from Alain Magloire.
72492
72493         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72494         * m4/fnmatch.m4: Likewise.
72495         * m4/getgroups.m4: Likewise.
72496         * m4/getline.m4: Likewise.
72497         * m4/lstat.m4: Likewise.
72498         * m4/malloc.m4: Likewise.
72499         * m4/memcmp.m4: Likewise.
72500         * m4/putenv.m4: Likewise.
72501         * m4/realloc.m4: Likewise.
72502         * m4/regex.m4: Likewise.
72503         * m4/stat.m4: Likewise.
72504         * m4/strftime.m4: Likewise.
72505         Suggestion from Alain Magloire.
72506
72507         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72508         an argument.
72509
72510         * m4/regex.m4: Add a run-time Test for proper operation of
72511         re_compile_pattern.
72512
72513 1999-01-31  Jim Meyering  <meyering@ascend.com>
72514
72515         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72516
72517 1999-01-30  Jim Meyering  <meyering@ascend.com>
72518
72519         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72520
72521         * m4/jm-mktime.m4: Make this a wrapper around the official
72522         AM_FUNC_MKTIME rather than my private copy, now that the official one
72523         is up to date.
72524         * m4/mktime.m4: Remove file.
72525
72526         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72527         * m4/uptime.m4: Likewise.
72528         * m4/uintmax_t.m4: Likewise.
72529
72530 1999-01-28  Jim Meyering  <meyering@ascend.com>
72531
72532         * m4/jm-macros.m4: Use jm_AFS.
72533         * m4/afs.m4: New file (from fileutils' configure.in).
72534
72535         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72536         * m4/chown.m4: Likewise.
72537         * m4/d-ino.m4: Likewise.
72538         * m4/d-type.m4: Likewise.
72539         * m4/fnmatch.m4: Likewise.
72540         * m4/getgroups.m4: Likewise.
72541         * m4/gettext.m4: Likewise.
72542         * m4/jm-mktime.m4: Likewise.
72543         * m4/jm-winsz2.m4: Likewise.
72544         * m4/lcmessage.m4: Likewise.
72545         * m4/ls-mntd-fs.m4: Likewise.
72546         * m4/malloc.m4: Likewise.
72547         * m4/memcmp.m4: Likewise.
72548         * m4/putenv.m4: Likewise.
72549         * m4/realloc.m4: Likewise.
72550         * m4/st_mtim.m4: Likewise.
72551         * m4/strftime.m4: Likewise.
72552
72553 1999-01-16  Jim Meyering  <meyering@ascend.com>
72554
72555         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72556         (ARGMATCH_DIE_DECL): Define.
72557
72558 1999-01-12  Jim Meyering  <meyering@ascend.com>
72559
72560         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72561         Reported by Lars Hecking.
72562
72563 1999-01-10  Jim Meyering  <meyering@ascend.com>
72564
72565         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72566         gross kludge.
72567         * m4/inttypes_h.m4: Likewise.
72568         * m4/lstat.m4: Likewise.
72569         * m4/malloc.m4: Likewise.
72570         * m4/readdir.m4: Likewise.
72571         * m4/realloc.m4: Likewise.
72572         * m4/st_dm_mode.m4: Likewise.
72573         * m4/stat.m4: Likewise.
72574         * m4/utimbuf.m4: Likewise.
72575         * m4/utimes.m4: Likewise.
72576
72577         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72578         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72579         comments in config.h.in are meaningful.
72580
72581         * m4/jm-macros.m4: Require autoconf-2.13 here.
72582
72583         * m4/regex.m4: By default, don't use the included regex.c on systems
72584         with glibc 2.  Suggestion from Uli Drepper.
72585
72586 1999-01-02  Jim Meyering  <meyering@ascend.com>
72587
72588         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72589
72590 1998-12-18  Jim Meyering  <meyering@ascend.com>
72591
72592         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72593         Based on a suggestion from Lars Hecking.
72594
72595 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72596
72597         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72598
72599 1998-11-16  Jim Meyering  <meyering@ascend.com>
72600
72601         * m4/lfs.m4: Double-quote the `uname...` expression.
72602
72603 1998-11-14  Jim Meyering  <meyering@ascend.com>
72604
72605         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72606         * m4/stat.m4: Likewise.
72607
72608 1998-11-03  Jim Meyering  <meyering@ascend.com>
72609
72610         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72611         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72612
72613 1998-10-18  Jim Meyering  <meyering@ascend.com>
72614
72615         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72616
72617 1998-10-17  Jim Meyering  <meyering@ascend.com>
72618
72619         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72620         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72621         calls for those previously hard-coded headers.  Instead, take a new
72622         parameter.
72623         (jm_CHECK_DECLARATIONS): Reflect interface change.
72624         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72625         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72626
72627         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72628
72629 1998-10-14  Jim Meyering  <meyering@ascend.com>
72630
72631         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72632         instead of "TZ=America/Vancouver".  From Paul Eggert.
72633
72634 1998-10-11  Jim Meyering  <meyering@ascend.com>
72635
72636         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72637         This adds a test for a recently added compatibility fix for mktime.c.
72638         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72639
72640 1998-09-27  Jim Meyering  <meyering@ascend.com>
72641
72642         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72643
72644         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72645         ../configure.in, including a change from Gordon Matzigkeit to allow
72646         cross-compiling for the Hurd.
72647
72648         * m4/glibc.m4: New file/macro to test for the GNU C Library
72649         versions 1 and 2.  From Gordon Matzigkeit.
72650         Indent.
72651
72652 1998-09-21  Jim Meyering  <meyering@ascend.com>
72653
72654         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72655
72656 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72657
72658         Port nanosecond-resolution times to UnixWare 2.1.2 and
72659         pedantic Solaris 2.6.
72660
72661         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72662         AC_STRUCT_ST_MTIM.
72663         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72664         Generate name of ns member, instead of just 1 or undef.
72665         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72666
72667 1998-08-15  Jim Meyering  <meyering@ascend.com>
72668
72669         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72670         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72671         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72672         instead of jm_TYPE_SSIZE_T.
72673
72674 1998-08-12  Jim Meyering  <meyering@ascend.com>
72675
72676         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72677
72678 1998-08-02  Jim Meyering  <meyering@ascend.com>
72679
72680         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72681         in acconfig.h manually.
72682
72683 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72684
72685         * m4/st_mtim.m4: New file.
72686
72687 1998-07-28  Jim Meyering  <meyering@ascend.com>
72688
72689         * m4/utimes.m4: Undef stat.
72690
72691 1998-07-25  Jim Meyering  <meyering@ascend.com>
72692
72693         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72694         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72695
72696 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72697
72698         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72699         uid and gid actually remain unchanged.
72700
72701 1998-07-07  Jim Meyering  <meyering@ascend.com>
72702
72703         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72704
72705 1998-07-04  Jim Meyering  <meyering@ascend.com>
72706
72707         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72708         to prove that this macro can be used in packages without regex.c.
72709
72710 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72711
72712         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72713         is to be used.
72714
72715 1998-07-03  Jim Meyering  <meyering@ascend.com>
72716
72717         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72718
72719         * m4/gettext.m4: New file -- from gettext-0.10.35.
72720         * m4/lcmessage.m4: Likewise.
72721         * m4/progtest.m4: Likewise.
72722
72723         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72724         * m4/jm-macros.m4: Require the new macro.
72725
72726 1998-06-29  Jim Meyering  <meyering@ascend.com>
72727
72728         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72729         for the definition of NGROUPS (used in a system header included
72730         by sys/mount.h).
72731
72732 1998-06-28  Jim Meyering  <meyering@ascend.com>
72733
72734         * m4/ls-mntd-fs.m4: New file.
72735         * m4/fstypename.m4: New file.
72736
72737         * m4/jm-macros.m4: Require the new macro.
72738         * m4/jm-glibc-io.m4: New file.
72739
72740 1998-05-19  Jim Meyering  <meyering@ascend.com>
72741
72742         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72743         * m4/lchown.m4: New file.
72744
72745         * m4/Makefile.am.in: New file.
72746         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72747
72748 1998-05-14  Jim Meyering  <meyering@ascend.com>
72749
72750         * m4/Makefile.am (EXTRA_DIST): Add them.
72751         * m4/jm-macros.m4: New file.
72752         * m4/utimbuf.m4: New file.
72753
72754 1998-05-12  Jim Meyering  <meyering@ascend.com>
72755
72756         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72757
72758 1998-05-11  Jim Meyering  <meyering@ascend.com>
72759
72760         * m4/isc-posix.m4: New file.
72761
72762 1998-05-10  Jim Meyering  <meyering@ascend.com>
72763
72764         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72765
72766 1998-05-09  Jim Meyering  <meyering@ascend.com>
72767
72768         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72769         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72770         with automake.
72771
72772         * m4/ssize_t.m4: New file.
72773         * m4/mktime.m4: Remove file -- the new automake has this now.
72774
72775 1998-04-26  Jim Meyering  <meyering@ascend.com>
72776
72777         * m4/assert.m4: New file.
72778         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72779
72780 1998-04-05  Jim Meyering  <meyering@ascend.com>
72781
72782         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72783         (jm_PREREQ): Use it here.
72784
72785 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72786
72787         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72788         in acconfig.h.
72789
72790 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72791
72792         * m4/prereq.m4: New file.
72793         * m4/error.m4: New file.
72794         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72795
72796 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72797
72798         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72799         cache-check for the same variable -- that defeated the purpose of
72800         the test; the test program was never run.  This was a problem only
72801         on systems with losing getline functions -- HP-UX 10.20 is one.
72802         Reported by Bjorn Helgaas.
72803
72804 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72805
72806         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72807
72808 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72809
72810         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72811
72812         * m4/const.m4: New file.  Use an initializer in this declaration
72813         typedef int charset[2]; const charset x;
72814         Reported by Bob Glickstein.
72815
72816 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72817
72818         * m4/chown.m4: Fix reversed types on -1 args to chown.
72819         From Kaveh Ghazi.
72820
72821 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72822
72823         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72824         Add lseek and memchr.
72825
72826         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72827         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72828         have a 20-character limit on names.
72829
72830 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72831
72832         * m4/inttypes_h.m4: New file.
72833         * m4/uintmax_t.m4: New file.
72834         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72835
72836
72837         -----
72838
72839         Local Variables:
72840         coding: utf-8
72841         End:
72842
72843         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72844
72845         Copying and distribution of this file, with or without
72846         modification, are permitted provided the copyright notice
72847         and this notice are preserved.